Class OSAuthenticator


  • public class OSAuthenticator
    extends Object
    Responsible for authenticating and re-authenticating sessions for V2 and V3 of the Identity API
    • Constructor Detail

      • OSAuthenticator

        public OSAuthenticator()
    • 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 credentials
        endpoint - the identity endpoint
        perspective - the network facing perspective
        config - 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 authentication
        endpoint - the identity endpoint
        perspective - the network facing perspective
        config - 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 authentication
        endpoint - the identity endpoint
        perspective - the network facing perspective
        config - the client configuration
        Returns:
        the OSClient
      • reAuthenticate

        public static void reAuthenticate()
        Re-authenticates/renews the token for the current Session