R - Client Return TypeT - Builder Typepublic interface IOSClientBuilder<R,T extends IOSClientBuilder<R,T>>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
IOSClientBuilder.V2
OpenStack4j Client builder which authenticates against version V2
|
static interface |
IOSClientBuilder.V3
OpenStack4j Client builder which authenticates against version V3
|
| Modifier and Type | Method and Description |
|---|---|
R |
authenticate()
Attempts to connect, authenticated and obtain an authorization access entity which contains a token, service catalog and endpoints
from the controller.
|
T |
credentials(String user,
String password)
The authentication credentials
|
T |
endpoint(String endpoint)
The identity endpoint to connect to
|
T |
perspective(Facing perspective)
Allows for a specific network perspective to be used.
|
T |
useNonStrictSSLClient(boolean useNonStrictSSL)
Deprecated.
|
T |
withConfig(Config config)
Associates the given configuration with this Client
|
T withConfig(Config config)
config - OpenStack4j configuration optionsT credentials(String user, String password)
user - the user to authenticate withpassword - the password to authenticate withT endpoint(String endpoint)
endpoint - the endpoint URL of the identity serviceT perspective(Facing perspective)
Facing.ADMIN as a facing perspective.
NOTE: If you choose PUBLIC some features may not work that are normally admin based configuration/functionality. If you normally
are not using these features PUBLIC works fine in most cases.perspective - the network facing perspective@Deprecated T useNonStrictSSLClient(boolean useNonStrictSSL)
#applyConfig(Config) to configure SSL policies
In some private environments self signed certificates are used. If you are using HTTPS and using
self-signed cerificates then set this to true. Otherwise the default strict hostname and properly
signed validation based client will be used.useNonStrictSSL - true if an HTTPS self-signed environmentR authenticate() throws AuthenticationException
AuthenticationException - if the credentials or default tenant is invalid