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.StringgetAccessToken()java.lang.StringgetAuthenticationScheme()Gets the authentication scheme (Bearer, PoP, etc)....java.lang.StringgetAuthorizationHeader()Gets the fully-formed Authorization header value.java.util.UUIDgetCorrelationId()Gets the correlation id used during the acquire token request.java.util.DategetExpiresOn()java.lang.String[]getScope()java.lang.StringgetTenantId()
-
-
-
Method Detail
-
getAccessToken
@NonNull public java.lang.String getAccessToken()
- Specified by:
getAccessTokenin interfaceMSQATokenResult- Returns:
- The access token requested.
-
getAuthorizationHeader
@NonNull public java.lang.String getAuthorizationHeader()
Description copied from interface:MSQATokenResultGets the fully-formed Authorization header value. Includes the Authentication scheme.- Specified by:
getAuthorizationHeaderin interfaceMSQATokenResult- Returns:
- The Authorization header value.
-
getAuthenticationScheme
@NonNull public java.lang.String getAuthenticationScheme()
Description copied from interface:MSQATokenResultGets the authentication scheme (Bearer, PoP, etc)....- Specified by:
getAuthenticationSchemein interfaceMSQATokenResult- Returns:
- The authentication scheme name.
-
getExpiresOn
@NonNull public java.util.Date getExpiresOn()
- Specified by:
getExpiresOnin 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:
getTenantIdin 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:
getScopein interfaceMSQATokenResult- Returns:
- The scopes returned from the service.
-
getCorrelationId
@Nullable public java.util.UUID getCorrelationId()
Description copied from interface:MSQATokenResultGets 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:
getCorrelationIdin interfaceMSQATokenResult- Returns:
- a UUID representing a correlation id
-
-