Interface SessionAuthenticityTokenProvider
-
- All Known Implementing Classes:
JoseSessionTokenProvider
public interface SessionAuthenticityTokenProviderSessionAuthenticityTokenProvider responsible for storing and retrieving tokens to validate the authenticity of request sessions
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringcreateSessionToken(MessageContext mc, javax.ws.rs.core.MultivaluedMap<String,String> params, UserSubject subject, OAuthRedirectionState secData)Create a new session token and stores itOAuthRedirectionStategetSessionState(MessageContext messageContext, String sessionToken, UserSubject subject)Expand the session tokenStringgetSessionToken(MessageContext mc, javax.ws.rs.core.MultivaluedMap<String,String> params, UserSubject subject)Retrieve the stored session tokenStringremoveSessionToken(MessageContext mc, javax.ws.rs.core.MultivaluedMap<String,String> params, UserSubject subject)Remove the stored session token
-
-
-
Method Detail
-
createSessionToken
String createSessionToken(MessageContext mc, javax.ws.rs.core.MultivaluedMap<String,String> params, UserSubject subject, OAuthRedirectionState secData)
Create a new session token and stores it- Parameters:
mc- theMessageContextof this requestparams- redirection-based grant request parameterssubject- authenticated end usersecData-- Returns:
- the created session token
-
getSessionToken
String getSessionToken(MessageContext mc, javax.ws.rs.core.MultivaluedMap<String,String> params, UserSubject subject)
Retrieve the stored session token- Parameters:
mc- theMessageContextof this requestparams- grant authorization parameterssubject- authenticated end user- Returns:
- the stored token
-
removeSessionToken
String removeSessionToken(MessageContext mc, javax.ws.rs.core.MultivaluedMap<String,String> params, UserSubject subject)
Remove the stored session token- Parameters:
mc- theMessageContextof this requestparams- grant authorization parameterssubject- authenticated end user
-
getSessionState
OAuthRedirectionState getSessionState(MessageContext messageContext, String sessionToken, UserSubject subject)
Expand the session token- Parameters:
messageContext- theMessageContextof this requestsessionToken- the tokensubject- authenticated end user- Returns:
- the expanded token or null
-
-