org.glassfish.admingui.common.security
Class AdminConsoleAuthModule

java.lang.Object
  extended by org.glassfish.admingui.common.security.AdminConsoleAuthModule
All Implemented Interfaces:
ServerAuthModule, ServerAuth

public class AdminConsoleAuthModule
extends Object
implements 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
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

TOKEN_ADMIN_LISTENER_PORT

public static final String TOKEN_ADMIN_LISTENER_PORT
See Also:
Constant Field Values

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
Constructor Detail

AdminConsoleAuthModule

public AdminConsoleAuthModule()
Method Detail

initialize

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.

Specified by:
initialize in interface ServerAuthModule
Throws:
AuthException

getSupportedMessageTypes

public Class[] getSupportedMessageTypes()
Specified by:
getSupportedMessageTypes in interface ServerAuthModule

validateRequest

public AuthStatus validateRequest(MessageInfo messageInfo,
                                  Subject clientSubject,
                                  Subject serviceSubject)
                           throws AuthException

This is where the validation happens...

Specified by:
validateRequest in interface ServerAuth
Throws:
AuthException

secureResponse

public AuthStatus secureResponse(MessageInfo messageInfo,
                                 Subject serviceSubject)
                          throws AuthException
Specified by:
secureResponse in interface ServerAuth
Throws:
AuthException

cleanSubject

public void cleanSubject(MessageInfo messageInfo,
                         Subject subject)
                  throws AuthException
Specified by:
cleanSubject in interface ServerAuth
Throws:
AuthException


Copyright © 2012. All Rights Reserved.