@Unstable @Private public class MapRSignerSecretProvider extends SignerSecretProvider
| Constructor | Description |
|---|---|
MapRSignerSecretProvider() |
| Modifier and Type | Method | Description |
|---|---|---|
byte[][] |
getAllSecrets() |
Returns all secrets that a cookie could have been signed with and are still
valid; this should include the secret returned by getCurrentSecret().
|
byte[] |
getCurrentSecret() |
Returns the current secret to be used by the Signer for signing new
cookies.
|
void |
init(java.util.Properties config,
javax.servlet.ServletContext servletContext,
long tokenValidity) |
Initialize the SignerSecretProvider
|
destroypublic void init(java.util.Properties config,
javax.servlet.ServletContext servletContext,
long tokenValidity)
throws java.lang.Exception
SignerSecretProviderinit in class SignerSecretProviderconfig - configuration propertiesservletContext - servlet contexttokenValidity - The amount of time a token is valid forjava.lang.Exception - thrown if an error occurredpublic byte[] getCurrentSecret()
SignerSecretProviderCallers should be careful not to modify the returned value.
getCurrentSecret in class SignerSecretProviderpublic byte[][] getAllSecrets()
SignerSecretProviderCallers should be careful not to modify the returned value.
getAllSecrets in class SignerSecretProviderCopyright © 2008–2025 Apache Software Foundation. All rights reserved.