Interface SecurityTokenFactory


public interface SecurityTokenFactory
A factory for generating security tokens that is used when rendering gadgets.
  • Method Summary

    Modifier and Type
    Method
    Description
    Create a new security token for the gadget.
  • Method Details

    • 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 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