org.apache.geronimo.security.jaas.client
Class ServerLoginProxy

java.lang.Object
  extended by org.apache.geronimo.security.jaas.client.LoginModuleProxy
      extended by org.apache.geronimo.security.jaas.client.ServerLoginProxy
All Implemented Interfaces:
LoginModule

public class ServerLoginProxy
extends LoginModuleProxy


Field Summary
 
Fields inherited from class org.apache.geronimo.security.jaas.client.LoginModuleProxy
controlFlag, subject
 
Constructor Summary
ServerLoginProxy(LoginModuleControlFlag controlFlag, Subject subject, int lmIndex, JaasLoginServiceMBean service, JaasSessionId sessionHandle)
           
 
Method Summary
 boolean abort()
           
 boolean commit()
           
 void initialize(Subject subject, CallbackHandler handler, Map sharedState, Map options)
           
 boolean login()
          Perform a login on the server side.
 boolean logout()
           
 
Methods inherited from class org.apache.geronimo.security.jaas.client.LoginModuleProxy
getControlFlag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerLoginProxy

public ServerLoginProxy(LoginModuleControlFlag controlFlag,
                        Subject subject,
                        int lmIndex,
                        JaasLoginServiceMBean service,
                        JaasSessionId sessionHandle)
Method Detail

initialize

public void initialize(Subject subject,
                       CallbackHandler handler,
                       Map sharedState,
                       Map options)

login

public boolean login()
              throws LoginException
Perform a login on the server side.

Here we get the Callbacks from the server side, pass them to the local handler so that they may be filled. We pass the resulting set of Callbacks back to the server.

Returns:
true if the authentication succeeded, or false if this LoginModule should be ignored.
Throws:
LoginException - if the authentication fails

commit

public boolean commit()
               throws LoginException
Throws:
LoginException

abort

public boolean abort()
              throws LoginException
Throws:
LoginException

logout

public boolean logout()
               throws LoginException
Throws:
LoginException


Copyright © 2006 Apache Software Foundation. All Rights Reserved.