com.atlassian.gadgets.renderer.internal
Class SecurityTokenFactoryImpl
java.lang.Object
com.atlassian.gadgets.renderer.internal.SecurityTokenFactoryImpl
- All Implemented Interfaces:
- SecurityTokenFactory
public class SecurityTokenFactoryImpl
- extends Object
- implements SecurityTokenFactory
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SecurityTokenFactoryImpl
public SecurityTokenFactoryImpl(@Qualifier(value="blobCrypter")
org.apache.shindig.common.crypto.BlobCrypter crypter,
ContainerDomainProvider domainProvider,
com.atlassian.sal.api.ApplicationProperties applicationProperties)
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 forviewer
- 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.