org.jasig.cas.authentication.handler.support
Class JaasAuthenticationHandler.UsernamePasswordCallbackHandler
java.lang.Object
org.jasig.cas.authentication.handler.support.JaasAuthenticationHandler.UsernamePasswordCallbackHandler
- All Implemented Interfaces:
- javax.security.auth.callback.CallbackHandler
- Enclosing class:
- JaasAuthenticationHandler
protected static final class JaasAuthenticationHandler.UsernamePasswordCallbackHandler
- extends java.lang.Object
- implements javax.security.auth.callback.CallbackHandler
A simple JAAS CallbackHandler which accepts a Name String and Password
String in the constructor. Only NameCallbacks and PasswordCallbacks are
accepted in the callback array. This code based loosely on example given
in Sun's javadoc for CallbackHandler interface.
|
Method Summary |
void |
handle(javax.security.auth.callback.Callback[] callbacks)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JaasAuthenticationHandler.UsernamePasswordCallbackHandler
protected JaasAuthenticationHandler.UsernamePasswordCallbackHandler(java.lang.String userName,
java.lang.String password)
- Constuctor accepts name and password to be used for authentication.
- Parameters:
userName - name to be used for authenticationpassword - Password to be used for authentication
handle
public void handle(javax.security.auth.callback.Callback[] callbacks)
throws javax.security.auth.callback.UnsupportedCallbackException
- Specified by:
handle in interface javax.security.auth.callback.CallbackHandler
- Throws:
javax.security.auth.callback.UnsupportedCallbackException
Copyright © 2004-2010 Java Architectures Special Interest Group. All Rights Reserved.