Class ImmutableSecret<C extends SecurityContext>

    • Constructor Detail

      • ImmutableSecret

        public ImmutableSecret​(byte[] secret)
        Creates a new JSON Web Key (JWK) source backed by an immutable secret.
        Parameters:
        secret - The secret. Must not be empty or null.
      • ImmutableSecret

        public ImmutableSecret​(SecretKey secretKey)
        Creates a new JSON Web Key (JWK) source backed by an immutable secret key.
        Parameters:
        secretKey - The secret key. Must not be null.
    • Method Detail

      • getSecret

        public byte[] getSecret()
        Returns the secret.
        Returns:
        The secret.