Package overit.geocall.base.auth
Class OAuthAccessToken
java.lang.Object
overit.geocall.base.auth.OAuthAccessToken
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected HashGetterprotected final longprotected final longprotected static ExpiringMap<String, MicroSession> protected final Stringprotected String -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedOAuthAccessToken(String sessionId, long issuedAt, long expiration, String username) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFunctions(List<String> functions) Deprecated, for removal: This API element is subject to removal in a future version.This method is deprecated and should not be used.longlonglongstatic OAuthAccessTokenparse(overit.geocall.base.sso.oauth2.OAuthValidator oauthValidator) voidDeprecated, for removal: This API element is subject to removal in a future version.This method is deprecated and should not be used.
-
Field Details
-
functions
-
sessionCache
-
sessionId
-
issuedAt
protected final long issuedAt -
expiration
protected final long expiration -
username
-
attributes
-
-
Constructor Details
-
OAuthAccessToken
-
-
Method Details
-
parse
public static OAuthAccessToken parse(overit.geocall.base.sso.oauth2.OAuthValidator oauthValidator) throws MicroException - Throws:
MicroException
-
getSessionId
-
getIssuedAt
public long getIssuedAt() -
getExpiration
public long getExpiration() -
getDuration
public long getDuration() -
getUsername
-
getCachedSession
@Deprecated(since="12.2", forRemoval=true) public MicroSession getCachedSession() throws MicroExceptionDeprecated, 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
- Throws:
MicroException- not used
-
addFunctions
-
getFunctions
-
resetCachedSession
Deprecated, for removal: This API element is subject to removal in a future version.This method is deprecated and should not be used. UseMicroSessionCacheService.put(MicroSession, long)instead.resetCachedSession puts a MicroSession in the internal session cache using the session ID associated with the AccessToken.- Parameters:
ms- the MicroSession associated with the session ID
-
getAttributes
-