com.atlassian.gadgets.renderer.internal
Class SecurityTokenFactoryImpl

java.lang.Object
  extended by com.atlassian.gadgets.renderer.internal.SecurityTokenFactoryImpl
All Implemented Interfaces:
SecurityTokenFactory

public class SecurityTokenFactoryImpl
extends Object
implements SecurityTokenFactory


Constructor Summary
SecurityTokenFactoryImpl(org.apache.shindig.common.crypto.BlobCrypter crypter, ContainerDomainProvider domainProvider, com.atlassian.sal.api.ApplicationProperties applicationProperties)
           
 
Method Summary
 String newSecurityToken(GadgetState state, String viewer)
          Create a new security token for the gadget.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityTokenFactoryImpl

public SecurityTokenFactoryImpl(@Qualifier(value="blobCrypter")
                                org.apache.shindig.common.crypto.BlobCrypter crypter,
                                ContainerDomainProvider domainProvider,
                                com.atlassian.sal.api.ApplicationProperties applicationProperties)
Method Detail

newSecurityToken

public String newSecurityToken(GadgetState state,
                               String viewer)
Description copied from interface: SecurityTokenFactory
Create a new security token for the gadget. The viewer of the gadget is the user actually making the request for the gadget to be displayed, but may not be the owner.

Specified by:
newSecurityToken in interface SecurityTokenFactory
Parameters:
state - Gadget to generate a security token for
viewer - user that is making the request for the gadget to be displayed
Returns:
security token that encodes the owner, viewer, and gadget information in a secure manner


Copyright © 2011 Atlassian. All Rights Reserved.