public class AccessTokenValidationResponse extends Object
Constructor and Description |
---|
AccessTokenValidationResponse(long expiryTime)
Constructs a new AccessTokenValidationResponse, without any user profile information or scope.
|
AccessTokenValidationResponse(long expiryTime,
Map<String,Object> profileInfo,
Set<String> scope)
Constructs a new AccessTokenValidationResponse.
|
AccessTokenValidationResponse(long expiryTime,
Set<String> scope)
Constructs a new AccessTokenValidationResponse, without any user profile information.
|
Modifier and Type | Method and Description |
---|---|
long |
getExpiryTime()
Returns the expiry time of the access token.
|
Map<String,Object> |
getProfileInformation()
Returns the users profile information.
|
Set<String> |
getTokenScopes()
Returns the scope associated with the access token.
|
boolean |
isTokenValid()
Returns whether the access token is valid.
|
public AccessTokenValidationResponse(long expiryTime, Map<String,Object> profileInfo, Set<String> scope)
expiryTime
- The time at which the access token becomes invalid.profileInfo
- The user profile information for the user who authorized the access token.scope
- The scope of the access token.public AccessTokenValidationResponse(long expiryTime, Set<String> scope)
expiryTime
- The time at which the access token becomes invalid.scope
- The scope of the access token.public AccessTokenValidationResponse(long expiryTime)
expiryTime
- The time at which the access token becomes invalid.public boolean isTokenValid()
true
if the access token is valid.public long getExpiryTime()
public Map<String,Object> getProfileInformation()
Copyright © 2025 Open Identity Platform Community. All rights reserved.