Uses of Interface
org.forgerock.caf.authentication.api.MessageContext
Package
Description
This package defines the core interfaces and classes to provide an asynchronous and improved
JASPI-like message authentication API.
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
Modifier and TypeMethodDescriptionAsyncServerAuthContext.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
Modifier and TypeClassDescriptionfinal class
An implementation ofMessageContext
that holds contextual information and state for a given request and response message exchange.Modifier and TypeMethodDescriptionFallbackAuthContext.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.