public interface

SecurityTokenFactory

com.atlassian.gadgets.view.SecurityTokenFactory
Known Indirect Subclasses

Class Overview

A factory for generating security tokens that is used when rendering gadgets.

Summary

Public Methods
abstract String newSecurityToken(GadgetState state, String viewer)
Create a new security token for the gadget.

Public Methods

public abstract 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 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