public interface SecurityTokenCodec
| Modifier and Type | Field and Description |
|---|---|
static String |
ACTIVE_URL_NAME
Active URL for the request.
|
static String |
SECURITY_TOKEN_NAME
The security token value must be passed on a map value referenced by this key.
|
static String |
SECURITY_TOKEN_TTL_CONFIG
The configuration parameter for security token time-to-lives.
|
| Modifier and Type | Method and Description |
|---|---|
SecurityToken |
createToken(Map<String,String> tokenParameters)
Decrypts and verifies a gadget security token to return a gadget token.
|
String |
encodeToken(SecurityToken token) |
int |
getTokenTimeToLive()
Deprecated.
|
int |
getTokenTimeToLive(String container) |
static final String SECURITY_TOKEN_NAME
static final String ACTIVE_URL_NAME
static final String SECURITY_TOKEN_TTL_CONFIG
SecurityToken createToken(Map<String,String> tokenParameters) throws SecurityTokenException
tokenParameters - Map containing a entry 'token' in wire format (probably encrypted.)SecurityTokenException - If tokenString is not a valid tokenString encodeToken(SecurityToken token) throws SecurityTokenException
SecurityTokenException@Deprecated int getTokenTimeToLive()
getTokenTimeToLive(String).
Implementations should only rely on this method to return the default time-to-live of tokens
generated by this codec in the case where getTokenTimeToLive(String) fails.getTokenTimeToLive(String)int getTokenTimeToLive(String container)
container - The container the token is forCopyright © 2007-2014 The Apache Software Foundation. All Rights Reserved.