public class TokenIntrospectionData
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ANONYMOUS_USER |
static TokenIntrospectionData |
INACTIVE_TOKEN |
Modifier | Constructor and Description |
---|---|
protected |
TokenIntrospectionData()
Constructor reserved for internal use only.
|
|
TokenIntrospectionData(java.lang.String clientId,
java.lang.String scope,
long expiration,
ApplicationKey application,
DeviceData device,
AuthenticatedUser user,
java.util.Map checksCustomData)
Constructor reserved for internal use only.
|
Modifier and Type | Method and Description |
---|---|
ApplicationKey |
getApplication()
Gets the application of the client that requested the token.
|
java.util.Map |
getChecksCustomData()
Gets the custom introspection data provided by the security checks.
|
java.lang.String |
getClientId()
Gets the client identifier for the client that requested the token.
|
DeviceData |
getDevice()
Gets the device of the client that requested the token.
|
long |
getExpiration()
Gets the expiration time of this token measured in the number of seconds since January 1 1970 UTC.
|
java.lang.String |
getScope()
Gets the scope associated with this token.
|
AuthenticatedUser |
getUser()
Gets the authenticated user associated with this token.
|
java.lang.String |
getUsername()
Gets the identifier for the authenticated user associated with this token.
|
boolean |
isActive()
Return true if the token is active.
|
boolean |
isScopeCovered(java.lang.String requiredScope)
Checks whether the scope associated with the token covers the given required scope.
|
public static final TokenIntrospectionData INACTIVE_TOKEN
public static final java.lang.String ANONYMOUS_USER
protected TokenIntrospectionData()
public TokenIntrospectionData(java.lang.String clientId, java.lang.String scope, long expiration, ApplicationKey application, DeviceData device, AuthenticatedUser user, java.util.Map checksCustomData)
public boolean isActive()
public java.lang.String getScope()
public java.lang.String getClientId()
public java.lang.String getUsername()
public long getExpiration()
public ApplicationKey getApplication()
public DeviceData getDevice()
public AuthenticatedUser getUser()
public java.util.Map getChecksCustomData()
public boolean isScopeCovered(java.lang.String requiredScope)
requiredScope
- the scope that should be covered
© Copyright IBM Corp. 2006, 2015. All Rights Reserved.