Uses of Interface
org.forgerock.caf.authentication.api.MessageContext
Packages that use 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
Methods in org.forgerock.caf.authentication.api with parameters of type MessageContextModifier 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
Classes in org.forgerock.caf.authentication.framework that implement MessageContextModifier and TypeClassDescriptionfinal classAn implementation ofMessageContextthat holds contextual information and state for a given request and response message exchange.Methods in org.forgerock.caf.authentication.framework with parameters of type MessageContextModifier and TypeMethodDescriptionFallbackAuthContext.cleanSubject(MessageContext context, Subject clientSubject) Calls eachAsyncServerAuthContextin 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 sameAsyncServerAuthModulethat 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 eachAsyncServerAuthModulein order until an auth module returns anAuthStatusvalue other thanSEND_FAILURE, or returns anAuthenticationExceptionor the end of the module list is reached.voidResponseWriter.write(MessageContext context, AuthenticationException exception) Write the details of the exception out, and set the content type of the response.