public static class OSClientBuilder.ClientV2 extends OSClientBuilder<OSClient.OSClientV2,IOSClientBuilder.V2> implements IOSClientBuilder.V2
OSClientBuilder.ClientV2, OSClientBuilder.ClientV3
IOSClientBuilder.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, withConfig
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
credentials, endpoint, perspective, provider, useNonStrictSSLClient, withConfig
public OSClientBuilder.ClientV2 tenantName(String tenantName)
IOSClientBuilder.V2
tenantName
in interface IOSClientBuilder.V2
tenantName
- the tenant/project namepublic OSClientBuilder.ClientV2 tenantId(String tenantId)
IOSClientBuilder.V2
tenantId
in interface IOSClientBuilder.V2
tenantId
- the tenant/project idpublic OSClientBuilder.ClientV2 raxApiKey(boolean raxApiKey)
IOSClientBuilder.V2
raxApiKey
in interface IOSClientBuilder.V2
raxApiKey
- true if enabledpublic OSClient.OSClientV2 authenticate() throws AuthenticationException
IOSClientBuilder
authenticate
in interface IOSClientBuilder<OSClient.OSClientV2,IOSClientBuilder.V2>
AuthenticationException
- if the credentials or default tenant is
invalidpublic OSClientBuilder.ClientV2 token(String tokenId)
IOSClientBuilder.V2
IOSClientBuilder.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.V2
tokenId
- the token identifierCopyright © 2017. All rights reserved.