Interface MessageContext
- All Superinterfaces:
Context,MessageInfoContext
- All Known Implementing Classes:
MessageContextImpl
The authentication framework uses this MessageContext to pass messages and message
processing state to authentication contexts for processing by authentication modules.
This class encapsulates a request and response message objects for a message exchange. This class may also be used to associate additional context in the form of key/value pairs, with the encapsulated messages.
- Since:
- 2.0.0
- See Also:
-
MessageInfo
-
Method Summary
Modifier and TypeMethodDescriptionGets theAuditTrailinstance for this message exchange.<T extends AuthenticationState>
TgetState(AsyncServerAuthContext authContext) Gets theAuthenticationStateinstance that maintains any stateful information for the providedAsyncServerAuthContext.Methods inherited from interface org.forgerock.services.context.Context
as, asContext, containsContext, containsContext, get, getContext, getContextName, getId, getParent, getRootId, isRootContext, toJsonValueMethods inherited from interface org.forgerock.caf.authentication.api.MessageInfoContext
getRequest, getRequestContextMap, getResponse, setRequest, setResponse
-
Method Details
-
getAuditTrail
AuditTrail getAuditTrail()Gets theAuditTrailinstance for this message exchange.- Returns:
- The
AuditTrail
-
getState
Gets theAuthenticationStateinstance that maintains any stateful information for the providedAsyncServerAuthContext.- Type Parameters:
T- The type of state class.- Parameters:
authContext- TheAsyncServerAuthContextfor which the state applies.- Returns:
- The
AuthenticationStateinstance.
-