|
||||||||||
| 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
org.apache.hadoop.security.authentication.util.StringSignerSecretProvider
@InterfaceStability.Unstable @InterfaceAudience.Private public class StringSignerSecretProvider
A SignerSecretProvider that simply creates a secret based on a given String.
| Constructor Summary | |
|---|---|
StringSignerSecretProvider()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class org.apache.hadoop.security.authentication.util.SignerSecretProvider |
|---|
destroy |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StringSignerSecretProvider()
| Method Detail |
|---|
public void init(Properties config,
javax.servlet.ServletContext servletContext,
long tokenValidity)
throws Exception
SignerSecretProvider
init in class SignerSecretProviderconfig - configuration propertiesservletContext - servlet contexttokenValidity - The amount of time a token is valid for
Exceptionpublic 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 SignerSecretProvider
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||