Interface SubjectContext

  • All Superinterfaces:
    org.forgerock.services.context.Context
    All Known Implementing Classes:
    AdminSubjectContext, SSOTokenContext

    public interface SubjectContext
    extends org.forgerock.services.context.Context
    CREST context interface for ServerContexts that allow retrieving an authenticated caller subject.
    Since:
    12.0.0
    • Method Detail

      • getCallerSubject

        Subject getCallerSubject()
        Returns the authenticated subject associated with this request.
        Returns:
        the authenticated subject associated with this request, or null if not authenticated.
      • getCallerSSOToken

        SSOToken getCallerSSOToken()
        Returns the authenticated subjects sso token associated with this request.
        Returns:
        the SSOToken associated with this request
      • getCallerSessionID

        SessionID getCallerSessionID()
        Returns the session ID created from the token ID.
        Returns:
        The SessionID instance.
      • getCallerSession

        Session getCallerSession()
        Returns the session created from the session ID.
        Returns:
        The Session instance.