Class SsoTokenContext

    • Constructor Detail

      • SsoTokenContext

        public SsoTokenContext​(Context parent,
                               JsonValue info,
                               String token,
                               String loginEndpoint)
        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.
        loginEndpoint - The login endpoint URI evaluated from SingleSignOnFilter configuration, may be null.
    • Method Detail

      • fromSessionInfo

        public static final SsoTokenContext fromSessionInfo​(Context parent,
                                                            org.forgerock.openig.tools.session.SessionInfo sessionInfo,
                                                            String loginEndpoint)
        Create a SsoTokenContext from a SessionInfo and SSO token.
        Parameters:
        parent - The parent context.
        sessionInfo - The validation information associated with this context to store, not null.
        loginEndpoint - The login endpoint URI evaluated from SingleSignOnFilter configuration, may be null.
        Returns:
        a SsoTokenContext
      • getInfo

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

        public 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.
      • getLoginEndpoint

        public String getLoginEndpoint()
        The login endpoint URI evaluated from SingleSignOnFilter configuration.
        Returns:
        the login endpoint associated with this SsoTokenContext context.