public abstract class OSClientBuilder<R,T extends IOSClientBuilder<R,T>> extends Object implements IOSClientBuilder<R,T>
Modifier and Type | Class and Description |
---|---|
static class |
OSClientBuilder.ClientV2 |
static class |
OSClientBuilder.ClientV3 |
IOSClientBuilder.V2, IOSClientBuilder.V3
Constructor and Description |
---|
OSClientBuilder() |
Modifier and Type | Method and Description |
---|---|
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 |
provider(CloudProvider provider)
The OpenStack cloud provider which helps determine compatibility within
requests
|
T |
useNonStrictSSLClient(boolean useNonStrictSSL)
DEPRECATED: Use
#applyConfig(Config) to configure SSL policies
In some private environments self signed certificates are used. |
T |
withConfig(Config config)
Associates the given configuration with this Client
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
authenticate
public T withConfig(Config config)
IOSClientBuilder
withConfig
in interface IOSClientBuilder<R,T extends IOSClientBuilder<R,T>>
config
- OpenStack4j configuration optionspublic T provider(CloudProvider provider)
IOSClientBuilder
provider
in interface IOSClientBuilder<R,T extends IOSClientBuilder<R,T>>
provider
- the cloud providerpublic T credentials(String user, String password)
IOSClientBuilder
credentials
in interface IOSClientBuilder<R,T extends IOSClientBuilder<R,T>>
user
- the user id to authenticate withpassword
- the password to authenticate withpublic T endpoint(String endpoint)
IOSClientBuilder
endpoint
in interface IOSClientBuilder<R,T extends IOSClientBuilder<R,T>>
endpoint
- the endpoint URL of the identity servicepublic T perspective(Facing perspective)
IOSClientBuilder
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
in interface IOSClientBuilder<R,T extends IOSClientBuilder<R,T>>
perspective
- the network facing perspectivepublic T useNonStrictSSLClient(boolean useNonStrictSSL)
IOSClientBuilder
#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.useNonStrictSSLClient
in interface IOSClientBuilder<R,T extends IOSClientBuilder<R,T>>
useNonStrictSSL
- true if an HTTPS self-signed environmentCopyright © 2017. All rights reserved.