|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.security.authentication.util.SignerSecretProvider
@InterfaceStability.Unstable @InterfaceAudience.Private public abstract class SignerSecretProvider
The SignerSecretProvider is an abstract way to provide a secret to be used by the Signer so that we can have different implementations that potentially do more complicated things in the backend. See the RolloverSignerSecretProvider class for an implementation that supports rolling over the secret at a regular interval.
| Constructor Summary | |
|---|---|
SignerSecretProvider()
|
|
| Method Summary | |
|---|---|
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(Properties config,
javax.servlet.ServletContext servletContext,
long tokenValidity)
Initialize the SignerSecretProvider |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SignerSecretProvider()
| Method Detail |
|---|
public abstract void init(Properties config,
javax.servlet.ServletContext servletContext,
long tokenValidity)
throws Exception
config - configuration propertiesservletContext - servlet contexttokenValidity - The amount of time a token is valid for
Exceptionpublic 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||