Package com.atlassian.gadgets.view
Interface SecurityTokenFactory
public interface SecurityTokenFactory
A factory for generating security tokens that is used when rendering gadgets.
-
Method Summary
Modifier and TypeMethodDescriptionnewSecurityToken(GadgetState state, String viewer) Create a new security token for the gadget.
-
Method Details
-
newSecurityToken
Create a new security token for the gadget. Theviewerof 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
-