org.apache.shindig.auth
Interface SecurityTokenCodec

All Known Implementing Classes:
BasicSecurityTokenCodec, BlobCrypterSecurityTokenCodec, DefaultSecurityTokenCodec

public interface SecurityTokenCodec

Handles verification of gadget security tokens.

Since:
2.0.0

Field Summary
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.
 
Method Summary
 SecurityToken createToken(Map<String,String> tokenParameters)
          Decrypts and verifies a gadget security token to return a gadget token.
 String encodeToken(SecurityToken token)
           
 

Field Detail

SECURITY_TOKEN_NAME

static final String SECURITY_TOKEN_NAME
The security token value must be passed on a map value referenced by this key. Additional parameters can be passed as seen fit.

See Also:
Constant Field Values

ACTIVE_URL_NAME

static final String ACTIVE_URL_NAME
Active URL for the request. Must include protocol, host, and port. May include path and may include query.

See Also:
Constant Field Values
Method Detail

createToken

SecurityToken createToken(Map<String,String> tokenParameters)
                          throws SecurityTokenException
Decrypts and verifies a gadget security token to return a gadget token.

Parameters:
tokenParameters - Map containing a entry 'token' in wire format (probably encrypted.)
Returns:
the decrypted and verified token.
Throws:
SecurityTokenException - If tokenString is not a valid token

encodeToken

String encodeToken(SecurityToken token)
                   throws SecurityTokenException
Throws:
SecurityTokenException


Copyright © 2007-2012. All Rights Reserved.