com.atlassian.gadgets.view
Interface SecurityTokenFactory
- All Known Implementing Classes:
- SecurityTokenFactoryImpl
public interface SecurityTokenFactory
A factory for generating security tokens that is used when rendering gadgets.
newSecurityToken
String newSecurityToken(GadgetState state,
String viewer)
- 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.
- 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 © 2010 Atlassian. All Rights Reserved.