Package overit.geocall.rs
Class AccessToken
java.lang.Object
overit.geocall.rs.AccessToken
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static Clockprotected final longprotected final longstatic final Stringprotected static final Stringprotected final Stringprotected static final Stringprotected String -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAccessToken(String sessionId, long issuedAt, long expiration, String userCompany) -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated, for removal: This API element is subject to removal in a future version.This method is deprecated and should not be used.longlonglonginthashCode()static AccessTokeninvalidate(MicroSession session) static booleanisSatToken(String token) static AccessTokenissue(MicroSession session) generation of a session referring token lasting as the duration of the session parameterstatic AccessTokentoString()
-
Field Details
-
SECRET_NAME
-
A_PROBLEM_OCCURRED_IN_THE_VALIDATION_TOKEN_PHASE
- See Also:
-
AN_ERROR_OCCURRED_IN_ISSUING_TOKEN_PHASE
- See Also:
-
AUDIENCE_CLAIM
- See Also:
-
TOKEN_CANNOT_BE_NULL
- See Also:
-
SESSION_CLAIM
- See Also:
-
ARL_CLAIM
- See Also:
-
sessionId
-
issuedAt
protected final long issuedAt -
expiration
protected final long expiration -
userCompany
-
clock
-
-
Constructor Details
-
AccessToken
-
-
Method Details
-
issue
generation of a session referring token lasting as the duration of the session parameter- Parameters:
session- The MicroSession- Returns:
- The AccessToken
-
invalidate
-
parse
-
isSatToken
-
getSessionId
-
getIssuedAt
public long getIssuedAt() -
getExpiration
public long getExpiration() -
getDuration
public long getDuration() -
getUserCompany
-
equals
-
hashCode
public int hashCode() -
toString
-
getCachedSession
Deprecated, for removal: This API element is subject to removal in a future version.This method is deprecated and should not be used. UseMicroSession.fetch(String)instead.getCachedSession retrieves a MicroSession from the internal session cache using the session ID associated with the AccessToken.- Returns:
- the MicroSession associated with the session ID, or null if no mapping is found
-