public class OSAuthenticator extends Object
Constructor and Description |
---|
OSAuthenticator() |
Modifier and Type | Method and Description |
---|---|
static OSClient |
invoke(AuthStore auth,
String endpoint,
Facing perspective,
Config config,
CloudProvider provider)
Invokes authentication to obtain a valid V3 Token, throws an
UnsupportedOperationException for an V2 attempt.
|
static OSClient |
invoke(KeystoneAuth auth,
String endpoint,
Facing perspective,
Config config,
CloudProvider provider)
Invokes V3 authentication via an existing token
|
static OSClient |
invoke(TokenAuth auth,
String endpoint,
Facing perspective,
Config config,
CloudProvider provider)
Invokes V2 authentication via an existing token
|
static void |
reAuthenticate()
Re-authenticates/renews the token for the current Session
|
public static OSClient invoke(AuthStore auth, String endpoint, Facing perspective, Config config, CloudProvider provider)
auth
- the authentication credentialsendpoint
- the identity endpointperspective
- the network facing perspectiveconfig
- the client configurationpublic static OSClient invoke(KeystoneAuth auth, String endpoint, Facing perspective, Config config, CloudProvider provider)
auth
- the token authenticationendpoint
- the identity endpointperspective
- the network facing perspectiveconfig
- the client configurationpublic static OSClient invoke(TokenAuth auth, String endpoint, Facing perspective, Config config, CloudProvider provider)
auth
- the token authenticationendpoint
- the identity endpointperspective
- the network facing perspectiveconfig
- the client configurationpublic static void reAuthenticate()
Copyright © 2017. All rights reserved.