public class JoseSessionTokenProvider extends Object implements SessionAuthenticityTokenProvider
Constructor and Description |
---|
JoseSessionTokenProvider() |
public String createSessionToken(MessageContext mc, javax.ws.rs.core.MultivaluedMap<String,String> params, UserSubject subject, OAuthRedirectionState secData)
SessionAuthenticityTokenProvider
createSessionToken
in interface SessionAuthenticityTokenProvider
mc
- the MessageContext
of this requestparams
- redirection-based grant request parameterssubject
- authenticated end userpublic String getSessionToken(MessageContext mc, javax.ws.rs.core.MultivaluedMap<String,String> params, UserSubject subject)
SessionAuthenticityTokenProvider
getSessionToken
in interface SessionAuthenticityTokenProvider
mc
- the MessageContext
of this requestparams
- grant authorization parameterssubject
- authenticated end userpublic String removeSessionToken(MessageContext mc, javax.ws.rs.core.MultivaluedMap<String,String> params, UserSubject subject)
SessionAuthenticityTokenProvider
removeSessionToken
in interface SessionAuthenticityTokenProvider
mc
- the MessageContext
of this requestparams
- grant authorization parameterssubject
- authenticated end userpublic OAuthRedirectionState getSessionState(MessageContext messageContext, String sessionToken, UserSubject subject)
SessionAuthenticityTokenProvider
getSessionState
in interface SessionAuthenticityTokenProvider
messageContext
- the MessageContext
of this requestsessionToken
- the tokensubject
- authenticated end userpublic void setJwsProvider(JwsSignatureProvider jwsProvider)
public void setJwsVerifier(JwsSignatureVerifier jwsVerifier)
public void setJweEncryptor(JweEncryptionProvider jweEncryptor)
public void setJweDecryptor(JweDecryptionProvider jweDecryptor)
protected JwsSignatureProvider getInitializedSigProvider()
protected JweEncryptionProvider getInitializedEncryptionProvider()
public void setJwsRequired(boolean jwsRequired)
public void setJweRequired(boolean jweRequired)
protected JweDecryptionProvider getInitializedDecryptionProvider()
protected JwsSignatureVerifier getInitializedSigVerifier()
protected String convertStateToString(OAuthRedirectionState secData)
public void setMaxDefaultSessionInterval(int maxDefaultSessionInterval)
Apache CXF