Class MSQATokenResultInternal

    • Constructor Detail

      • MSQATokenResultInternal

        public MSQATokenResultInternal​(@NonNull
                                       com.microsoft.identity.client.IAuthenticationResult authenticationResult)
    • Method Detail

      • getAccessToken

        @NonNull
        public java.lang.String getAccessToken()
        Specified by:
        getAccessToken in interface MSQATokenResult
        Returns:
        The access token requested.
      • getAuthorizationHeader

        @NonNull
        public java.lang.String getAuthorizationHeader()
        Description copied from interface: MSQATokenResult
        Gets the fully-formed Authorization header value. Includes the Authentication scheme.
        Specified by:
        getAuthorizationHeader in interface MSQATokenResult
        Returns:
        The Authorization header value.
      • getAuthenticationScheme

        @NonNull
        public java.lang.String getAuthenticationScheme()
        Description copied from interface: MSQATokenResult
        Gets the authentication scheme (Bearer, PoP, etc)....
        Specified by:
        getAuthenticationScheme in interface MSQATokenResult
        Returns:
        The authentication scheme name.
      • getExpiresOn

        @NonNull
        public java.util.Date getExpiresOn()
        Specified by:
        getExpiresOn in interface MSQATokenResult
        Returns:
        The expiration time of the access token returned in the Token property. This value is calculated based on current UTC time measured locally and the value expiresIn returned from the service. Please note that if the authentication scheme is 'pop', this value reflects the expiry of the 'inner' token returned by AAD and does not indicate the expiry of the signed pop JWT ('outer' token).
      • getTenantId

        @Nullable
        public java.lang.String getTenantId()
        Specified by:
        getTenantId in interface MSQATokenResult
        Returns:
        A unique tenant identifier that was used in token acquisition. Could be null if tenant information is not returned by the service.
      • getScope

        @NonNull
        public java.lang.String[] getScope()
        Specified by:
        getScope in interface MSQATokenResult
        Returns:
        The scopes returned from the service.
      • getCorrelationId

        @Nullable
        public java.util.UUID getCorrelationId()
        Description copied from interface: MSQATokenResult
        Gets the correlation id used during the acquire token request. Could be null if an error occurs when parsing from String or if not set.
        Specified by:
        getCorrelationId in interface MSQATokenResult
        Returns:
        a UUID representing a correlation id