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 Details

    • REST_SERVER_NAME

      public static final String REST_SERVER_NAME
      The Session key for the REST Server Name.
      See Also:
    • REST_SERVER_PORT

      public static final String REST_SERVER_PORT
      The Session key for the REST Server Port.
      See Also:
    • REST_TOKEN

      public static final String REST_TOKEN
      The Session key for the REST authentication token.
      See Also:
  • Constructor Details

    • AdminConsoleAuthModule

      public AdminConsoleAuthModule()
  • Method Details

    • 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
      This method configures this AuthModule and makes sure all the information needed to continue is present.
      Specified by:
      initialize in interface jakarta.security.auth.message.module.ServerAuthModule
      Throws:
      jakarta.security.auth.message.AuthException
    • getSupportedMessageTypes

      public Class[] getSupportedMessageTypes()
      Specified by:
      getSupportedMessageTypes in interface jakarta.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.AuthException
      This is where the validation happens...
      Specified by:
      validateRequest in interface jakarta.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:
      secureResponse in interface jakarta.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:
      cleanSubject in interface jakarta.security.auth.message.ServerAuth
      Throws:
      jakarta.security.auth.message.AuthException