Class SessionKey

java.lang.Object
com.linecorp.centraldogma.server.auth.SessionKey

public final class SessionKey extends Object
A session key used to sign and encrypt session cookies.
  • Method Details

    • of

      public static SessionKey of(byte[] masterKey, byte[] salt, int version)
      Derives a new SessionKey from the specified masterKey and salt.
    • signingKey

      public SecretKey signingKey()
      Returns the secret key used to sign session tokens.
    • encryptionKey

      public SecretKey encryptionKey()
      Returns the secret key used to encrypt session tokens.
    • version

      public int version()
      Returns the version of this session key.