public static class OSClientBuilder.ClientV3 extends OSClientBuilder<OSClient,IOSClientBuilder.V3> implements IOSClientBuilder.V3
OSClientBuilder.ClientV2, OSClientBuilder.ClientV3IOSClientBuilder.V2, IOSClientBuilder.V3| Constructor and Description |
|---|
ClientV3() |
| Modifier and Type | Method and Description |
|---|---|
OSClient |
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,
Identifier domain)
Scopes the token to a project level
|
OSClientBuilder.ClientV3 |
scopeToTrust(String id)
Scopes the token to a specific trust
|
OSClientBuilder.ClientV3 |
token(String tokenId)
A token object.
|
credentials, endpoint, perspective, useNonStrictSSLClient, withConfigequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcredentials, endpoint, perspective, useNonStrictSSLClient, withConfigpublic OSClientBuilder.ClientV3 domainName(String domainName)
IOSClientBuilder.V3domainName in interface IOSClientBuilder.V3domainName - the domain name to authenticate againstpublic OSClientBuilder.ClientV3 domainId(String domainId)
IOSClientBuilder.V3IOSClientBuilder.V3.credentials(String, String, Identifier)
Authenticates against the specified domain identifierdomainId in interface IOSClientBuilder.V3domainId - the domain identifier to authenticate againstpublic OSClientBuilder.ClientV3 credentials(String user, String password, Identifier domain)
IOSClientBuilder.V3credentials in interface IOSClientBuilder.V3user - the user to authenticate withpassword - the password to authenticate withdomain - the domain if using "default scoped"public OSClientBuilder.ClientV3 token(String tokenId)
IOSClientBuilder.V3token in interface IOSClientBuilder.V3tokenId - the token identifierpublic OSClient authenticate() throws AuthenticationException
IOSClientBuilderauthenticate in interface IOSClientBuilder<OSClient,IOSClientBuilder.V3>AuthenticationException - if the credentials or default tenant is invalidpublic OSClientBuilder.ClientV3 scopeToProject(Identifier project, Identifier domain)
IOSClientBuilder.V3scopeToProject in interface IOSClientBuilder.V3project - the project ID or Name valuedomain - the domain ID or Name valuepublic OSClientBuilder.ClientV3 scopeToDomain(Identifier domain)
IOSClientBuilder.V3scopeToDomain in interface IOSClientBuilder.V3domain - the domain ID or Name valuepublic OSClientBuilder.ClientV3 scopeToTrust(String id)
IOSClientBuilder.V3scopeToTrust in interface IOSClientBuilder.V3id - the trust id