public class DefaultSecurityTokenCodec extends Object implements SecurityTokenCodec
ACTIVE_URL_NAME, SECURITY_TOKEN_NAME| Constructor and Description |
|---|
DefaultSecurityTokenCodec(String port,
ContainerConfig config) |
| 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) |
@Inject
public DefaultSecurityTokenCodec(@Nullable
String port,
ContainerConfig config)
public SecurityToken createToken(Map<String,String> tokenParameters) throws SecurityTokenException
SecurityTokenCodeccreateToken in interface SecurityTokenCodectokenParameters - Map containing a entry 'token' in wire format (probably encrypted.)SecurityTokenException - If tokenString is not a valid tokenpublic String encodeToken(SecurityToken token) throws SecurityTokenException
encodeToken in interface SecurityTokenCodecSecurityTokenExceptionCopyright © 2007-2012. All Rights Reserved.