public static class OSClientBuilder.ClientV2 extends OSClientBuilder<OSClient.OSClientV2,IOSClientBuilder.V2> implements IOSClientBuilder.V2
OSClientBuilder.ClientV2, OSClientBuilder.ClientV3IOSClientBuilder.V2, IOSClientBuilder.V3| Constructor and Description |
|---|
ClientV2() |
| Modifier and Type | Method and Description |
|---|---|
OSClient.OSClientV2 |
authenticate()
Attempts to connect, authenticated and obtain an authorization access
entity which contains a token, service catalog and endpoints from the
controller.
|
OSClientBuilder.ClientV2 |
raxApiKey(boolean raxApiKey)
Use Rackspace API Key Authentication Admin Extension to authenticate
|
OSClientBuilder.ClientV2 |
tenantId(String tenantId)
The tenant/project to authenticate as (some clouds such as HP use
tenantId vs tenantName)
|
OSClientBuilder.ClientV2 |
tenantName(String tenantName)
The tenant/project to authenticate as
|
OSClientBuilder.ClientV2 |
token(String tokenId)
Allows authentication via an existing Token versus
IOSClientBuilder.credentials(String, String). |
credentials, endpoint, perspective, provider, useNonStrictSSLClient, withConfigclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcredentials, endpoint, perspective, provider, useNonStrictSSLClient, withConfigpublic OSClientBuilder.ClientV2 tenantName(String tenantName)
IOSClientBuilder.V2tenantName in interface IOSClientBuilder.V2tenantName - the tenant/project namepublic OSClientBuilder.ClientV2 tenantId(String tenantId)
IOSClientBuilder.V2tenantId in interface IOSClientBuilder.V2tenantId - the tenant/project idpublic OSClientBuilder.ClientV2 raxApiKey(boolean raxApiKey)
IOSClientBuilder.V2raxApiKey in interface IOSClientBuilder.V2raxApiKey - true if enabledpublic OSClient.OSClientV2 authenticate() throws AuthenticationException
IOSClientBuilderauthenticate in interface IOSClientBuilder<OSClient.OSClientV2,IOSClientBuilder.V2>AuthenticationException - if the credentials or default tenant is
invalidpublic OSClientBuilder.ClientV2 token(String tokenId)
IOSClientBuilder.V2IOSClientBuilder.credentials(String, String). Note: The
IOSClientBuilder.V2.tenantId(String) or IOSClientBuilder.V2.tenantName(String) will
required when using this method for authentication.token in interface IOSClientBuilder.V2tokenId - the token identifierCopyright © 2017. All rights reserved.