org.exoplatform.social.opensocial.auth
Class ExoSocialSecurityTokenGenerator

java.lang.Object
  extended by org.exoplatform.portal.gadget.core.ExoDefaultSecurityTokenGenerator
      extended by org.exoplatform.social.opensocial.auth.ExoSocialSecurityTokenGenerator
All Implemented Interfaces:
org.exoplatform.portal.gadget.core.SecurityTokenGenerator

public class ExoSocialSecurityTokenGenerator
extends org.exoplatform.portal.gadget.core.ExoDefaultSecurityTokenGenerator

The Social Security Token Generator.

Author:
hoatle (hoatlevan at gmail dot com)

Constructor Summary
ExoSocialSecurityTokenGenerator()
          Default Constructor.
 
Method Summary
 String createToken(String gadgetURL, Long moduleId)
          Creates a token by gadgetURL and moduleId.
protected  String createToken(String gadgetURL, String owner, String viewer, Long moduleId, String container)
           Creates a security token with some more data from Social instead of default implementation one.
 
Methods inherited from class org.exoplatform.portal.gadget.core.ExoDefaultSecurityTokenGenerator
getBlobCrypter, getKeyFilePath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExoSocialSecurityTokenGenerator

public ExoSocialSecurityTokenGenerator()
                                throws Exception
Default Constructor.

Throws:
Exception
Method Detail

createToken

protected String createToken(String gadgetURL,
                             String owner,
                             String viewer,
                             Long moduleId,
                             String container)
Creates a security token with some more data from Social instead of default implementation one.

Overrides:
createToken in class org.exoplatform.portal.gadget.core.ExoDefaultSecurityTokenGenerator

createToken

public String createToken(String gadgetURL,
                          Long moduleId)
Creates a token by gadgetURL and moduleId.

Specified by:
createToken in interface org.exoplatform.portal.gadget.core.SecurityTokenGenerator
Overrides:
createToken in class org.exoplatform.portal.gadget.core.ExoDefaultSecurityTokenGenerator
Parameters:
gadgetURL -
moduleId -
Returns:


Copyright © 2003–2014 eXo Platform SAS. All rights reserved.