Class AdminConsoleAuthModule
- java.lang.Object
-
- org.glassfish.admingui.common.security.AdminConsoleAuthModule
-
- All Implemented Interfaces:
jakarta.security.auth.message.module.ServerAuthModule,jakarta.security.auth.message.ServerAuth
public class AdminConsoleAuthModule extends Object implements jakarta.security.auth.message.module.ServerAuthModule
This class is responsible for providing the Authentication support needed by the admin console to both access the admin console pages as well as invoke REST requests.
-
-
Field Summary
Fields Modifier and Type Field Description static StringREST_SERVER_NAMEThe Session key for the REST Server Name.static StringREST_SERVER_PORTThe Session key for the REST Server Port.static StringREST_TOKENThe Session key for the REST authentication token.
-
Constructor Summary
Constructors Constructor Description AdminConsoleAuthModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanSubject(jakarta.security.auth.message.MessageInfo messageInfo, Subject subject)Class[]getSupportedMessageTypes()voidinitialize(jakarta.security.auth.message.MessagePolicy requestPolicy, jakarta.security.auth.message.MessagePolicy responsePolicy, CallbackHandler handler, Map options)This method configures this AuthModule and makes sure all the information needed to continue is present.jakarta.security.auth.message.AuthStatussecureResponse(jakarta.security.auth.message.MessageInfo messageInfo, Subject serviceSubject)jakarta.security.auth.message.AuthStatusvalidateRequest(jakarta.security.auth.message.MessageInfo messageInfo, Subject clientSubject, Subject serviceSubject)This is where the validation happens...
-
-
-
Field Detail
-
REST_SERVER_NAME
public static final String REST_SERVER_NAME
The Session key for the REST Server Name.- See Also:
- Constant Field Values
-
REST_SERVER_PORT
public static final String REST_SERVER_PORT
The Session key for the REST Server Port.- See Also:
- Constant Field Values
-
REST_TOKEN
public static final String REST_TOKEN
The Session key for the REST authentication token.- See Also:
- Constant Field Values
-
-
Method Detail
-
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.AuthExceptionThis method configures this AuthModule and makes sure all the information needed to continue is present.- Specified by:
initializein interfacejakarta.security.auth.message.module.ServerAuthModule- Throws:
jakarta.security.auth.message.AuthException
-
getSupportedMessageTypes
public Class[] getSupportedMessageTypes()
- Specified by:
getSupportedMessageTypesin interfacejakarta.security.auth.message.module.ServerAuthModule
-
validateRequest
public jakarta.security.auth.message.AuthStatus validateRequest(jakarta.security.auth.message.MessageInfo messageInfo, Subject clientSubject, Subject serviceSubject) throws jakarta.security.auth.message.AuthExceptionThis is where the validation happens...- Specified by:
validateRequestin 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
-
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
-
-