Package com.nimbusds.jose.jwk.source
Class ImmutableSecret<C extends SecurityContext>
java.lang.Object
com.nimbusds.jose.jwk.source.ImmutableJWKSet<C>
com.nimbusds.jose.jwk.source.ImmutableSecret<C>
- All Implemented Interfaces:
JWKSource<C>
JSON Web Key (JWK) source backed by an immutable secret.
- Version:
- 2016-04-10
- Author:
- Vladimir Dzhuvinov
-
Constructor Summary
ConstructorsConstructorDescriptionImmutableSecret
(byte[] secret) Creates a new JSON Web Key (JWK) source backed by an immutable secret.ImmutableSecret
(SecretKey secretKey) Creates a new JSON Web Key (JWK) source backed by an immutable secret key. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
Returns the secret.Returns the secret key.Methods inherited from class com.nimbusds.jose.jwk.source.ImmutableJWKSet
get, getJWKSet
-
Constructor Details
-
ImmutableSecret
Creates a new JSON Web Key (JWK) source backed by an immutable secret.- Parameters:
secret
- The secret. Must not be empty ornull
.
-
ImmutableSecret
Creates a new JSON Web Key (JWK) source backed by an immutable secret key.- Parameters:
secretKey
- The secret key. Must not benull
.
-
-
Method Details
-
getSecret
Returns the secret.- Returns:
- The secret.
-
getSecretKey
Returns the secret key.- Returns:
- The secret key.
-