public interface MessageContext extends Context, MessageInfoContext
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.
MessageInfo
Modifier and Type | Method and Description |
---|---|
AuditTrail |
getAuditTrail()
Gets the
AuditTrail instance for this message exchange. |
<T extends AuthenticationState> |
getState(AsyncServerAuthContext authContext)
Gets the
AuthenticationState instance that maintains any stateful information for
the provided AsyncServerAuthContext . |
getRequest, getRequestContextMap, getResponse, setRequest, setResponse
asContext, containsContext, containsContext, getContext, getContextName, getId, getParent, getRootId, isRootContext, toJsonValue
AuditTrail getAuditTrail()
AuditTrail
instance for this message exchange.AuditTrail
<T extends AuthenticationState> T getState(AsyncServerAuthContext authContext)
AuthenticationState
instance that maintains any stateful information for
the provided AsyncServerAuthContext
.T
- The type of state class.authContext
- The AsyncServerAuthContext
for which the state applies.AuthenticationState
instance.Copyright © 2010-2018, ForgeRock All Rights Reserved.