| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
COOKIE_NOT_PRESENT |
|
static java.lang.String |
COULD_NOT_ACCESS_SESSION_CTORS |
|
static java.lang.String |
COULD_NOT_CALL_THE_SESSION_COPY_CONSTRUCTOR |
|
static java.lang.String |
COULD_NOT_DECRYPT_JWE |
|
static java.lang.String |
COULD_NOT_DESERIALIZE |
|
static java.lang.String |
COULD_NOT_DESERIALIZE_JWE |
|
static java.lang.String |
COULD_NOT_GET_HEADER_JWE |
|
static java.lang.String |
FAILED_TO_COPY_REQUEST_SESSION |
|
static java.lang.String |
INVALID_SESSION_COOKIE |
|
protected static org.apache.log4j.Logger |
LOGGER |
|
static java.lang.String |
NOT_A_JWT |
| Constructor | Description |
|---|---|
DecryptSession(java.lang.String sessionCookieName,
org.rootservices.jwt.config.JwtAppFactory jwtAppFactory,
org.rootservices.jwt.entity.jwk.SymmetricKey preferredKey,
java.util.Map<java.lang.String,org.rootservices.jwt.entity.jwk.SymmetricKey> rotationKeys,
com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
| Modifier and Type | Method | Description |
|---|---|---|
protected T |
copy(T session) |
Copies the input parameter and then returns the copy.
|
protected T |
decrypt(java.lang.String encryptedSession) |
|
protected org.rootservices.jwt.entity.jwk.SymmetricKey |
getKey(java.lang.String keyId) |
|
protected void |
onHalt(HaltException e,
Response response) |
This method will be called before a Halt Exception is thrown.
|
void |
process(Method method,
Request request,
Response response) |
|
protected T |
toSession(byte[] json) |
public static final java.lang.String NOT_A_JWT
public static final java.lang.String COULD_NOT_GET_HEADER_JWE
public static final java.lang.String COULD_NOT_DESERIALIZE_JWE
public static final java.lang.String COULD_NOT_DECRYPT_JWE
public static final java.lang.String COULD_NOT_DESERIALIZE
public static final java.lang.String INVALID_SESSION_COOKIE
public static final java.lang.String COOKIE_NOT_PRESENT
public static final java.lang.String FAILED_TO_COPY_REQUEST_SESSION
public static final java.lang.String COULD_NOT_ACCESS_SESSION_CTORS
public static final java.lang.String COULD_NOT_CALL_THE_SESSION_COPY_CONSTRUCTOR
protected static org.apache.log4j.Logger LOGGER
public DecryptSession(java.lang.String sessionCookieName,
org.rootservices.jwt.config.JwtAppFactory jwtAppFactory,
org.rootservices.jwt.entity.jwk.SymmetricKey preferredKey,
java.util.Map<java.lang.String,org.rootservices.jwt.entity.jwk.SymmetricKey> rotationKeys,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
public void process(Method method, Request request, Response response) throws HaltException
process in interface BetweenHaltExceptionprotected T copy(T session) throws SessionCtorException
session - the session to copySessionCtorExceptionprotected void onHalt(HaltException e, Response response)
e - a HaltExceptionresponse - a Responseprotected T decrypt(java.lang.String encryptedSession) throws InvalidSessionException, SessionDecryptException
protected T toSession(byte[] json)
protected org.rootservices.jwt.entity.jwk.SymmetricKey getKey(java.lang.String keyId)