public class AuthConfig extends Object
OpenStackPoolDriver can be configured to use either use version 2
or version 3 of the identity HTTP API.OpenStackPoolDriverConfig| Constructor and Description |
|---|
AuthConfig(String keystoneUrl,
AuthV2Credentials v2Credentials,
AuthV3Credentials v3Credentials)
Creates a new
AuthConfig. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getKeystoneUrl() |
AuthV2Credentials |
getV2Credentials() |
AuthV3Credentials |
getV3Credentials() |
boolean |
isV2Auth()
Returns
true if version 2 type authentication credentials
are used. |
boolean |
isV3Auth()
Returns
true if version 3 type authentication credentials
are used. |
void |
validate()
Validates the configuration.
|
public AuthConfig(String keystoneUrl, AuthV2Credentials v2Credentials, AuthV3Credentials v3Credentials)
AuthConfig. Either AuthV2Credentials or
AuthV3Credentials need to be specified, but not both.keystoneUrl - Endpoint URL of the OpenStack authentication service
(Keystone).v2Credentials - Version 2 type authentication credentials. May be
null if version 3 credentials are given.v3Credentials - Version 3 type authentication credentials. May be
null if version 2 credentials are given.public String getKeystoneUrl()
keystoneUrlpublic AuthV2Credentials getV2Credentials()
v2Credentialspublic AuthV3Credentials getV3Credentials()
v3Credentialspublic boolean isV2Auth()
true if version 2 type authentication credentials
are used.public boolean isV3Auth()
true if version 3 type authentication credentials
are used.public void validate()
throws IllegalArgumentException
IllegalArgumentException is thrown.IllegalArgumentExceptionCopyright © 2011–2015 elastisys. All rights reserved.