@Immutable public class ImmutableSecret<C extends SecurityContext> extends ImmutableJWKSet<C>
| Constructor and Description |
|---|
ImmutableSecret(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.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getSecret()
Returns the secret.
|
SecretKey |
getSecretKey()
Returns the secret key.
|
get, getJWKSetpublic ImmutableSecret(byte[] secret)
secret - The secret. Must not be empty or null.public ImmutableSecret(SecretKey secretKey)
secretKey - The secret key. Must not be null.public byte[] getSecret()
public SecretKey getSecretKey()
Copyright © 2016 Connect2id Ltd.. All rights reserved.