Class SimpleServerAuthContext
- java.lang.Object
- 
- org.apache.catalina.authenticator.jaspic.SimpleServerAuthContext
 
- 
- All Implemented Interfaces:
- ServerAuthContext,- ServerAuth
 
 public class SimpleServerAuthContext extends java.lang.Object implements ServerAuthContext Basic implementation primarily intended for use when using third-partyServerAuthModuleimplementations 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 SummaryConstructors Constructor Description SimpleServerAuthContext(java.util.List<ServerAuthModule> modules)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanSubject(MessageInfo messageInfo, javax.security.auth.Subject subject)Remove principals and/or credentials from the subject that were previously added by this authentication mechanism.AuthStatussecureResponse(MessageInfo messageInfo, javax.security.auth.Subject serviceSubject)Secure (authenticate) the response.AuthStatusvalidateRequest(MessageInfo messageInfo, javax.security.auth.Subject clientSubject, javax.security.auth.Subject serviceSubject)Validate the request.
 
- 
- 
- 
Constructor Detail- 
SimpleServerAuthContextpublic SimpleServerAuthContext(java.util.List<ServerAuthModule> modules) 
 
- 
 - 
Method Detail- 
validateRequestpublic AuthStatus validateRequest(MessageInfo messageInfo, javax.security.auth.Subject clientSubject, javax.security.auth.Subject serviceSubject) throws AuthException Description copied from interface:javax.security.auth.message.ServerAuthValidate the request.- Specified by:
- validateRequestin interface- ServerAuth
- Parameters:
- messageInfo- The associated request and response
- clientSubject- The subject that represents the source of the request
- serviceSubject- The subject that represents the recipient of the request
- Returns:
- An AuthStatus instance that represents the result of the validation
- Throws:
- AuthException- If the a failure occurred in a manner that prevented the failure from being communicated via messageInfo
 
 - 
secureResponsepublic AuthStatus secureResponse(MessageInfo messageInfo, javax.security.auth.Subject serviceSubject) throws AuthException Description copied from interface:javax.security.auth.message.ServerAuthSecure (authenticate) the response.- Specified by:
- secureResponsein interface- ServerAuth
- Parameters:
- messageInfo- The associated request and response
- serviceSubject- The subject that represents the source of the response
- Returns:
- An AuthStatus instance that represents the result of the authentication
- Throws:
- AuthException- If the a failure occurred in a manner that prevented the failure from being communicated via messageInfo
 
 - 
cleanSubjectpublic void cleanSubject(MessageInfo messageInfo, javax.security.auth.Subject subject) throws AuthException Description copied from interface:javax.security.auth.message.ServerAuthRemove principals and/or credentials from the subject that were previously added by this authentication mechanism.- Specified by:
- cleanSubjectin interface- ServerAuth
- Parameters:
- messageInfo- The associated request and response
- subject- The subject to clean
- Throws:
- AuthException- If the a failure occurred
 
 
- 
 
-