Apache CXF API

org.apache.cxf.rs.security.oauth2.provider
Interface SessionAuthenticityTokenProvider


public interface SessionAuthenticityTokenProvider

SessionAuthenticityTokenProvider responsible for storing and retrieving tokens to validate the authenticity of request sessions


Method Summary
 String createSessionToken(MessageContext mc, javax.ws.rs.core.MultivaluedMap<String,String> params, UserSubject subject)
          Creates a new session token and stores it
 String getSessionToken(MessageContext mc, javax.ws.rs.core.MultivaluedMap<String,String> params, UserSubject subject)
          Retrieves the stored session token
 String removeSessionToken(MessageContext mc, javax.ws.rs.core.MultivaluedMap<String,String> params, UserSubject subject)
          Removes the stored session token
 

Method Detail

createSessionToken

String createSessionToken(MessageContext mc,
                          javax.ws.rs.core.MultivaluedMap<String,String> params,
                          UserSubject subject)
Creates a new session token and stores it

Parameters:
mc - the MessageContext of this request
params - redirection-based grant request parameters
subject - authenticated end user
Returns:
the created session token

getSessionToken

String getSessionToken(MessageContext mc,
                       javax.ws.rs.core.MultivaluedMap<String,String> params,
                       UserSubject subject)
Retrieves the stored session token

Parameters:
mc - the MessageContext of this request
params - grant authorization parameters
subject - authenticated end user
Returns:
the stored token

removeSessionToken

String removeSessionToken(MessageContext mc,
                          javax.ws.rs.core.MultivaluedMap<String,String> params,
                          UserSubject subject)
Removes the stored session token

Parameters:
mc - the MessageContext of this request
params - grant authorization parameters
subject - authenticated end user

Apache CXF API

Apache CXF