Class OSAuthenticator
- java.lang.Object
-
- org.openstack4j.openstack.internal.OSAuthenticator
-
public class OSAuthenticator extends Object
Responsible for authenticating and re-authenticating sessions for V2 and V3 of the Identity API
-
-
Constructor Summary
Constructors Constructor Description OSAuthenticator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OSClientinvoke(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 OSClientinvoke(TokenAuth auth, String endpoint, Facing perspective, Config config, CloudProvider provider)Invokes V2 authentication via an existing tokenstatic OSClientinvoke(KeystoneAuth auth, String endpoint, Facing perspective, Config config, CloudProvider provider)Invokes V3 authentication via an existing tokenstatic voidreAuthenticate()Re-authenticates/renews the token for the current Session
-
-
-
Method Detail
-
invoke
public 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.- Parameters:
auth- the authentication credentialsendpoint- the identity endpointperspective- the network facing perspectiveconfig- the client configuration- Returns:
- the OSClient
-
invoke
public static OSClient invoke(KeystoneAuth auth, String endpoint, Facing perspective, Config config, CloudProvider provider)
Invokes V3 authentication via an existing token- Parameters:
auth- the token authenticationendpoint- the identity endpointperspective- the network facing perspectiveconfig- the client configuration- Returns:
- the OSClient
-
invoke
public static OSClient invoke(TokenAuth auth, String endpoint, Facing perspective, Config config, CloudProvider provider)
Invokes V2 authentication via an existing token- Parameters:
auth- the token authenticationendpoint- the identity endpointperspective- the network facing perspectiveconfig- the client configuration- Returns:
- the OSClient
-
reAuthenticate
public static void reAuthenticate()
Re-authenticates/renews the token for the current Session
-
-