public static class OSClientBuilder.ClientV3 extends OSClientBuilder<OSClient.OSClientV3,IOSClientBuilder.V3> implements IOSClientBuilder.V3
OSClientBuilder.ClientV2, OSClientBuilder.ClientV3
IOSClientBuilder.V2, IOSClientBuilder.V3
Constructor and Description |
---|
ClientV3() |
Modifier and Type | Method and Description |
---|---|
OSClient.OSClientV3 |
authenticate()
Attempts to connect, authenticated and obtain an authorization access
entity which contains a token, service catalog and endpoints from the
controller.
|
OSClientBuilder.ClientV3 |
credentials(String user,
String password,
Identifier domain)
The authentication credentials and default scoped domain
|
OSClientBuilder.ClientV3 |
domainId(String domainId)
DEPRECATED: Please use
IOSClientBuilder.V3.credentials(String, String, Identifier)
Authenticates against the specified domain identifier |
OSClientBuilder.ClientV3 |
domainName(String domainName)
DEPRECATED: Please use
{@link #credentials(String, String, Identifier)
Authenticates against the specified domain name
|
OSClientBuilder.ClientV3 |
scopeToDomain(Identifier domain)
Scopes the token to a domain level
|
OSClientBuilder.ClientV3 |
scopeToProject(Identifier project)
scopes the token to a project level
|
OSClientBuilder.ClientV3 |
scopeToProject(Identifier project,
Identifier domain)
Scopes the token to a project level
|
OSClientBuilder.ClientV3 |
token(String tokenId)
A token object.
|
credentials, endpoint, perspective, provider, useNonStrictSSLClient, withConfig
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
credentials, endpoint, perspective, provider, useNonStrictSSLClient, withConfig
public OSClientBuilder.ClientV3 domainName(String domainName)
IOSClientBuilder.V3
domainName
in interface IOSClientBuilder.V3
domainName
- the domain name to authenticate againstpublic OSClientBuilder.ClientV3 domainId(String domainId)
IOSClientBuilder.V3
IOSClientBuilder.V3.credentials(String, String, Identifier)
Authenticates against the specified domain identifierdomainId
in interface IOSClientBuilder.V3
domainId
- the domain identifier to authenticate againstpublic OSClientBuilder.ClientV3 credentials(String user, String password, Identifier domain)
IOSClientBuilder.V3
credentials
in interface IOSClientBuilder.V3
user
- the user name to authenticate withpassword
- the password to authenticate withdomain
- the domain if using "default scoped"public OSClientBuilder.ClientV3 token(String tokenId)
IOSClientBuilder.V3
token
in interface IOSClientBuilder.V3
tokenId
- the token identifierpublic OSClient.OSClientV3 authenticate() throws AuthenticationException
IOSClientBuilder
authenticate
in interface IOSClientBuilder<OSClient.OSClientV3,IOSClientBuilder.V3>
AuthenticationException
- if the credentials or default tenant is
invalidpublic OSClientBuilder.ClientV3 scopeToProject(Identifier project, Identifier domain)
IOSClientBuilder.V3
scopeToProject
in interface IOSClientBuilder.V3
project
- the project ID or Name valuedomain
- the domain ID or Name valuepublic OSClientBuilder.ClientV3 scopeToProject(Identifier project)
IOSClientBuilder.V3
scopeToProject
in interface IOSClientBuilder.V3
project
- the project idpublic OSClientBuilder.ClientV3 scopeToDomain(Identifier domain)
IOSClientBuilder.V3
scopeToDomain
in interface IOSClientBuilder.V3
domain
- the domain ID or Name valueCopyright © 2017. All rights reserved.