public class AdminConsoleAuthModule extends Object implements javax.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(javax.security.auth.message.MessageInfo messageInfo,
Subject subject) |
Class[] |
getSupportedMessageTypes() |
void |
initialize(javax.security.auth.message.MessagePolicy requestPolicy,
javax.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.
|
javax.security.auth.message.AuthStatus |
secureResponse(javax.security.auth.message.MessageInfo messageInfo,
Subject serviceSubject) |
javax.security.auth.message.AuthStatus |
validateRequest(javax.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(javax.security.auth.message.MessagePolicy requestPolicy, javax.security.auth.message.MessagePolicy responsePolicy, CallbackHandler handler, Map options) throws javax.security.auth.message.AuthException
This method configures this AuthModule and makes sure all the information needed to continue is present.
initialize in interface javax.security.auth.message.module.ServerAuthModulejavax.security.auth.message.AuthExceptionpublic Class[] getSupportedMessageTypes()
getSupportedMessageTypes in interface javax.security.auth.message.module.ServerAuthModulepublic javax.security.auth.message.AuthStatus validateRequest(javax.security.auth.message.MessageInfo messageInfo, Subject clientSubject, Subject serviceSubject) throws javax.security.auth.message.AuthException
This is where the validation happens...
validateRequest in interface javax.security.auth.message.ServerAuthjavax.security.auth.message.AuthExceptionpublic javax.security.auth.message.AuthStatus secureResponse(javax.security.auth.message.MessageInfo messageInfo, Subject serviceSubject) throws javax.security.auth.message.AuthException
secureResponse in interface javax.security.auth.message.ServerAuthjavax.security.auth.message.AuthExceptionpublic void cleanSubject(javax.security.auth.message.MessageInfo messageInfo, Subject subject) throws javax.security.auth.message.AuthException
cleanSubject in interface javax.security.auth.message.ServerAuthjavax.security.auth.message.AuthExceptionCopyright © 2017. All rights reserved.