@InterfaceStability.Unstable @InterfaceAudience.Private public class FileSignerSecretProvider extends SignerSecretProvider
Constructor and Description |
---|
FileSignerSecretProvider() |
Modifier and Type | Method and 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(Properties config,
javax.servlet.ServletContext servletContext,
long tokenValidity)
Initialize the SignerSecretProvider
|
destroy
public void init(Properties config, javax.servlet.ServletContext servletContext, long tokenValidity) throws Exception
SignerSecretProvider
init
in class SignerSecretProvider
config
- configuration propertiesservletContext
- servlet contexttokenValidity
- The amount of time a token is valid forException
- thrown if an error occurredpublic byte[] getCurrentSecret()
SignerSecretProvider
Callers should be careful not to modify the returned value.
getCurrentSecret
in class SignerSecretProvider
public byte[][] getAllSecrets()
SignerSecretProvider
Callers should be careful not to modify the returned value.
getAllSecrets
in class SignerSecretProvider
Copyright © 2022 Apache Software Foundation. All rights reserved.