Interface SubjectContext
-
- All Superinterfaces:
org.forgerock.services.context.Context
- All Known Implementing Classes:
AdminSubjectContext,SSOTokenContext
public interface SubjectContext extends org.forgerock.services.context.ContextCREST context interface for ServerContexts that allow retrieving an authenticated caller subject.- Since:
- 12.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SessiongetCallerSession()Returns the session created from the session ID.SessionIDgetCallerSessionID()Returns the session ID created from the token ID.SSOTokengetCallerSSOToken()Returns the authenticated subjects sso token associated with this request.SubjectgetCallerSubject()Returns the authenticated subject associated with this request.
-
-
-
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
SSOTokenassociated with this request
-
getCallerSessionID
SessionID getCallerSessionID()
Returns the session ID created from the token ID.- Returns:
- The
SessionIDinstance.
-
-