Class BaseAuthModule
java.lang.Object
org.eclipse.jetty.ee10.security.jaspi.modules.BaseAuthModule
- All Implemented Interfaces:
 jakarta.security.auth.message.config.ServerAuthContext, jakarta.security.auth.message.module.ServerAuthModule, jakarta.security.auth.message.ServerAuth
- Direct Known Subclasses:
 BasicAuthenticationAuthModule
public abstract class BaseAuthModule
extends Object
implements jakarta.security.auth.message.module.ServerAuthModule, jakarta.security.auth.message.config.ServerAuthContext
Simple abstract module implementing a Jakarta Authentication 
ServerAuthModule and ServerAuthContext.
To be used as a building block for building more sophisticated auth modules.- 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidcleanSubject(jakarta.security.auth.message.MessageInfo messageInfo, Subject subject) Class[]voidinitialize(jakarta.security.auth.message.MessagePolicy requestPolicy, jakarta.security.auth.message.MessagePolicy responsePolicy, CallbackHandler handler, Map options) protected booleanlogin(Subject clientSubject, String credentials, String authenticationType, jakarta.security.auth.message.MessageInfo messageInfo) protected booleanlogin(Subject clientSubject, String username, Credential credential, String authenticationType, jakarta.security.auth.message.MessageInfo messageInfo) jakarta.security.auth.message.AuthStatussecureResponse(jakarta.security.auth.message.MessageInfo messageInfo, Subject serviceSubject) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jakarta.security.auth.message.ServerAuth
validateRequest 
- 
Field Details
- 
LOGIN_SERVICE_KEY
- See Also:
 
 - 
callbackHandler
 
 - 
 - 
Constructor Details
- 
BaseAuthModule
public BaseAuthModule() - 
BaseAuthModule
 
 - 
 - 
Method Details
- 
getSupportedMessageTypes
- Specified by:
 getSupportedMessageTypesin interfacejakarta.security.auth.message.module.ServerAuthModule
 - 
initialize
public void initialize(jakarta.security.auth.message.MessagePolicy requestPolicy, jakarta.security.auth.message.MessagePolicy responsePolicy, CallbackHandler handler, Map options) throws jakarta.security.auth.message.AuthException - Specified by:
 initializein interfacejakarta.security.auth.message.module.ServerAuthModule- Throws:
 jakarta.security.auth.message.AuthException
 - 
cleanSubject
public void cleanSubject(jakarta.security.auth.message.MessageInfo messageInfo, Subject subject) throws jakarta.security.auth.message.AuthException - Specified by:
 cleanSubjectin interfacejakarta.security.auth.message.ServerAuth- Throws:
 jakarta.security.auth.message.AuthException
 - 
secureResponse
public jakarta.security.auth.message.AuthStatus secureResponse(jakarta.security.auth.message.MessageInfo messageInfo, Subject serviceSubject) throws jakarta.security.auth.message.AuthException - Specified by:
 secureResponsein interfacejakarta.security.auth.message.ServerAuth- Throws:
 jakarta.security.auth.message.AuthException
 - 
login
protected boolean login(Subject clientSubject, String credentials, String authenticationType, jakarta.security.auth.message.MessageInfo messageInfo) throws IOException, UnsupportedCallbackException  - 
login
protected boolean login(Subject clientSubject, String username, Credential credential, String authenticationType, jakarta.security.auth.message.MessageInfo messageInfo) throws IOException, UnsupportedCallbackException  
 -