public class AccessGrant extends Object
Constructor and Description |
---|
AccessGrant(String rawValue,
String uniqueUserId,
Scope scope,
String clientId,
String grantType,
String ctxQual)
AccessGrant constructor.
|
AccessGrant(String hashedRefreshTokenValue,
String guid,
String uniqueUserId,
String grantType,
Scope scope,
String clientId,
long issued,
long updated,
Long expires,
String ctxQual)
AccessGrant constructor.
|
Modifier and Type | Method and Description |
---|---|
org.sourceid.oauth20.domain.Client |
getClient()
Get the client.
|
String |
getClientId()
Get the client id.
|
String |
getContextualQualifier()
Get the contextual qualifier.
|
Long |
getExpires()
Get the expires timestamp in milliseconds.
|
String |
getGrantType()
Get the grant type.
|
String |
getGuid()
Get the guid.
|
String |
getHashedRefreshTokenValue()
Get the hashed refresh token value
|
long |
getIssued()
Get the issued timestamp in milliseconds.
|
Scope |
getScope()
Get the scope.
|
String |
getUniqueUserIdentifer()
Get the unique user identifier.
|
long |
getUpdated()
Get the updated timestamp in milliseconds.
|
boolean |
isExpired()
Determines if the access grant is expired.
|
void |
setClientId(String clientId)
Set the client id.
|
void |
setContextualQualifier(String contextualQualifier)
Set the contextual qualifer.
|
void |
setExpires(Long expires)
Set the expires timestamp in milliseconds.
|
void |
setGuid(String guid)
Set the guid.
|
void |
setRawRefreshTokenValue(String rawValue)
Set the raw refresh token value.
|
void |
setScope(Scope scope)
Set the scope.
|
void |
setUniqueUserIdentifer(String uniqueUserIdentifier)
Set the unique user identifier.
|
public AccessGrant(String hashedRefreshTokenValue, String guid, String uniqueUserId, String grantType, Scope scope, String clientId, long issued, long updated, Long expires, String ctxQual)
hashedRefreshTokenValue
- the hashed refresh token value.guid
- the guid representing the access grant.uniqueUserId
- the user that has logged in.grantType
- the type of grant issued (implicit, authorization code, etc).scope
- the scope of the access grant.clientId
- the client id.issued
- the time since the epoch when the access grant was issued.updated
- the time since the epoch when the access grant was updated.expires
- the time since the epoch when the access grant expires.ctxQual
- the contextual qualifier.public AccessGrant(String rawValue, String uniqueUserId, Scope scope, String clientId, String grantType, String ctxQual)
rawValue
- the raw value of the refresh token.uniqueUserId
- the user that has logged in.scope
- the scope of the access grant.clientId
- the client the user logged in with.grantType
- the type of grant.ctxQual
- the contextual qualifier.public String getGuid()
public void setGuid(String guid)
guid
- the guid of the access grant.public String getGrantType()
public String getHashedRefreshTokenValue()
public void setRawRefreshTokenValue(String rawValue)
rawValue
- the raw refresh token value of the access grant.public String getUniqueUserIdentifer()
public void setUniqueUserIdentifer(String uniqueUserIdentifier)
uniqueUserIdentifier
- the unique user identifier of the access grant.public String getClientId()
public void setClientId(String clientId)
clientId
- the client id of the access grant.public Scope getScope()
public void setScope(Scope scope)
scope
- the scope of the access grant.public long getIssued()
public long getUpdated()
public void setExpires(Long expires)
expires
- the expiration time of the access grant.public Long getExpires()
public String getContextualQualifier()
public void setContextualQualifier(String contextualQualifier)
contextualQualifier
- the contextual qualifier of the access grant.public boolean isExpired()
public org.sourceid.oauth20.domain.Client getClient()
Copyright 2019 Ping Identity Corp. All rights reserved.