Class IamAssumeAuthenticator

  • All Implemented Interfaces:
    Authenticator

    public class IamAssumeAuthenticator
    extends IamRequestBasedAuthenticatorImmutable
    implements Authenticator
    The IamAssumeAuthenticator obtains an IAM access token for a user-supplied apikey and a trusted profile using the IAM "get-token" operation's "assume" grant type. The authenticator first obtains an initial IAM access token, then exchanges this initial access token for another token that reflects the identity of the trusted profile. When the access token expires, a new access token will be fetched.
    • Method Detail

      • newBuilder

        public IamAssumeAuthenticator.Builder newBuilder()
        Returns a new Builder instance pre-loaded with the configuration from "this".
        Returns:
        the Builder instance
      • fromConfiguration

        public static IamAssumeAuthenticator fromConfiguration​(java.util.Map<java.lang.String,​java.lang.String> config)
        Construct ann IamAssumeAuthenticator instance using properties retrieved from the specified Map.
        Parameters:
        config - a map containing the configuration properties
        Returns:
        the IamAssumeAuthenticator instance
      • getIamProfileCrn

        public java.lang.String getIamProfileCrn()
        Gets the iamProfileCrn value.
        Returns:
        the iamProfileCrn value
      • getIamProfileId

        public java.lang.String getIamProfileId()
        Gets the iamProfileId value.
        Returns:
        the iamProfileId value
      • getIamProfileName

        public java.lang.String getIamProfileName()
        Gets the iamProfileName value.
        Returns:
        the iamProfileName value
      • getIamAccountId

        public java.lang.String getIamAccountId()
        Gets the iamAccountId value.
        Returns:
        the iamAccountId value