Class SessionKey
java.lang.Object
com.linecorp.centraldogma.server.auth.SessionKey
A session key used to sign and encrypt session cookies.
-
Method Summary
Modifier and TypeMethodDescriptioncom.nimbusds.jose.JWEDecrypterReturns theJWEDecrypterfor decrypting session tokens.com.nimbusds.jose.JWEEncrypterReturns theJWEEncrypterfor encrypting session tokens.Returns the secret key used to encrypt session tokens.static SessionKeyof(byte[] masterKey, SessionMasterKey sessionMasterKey) Derives a newSessionKey.com.nimbusds.jose.JWSSignersigner()Returns theJWSSignerfor signing session tokens.Returns the secret key used to sign session tokens.com.nimbusds.jose.crypto.MACVerifierverifier()Returns theMACVerifierfor verifying session tokens.intversion()Returns the version of this session key.
-
Method Details
-
of
Derives a newSessionKey. -
signingKey
Returns the secret key used to sign session tokens. -
encryptionKey
Returns the secret key used to encrypt session tokens. -
version
public int version()Returns the version of this session key. -
signer
public com.nimbusds.jose.JWSSigner signer()Returns theJWSSignerfor signing session tokens. -
verifier
public com.nimbusds.jose.crypto.MACVerifier verifier()Returns theMACVerifierfor verifying session tokens. -
encrypter
public com.nimbusds.jose.JWEEncrypter encrypter()Returns theJWEEncrypterfor encrypting session tokens. -
decrypter
public com.nimbusds.jose.JWEDecrypter decrypter()Returns theJWEDecrypterfor decrypting session tokens.
-