java.lang.Object
org.acegisecurity.providers.jaas.JaasPasswordCallbackHandler
- All Implemented Interfaces:
- JaasAuthenticationCallbackHandler
- public class JaasPasswordCallbackHandler
- extends java.lang.Object
- implements JaasAuthenticationCallbackHandler
The most basic Callbacks to be handled when using a LoginContext from JAAS,
are the NameCallback and PasswordCallback. The acegi security framework
provides the JaasPasswordCallbackHandler specifically tailored to handling
the PasswordCallback.
- Version:
- $Id: JaasPasswordCallbackHandler.java,v 1.4 2005/11/17 00:55:52 benalex Exp $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JaasPasswordCallbackHandler
public JaasPasswordCallbackHandler()
handle
public void handle(javax.security.auth.callback.Callback callback,
org.acegisecurity.Authentication auth)
throws java.io.IOException,
javax.security.auth.callback.UnsupportedCallbackException
- If the callback passed to the 'handle' method is an instance of
PasswordCallback, the JaasPasswordCallbackHandler will call,
callback.setPassword(authentication.getCredentials().toString()).
- Specified by:
handle in interface JaasAuthenticationCallbackHandler