org.exoplatform.social.opensocial.auth
Class ExoSecurityTokenDecoder

java.lang.Object
  extended by org.exoplatform.social.opensocial.auth.ExoSecurityTokenDecoder
All Implemented Interfaces:
org.apache.shindig.auth.SecurityTokenCodec

public class ExoSecurityTokenDecoder
extends Object
implements org.apache.shindig.auth.SecurityTokenCodec


Field Summary
 
Fields inherited from interface org.apache.shindig.auth.SecurityTokenCodec
ACTIVE_URL_NAME, SECURITY_TOKEN_NAME
 
Constructor Summary
ExoSecurityTokenDecoder(org.apache.shindig.config.ContainerConfig config)
           
 
Method Summary
 org.apache.shindig.auth.SecurityToken createToken(Map<String,String> tokenParameters)
           
 String encodeToken(org.apache.shindig.auth.SecurityToken token)
           
 Long getTokenExpiration(org.apache.shindig.auth.SecurityToken token)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExoSecurityTokenDecoder

@Inject
public ExoSecurityTokenDecoder(org.apache.shindig.config.ContainerConfig config)
Method Detail

createToken

public org.apache.shindig.auth.SecurityToken createToken(Map<String,String> tokenParameters)
                                                  throws org.apache.shindig.auth.SecurityTokenException
Specified by:
createToken in interface org.apache.shindig.auth.SecurityTokenCodec
Throws:
org.apache.shindig.auth.SecurityTokenException

encodeToken

public String encodeToken(org.apache.shindig.auth.SecurityToken token)
                   throws org.apache.shindig.auth.SecurityTokenException
Specified by:
encodeToken in interface org.apache.shindig.auth.SecurityTokenCodec
Throws:
org.apache.shindig.auth.SecurityTokenException

getTokenExpiration

public Long getTokenExpiration(org.apache.shindig.auth.SecurityToken token)
                        throws org.apache.shindig.auth.SecurityTokenException
Throws:
org.apache.shindig.auth.SecurityTokenException


Copyright © 2013 eXo Platform SAS. All Rights Reserved.