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.
| Modifier and Type | Field and Description |
|---|---|
static String |
REST_SERVER_NAME
The Session key for the REST Server Name.
|
static String |
REST_SERVER_PORT
The Session key for the REST Server Port.
|
static String |
REST_TOKEN
The Session key for the REST authentication token.
|
| Constructor and Description |
|---|
AdminConsoleAuthModule() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanSubject(jakarta.security.auth.message.MessageInfo messageInfo,
Subject subject) |
Class[] |
getSupportedMessageTypes() |
void |
initialize(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.AuthStatus |
secureResponse(jakarta.security.auth.message.MessageInfo messageInfo,
Subject serviceSubject) |
jakarta.security.auth.message.AuthStatus |
validateRequest(jakarta.security.auth.message.MessageInfo messageInfo,
Subject clientSubject,
Subject serviceSubject)
This is where the validation happens...
|
public static final String REST_SERVER_NAME
public static final String REST_SERVER_PORT
public static final String REST_TOKEN
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.
initialize in interface jakarta.security.auth.message.module.ServerAuthModulejakarta.security.auth.message.AuthExceptionpublic Class[] getSupportedMessageTypes()
getSupportedMessageTypes in interface jakarta.security.auth.message.module.ServerAuthModulepublic 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...
validateRequest in interface jakarta.security.auth.message.ServerAuthjakarta.security.auth.message.AuthExceptionpublic jakarta.security.auth.message.AuthStatus secureResponse(jakarta.security.auth.message.MessageInfo messageInfo,
Subject serviceSubject)
throws jakarta.security.auth.message.AuthException
secureResponse in interface jakarta.security.auth.message.ServerAuthjakarta.security.auth.message.AuthExceptionpublic void cleanSubject(jakarta.security.auth.message.MessageInfo messageInfo,
Subject subject)
throws jakarta.security.auth.message.AuthException
cleanSubject in interface jakarta.security.auth.message.ServerAuthjakarta.security.auth.message.AuthExceptionCopyright © 2017–2020 Eclipse Foundation. All rights reserved.