FileSignerSecretProvider, MapRSignerSecretProvider, RolloverSignerSecretProvider@Unstable
@Private
public abstract class SignerSecretProvider
extends java.lang.Object
| Constructor | Description |
|---|---|
SignerSecretProvider() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
destroy() |
Will be called on shutdown; subclasses should perform any cleanup here.
|
abstract 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().
|
abstract byte[] |
getCurrentSecret() |
Returns the current secret to be used by the Signer for signing new
cookies.
|
abstract void |
init(java.util.Properties config,
javax.servlet.ServletContext servletContext,
long tokenValidity) |
Initialize the SignerSecretProvider
|
public abstract void init(java.util.Properties config,
javax.servlet.ServletContext servletContext,
long tokenValidity)
throws java.lang.Exception
config - configuration propertiesservletContext - servlet contexttokenValidity - The amount of time a token is valid forjava.lang.Exception - thrown if an error occurredpublic void destroy()
public abstract byte[] getCurrentSecret()
Callers should be careful not to modify the returned value.
public abstract byte[][] getAllSecrets()
Callers should be careful not to modify the returned value.
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.