java.lang.Object
org.acegisecurity.providers.jaas.JaasNameCallbackHandler
- All Implemented Interfaces:
- JaasAuthenticationCallbackHandler
- public class JaasNameCallbackHandler
- 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 JaasNameCallbackHandler specifically tailored to handling the
NameCallback.
- Version:
- $Id: JaasNameCallbackHandler.java,v 1.6 2005/11/29 13:10:08 benalex Exp $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JaasNameCallbackHandler
public JaasNameCallbackHandler()
handle
public void handle(javax.security.auth.callback.Callback callback,
org.acegisecurity.Authentication authentication)
throws java.io.IOException,
javax.security.auth.callback.UnsupportedCallbackException
- If the callback passed to the 'handle' method is an instance of
NameCallback, the JaasNameCallbackHandler will call,
callback.setName(authentication.getPrincipal().toString()).
- Specified by:
handle in interface JaasAuthenticationCallbackHandler