Class SsoTokenContext

  • All Implemented Interfaces:
    org.forgerock.services.context.Context

    public class SsoTokenContext
    extends org.forgerock.services.context.AbstractContext
    An SsoTokenContext could be used to store and retrieve an token.

    The SingleSignOnFilter uses this context to store the token and its validation information.

    • Field Summary

      • Fields inherited from class org.forgerock.services.context.AbstractContext

        data
    • Constructor Summary

      Constructors 
      Constructor Description
      SsoTokenContext​(org.forgerock.services.context.Context parent, org.forgerock.json.JsonValue info, String token)
      Creates a new SsoTokenContext context with the provided token and additional validation information such as 'realm', 'uid' and 'authModule'.
    • Constructor Detail

      • SsoTokenContext

        public SsoTokenContext​(org.forgerock.services.context.Context parent,
                               org.forgerock.json.JsonValue info,
                               String token)
        Creates a new SsoTokenContext context with the provided token and additional validation information such as 'realm', 'uid' and 'authModule'.
        Parameters:
        parent - The parent context.
        info - The validation information associated with this context to store, not null.
        token - The token associated with this context to store, not null.
    • Method Detail

      • getInfo

        public Map<String,​Object> getInfo()
        Returns the info associated with this context.
        Returns:
        the info JSON as a map.
      • asJsonValue

        public org.forgerock.json.JsonValue asJsonValue()
        Returns the info associated with this context as a JsonValue.
        Returns:
        the info associated with this context as a JsonValue.
      • getValue

        public String getValue()
        Returns the token associated with this SsoTokenContext context.
        Returns:
        the token associated with this SsoTokenContext context.