org.apache.geronimo.connector.outbound.security
Class CallerIdentityPasswordCredentialLoginModule
java.lang.Object
org.apache.geronimo.connector.outbound.security.CallerIdentityPasswordCredentialLoginModule
- All Implemented Interfaces:
- LoginModule
public class CallerIdentityPasswordCredentialLoginModule
- extends Object
- implements LoginModule
CallerIdentityPasswordCredentialLoginModule uses the username and password from the CallbackHandler
and a ManagedConnectionFactory from the Options to construct a j2ca PasswordCredential that can be
used for j2ca container managed security.
This login module does not check credentials so it should never be able to cause a login to succeed.
Therefore the lifecycle methods must return false to indicate success or throw a LoginException to indicate failure.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CallerIdentityPasswordCredentialLoginModule
public CallerIdentityPasswordCredentialLoginModule()
initialize
public void initialize(Subject subject,
CallbackHandler callbackHandler,
Map sharedState,
Map options)
- Specified by:
initialize
in interface LoginModule
login
public boolean login()
throws LoginException
- Specified by:
login
in interface LoginModule
- Throws:
LoginException
commit
public boolean commit()
throws LoginException
- Specified by:
commit
in interface LoginModule
- Throws:
LoginException
abort
public boolean abort()
throws LoginException
- Specified by:
abort
in interface LoginModule
- Throws:
LoginException
logout
public boolean logout()
throws LoginException
- Specified by:
logout
in interface LoginModule
- Throws:
LoginException
Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.