Class SimpleServerAuthContext
java.lang.Object
org.apache.catalina.authenticator.jaspic.SimpleServerAuthContext
- All Implemented Interfaces:
ServerAuthContext,ServerAuth
Basic implementation primarily intended for use when using third-party
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanSubject(MessageInfo messageInfo, Subject subject) Remove principals and/or credentials from the subject that were previously added by this authentication mechanism.secureResponse(MessageInfo messageInfo, Subject serviceSubject) Secure (authenticate) the response.validateRequest(MessageInfo messageInfo, Subject clientSubject, Subject serviceSubject) Validate the request.
-
Constructor Details
-
SimpleServerAuthContext
-
-
Method Details
-
validateRequest
public AuthStatus validateRequest(MessageInfo messageInfo, Subject clientSubject, Subject serviceSubject) throws AuthException Description copied from interface:jakarta.security.auth.message.ServerAuthValidate the request.- Specified by:
validateRequestin interfaceServerAuth- Parameters:
messageInfo- The associated request and responseclientSubject- The subject that represents the source of the requestserviceSubject- The subject that represents the recipient of the request- Returns:
- An AuthStatus instance that represents the result of the validation
- Throws:
AuthException- If a failure occurred in a manner that prevented the failure from being communicated via messageInfo
-
secureResponse
public AuthStatus secureResponse(MessageInfo messageInfo, Subject serviceSubject) throws AuthException Description copied from interface:jakarta.security.auth.message.ServerAuthSecure (authenticate) the response.- Specified by:
secureResponsein interfaceServerAuth- Parameters:
messageInfo- The associated request and responseserviceSubject- The subject that represents the source of the response- Returns:
- An AuthStatus instance that represents the result of the authentication
- Throws:
AuthException- If a failure occurred in a manner that prevented the failure from being communicated via messageInfo
-
cleanSubject
Description copied from interface:jakarta.security.auth.message.ServerAuthRemove principals and/or credentials from the subject that were previously added by this authentication mechanism.- Specified by:
cleanSubjectin interfaceServerAuth- Parameters:
messageInfo- The associated request and responsesubject- The subject to clean- Throws:
AuthException- If a failure occurred
-