Uses of Interface
org.forgerock.caf.authentication.api.MessageContext
-
Packages that use MessageContext Package Description org.forgerock.caf.authentication.api This package defines the core interfaces and classes to provide an asynchronous and improved JASPI-like message authentication API.org.forgerock.caf.authentication.framework This package defines the authentication framework classes for the authentication of messages via authentication contexts and modules. -
-
Uses of MessageContext in org.forgerock.caf.authentication.api
Methods in org.forgerock.caf.authentication.api with parameters of type MessageContext Modifier and Type Method Description Promise<Void,AuthenticationException>
AsyncServerAuthContext. cleanSubject(MessageContext context, Subject clientSubject)
Removes any method specific principals and credentials from the client subject.Promise<javax.security.auth.message.AuthStatus,AuthenticationException>
AsyncServerAuthContext. secureResponse(MessageContext context, Subject serviceSubject)
Secures the outgoing response message.Promise<javax.security.auth.message.AuthStatus,AuthenticationException>
AsyncServerAuthContext. validateRequest(MessageContext context, Subject clientSubject, Subject serviceSubject)
Validates the incoming request message. -
Uses of MessageContext in org.forgerock.caf.authentication.framework
Classes in org.forgerock.caf.authentication.framework that implement MessageContext Modifier and Type Class Description class
MessageContextImpl
An implementation ofMessageContext
that holds contextual information and state for a given request and response message exchange.Methods in org.forgerock.caf.authentication.framework with parameters of type MessageContext Modifier and Type Method Description Promise<Void,AuthenticationException>
FallbackAuthContext. cleanSubject(MessageContext context, Subject clientSubject)
Calls eachAsyncServerAuthContext
in parallel to clean the client subject and only return a successful promise if all complete successfully otherwise returns the first exception in a failed promise.Promise<javax.security.auth.message.AuthStatus,AuthenticationException>
FallbackAuthContext. secureResponse(MessageContext context, Subject serviceSubject)
Secures the response message using the sameAsyncServerAuthModule
that authenticated the incoming request message.Promise<javax.security.auth.message.AuthStatus,AuthenticationException>
FallbackAuthContext. validateRequest(MessageContext context, Subject clientSubject, Subject serviceSubject)
Authenticates the incoming request message by calling eachAsyncServerAuthModule
in order until an auth module returns anAuthStatus
value other thanSEND_FAILURE
, or returns anAuthenticationException
or the end of the module list is reached.void
ResponseWriter. write(MessageContext context, AuthenticationException exception)
Write the details of the exception out, and set the content type of the response.
-