public class SimpleServerAuthContext extends java.lang.Object implements ServerAuthContext
ServerAuthModule implementations that
only provide the module. This implementation supports multiple modules and will treat the user as authenticated if
any one module is able to authenticate the user.| Constructor and Description |
|---|
SimpleServerAuthContext(java.util.List<ServerAuthModule> modules) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanSubject(MessageInfo messageInfo,
javax.security.auth.Subject subject)
Remove principals and/or credentials from the subject that were previously added by this authentication
mechanism.
|
AuthStatus |
secureResponse(MessageInfo messageInfo,
javax.security.auth.Subject serviceSubject)
Secure (authenticate) the response.
|
AuthStatus |
validateRequest(MessageInfo messageInfo,
javax.security.auth.Subject clientSubject,
javax.security.auth.Subject serviceSubject)
Validate the request.
|
public SimpleServerAuthContext(java.util.List<ServerAuthModule> modules)
public AuthStatus validateRequest(MessageInfo messageInfo, javax.security.auth.Subject clientSubject, javax.security.auth.Subject serviceSubject) throws AuthException
javax.security.auth.message.ServerAuthvalidateRequest in interface ServerAuthmessageInfo - The associated request and responseclientSubject - The subject that represents the source of the requestserviceSubject - The subject that represents the recipient of the requestAuthException - If the a failure occurred in a manner that prevented the failure from being communicated
via messageInfopublic AuthStatus secureResponse(MessageInfo messageInfo, javax.security.auth.Subject serviceSubject) throws AuthException
javax.security.auth.message.ServerAuthsecureResponse in interface ServerAuthmessageInfo - The associated request and responseserviceSubject - The subject that represents the source of the responseAuthException - If the a failure occurred in a manner that prevented the failure from being communicated
via messageInfopublic void cleanSubject(MessageInfo messageInfo, javax.security.auth.Subject subject) throws AuthException
javax.security.auth.message.ServerAuthcleanSubject in interface ServerAuthmessageInfo - The associated request and responsesubject - The subject to cleanAuthException - If the a failure occurredCopyright © 2000-2024 Apache Software Foundation.
Apache Tomcat, Tomcat, Apache, the Apache Tomcat logo and the Apache logo are either registered trademarks or trademarks of the Apache Software Foundation.