|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.admingui.common.security.AdminConsoleAuthModule
public class AdminConsoleAuthModule
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 | |
|---|---|
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. |
static String |
TOKEN_ADMIN_LISTENER_PORT
|
| Constructor Summary | |
|---|---|
AdminConsoleAuthModule()
|
|
| Method Summary | |
|---|---|
void |
cleanSubject(MessageInfo messageInfo,
Subject subject)
|
Class[] |
getSupportedMessageTypes()
|
void |
initialize(MessagePolicy requestPolicy,
MessagePolicy responsePolicy,
CallbackHandler handler,
Map options)
This method configures this AuthModule and makes sure all the information needed to continue is present. |
AuthStatus |
secureResponse(MessageInfo messageInfo,
Subject serviceSubject)
|
AuthStatus |
validateRequest(MessageInfo messageInfo,
Subject clientSubject,
Subject serviceSubject)
This is where the validation happens... |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String TOKEN_ADMIN_LISTENER_PORT
public static final String REST_SERVER_NAME
public static final String REST_SERVER_PORT
public static final String REST_TOKEN
| Constructor Detail |
|---|
public AdminConsoleAuthModule()
| Method Detail |
|---|
public void initialize(MessagePolicy requestPolicy,
MessagePolicy responsePolicy,
CallbackHandler handler,
Map options)
throws AuthException
This method configures this AuthModule and makes sure all the information needed to continue is present.
initialize in interface ServerAuthModuleAuthExceptionpublic Class[] getSupportedMessageTypes()
getSupportedMessageTypes in interface ServerAuthModule
public AuthStatus validateRequest(MessageInfo messageInfo,
Subject clientSubject,
Subject serviceSubject)
throws AuthException
This is where the validation happens...
validateRequest in interface ServerAuthAuthException
public AuthStatus secureResponse(MessageInfo messageInfo,
Subject serviceSubject)
throws AuthException
secureResponse in interface ServerAuthAuthException
public void cleanSubject(MessageInfo messageInfo,
Subject subject)
throws AuthException
cleanSubject in interface ServerAuthAuthException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||