Class MSQATokenResultInternal
- java.lang.Object
-
- com.microsoft.quickauth.signin.internal.entity.MSQATokenResultInternal
-
- All Implemented Interfaces:
MSQATokenResult
public class MSQATokenResultInternal extends java.lang.Object implements MSQATokenResult
-
-
Constructor Summary
Constructors Constructor Description MSQATokenResultInternal(com.microsoft.identity.client.IAuthenticationResult authenticationResult)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAccessToken()
java.lang.String
getAuthenticationScheme()
Gets the authentication scheme (Bearer, PoP, etc)....java.lang.String
getAuthorizationHeader()
Gets the fully-formed Authorization header value.java.util.UUID
getCorrelationId()
Gets the correlation id used during the acquire token request.java.util.Date
getExpiresOn()
java.lang.String[]
getScope()
java.lang.String
getTenantId()
-
-
-
Method Detail
-
getAccessToken
@NonNull public java.lang.String getAccessToken()
- Specified by:
getAccessToken
in interfaceMSQATokenResult
- 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 interfaceMSQATokenResult
- 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 interfaceMSQATokenResult
- Returns:
- The authentication scheme name.
-
getExpiresOn
@NonNull public java.util.Date getExpiresOn()
- Specified by:
getExpiresOn
in interfaceMSQATokenResult
- 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 interfaceMSQATokenResult
- 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 interfaceMSQATokenResult
- 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 interfaceMSQATokenResult
- Returns:
- a UUID representing a correlation id
-
-