no.feide.mellon.jaas.callbackhandlers
Class PassiveCallbackHandler
java.lang.Object
no.feide.mellon.jaas.callbackhandlers.PassiveCallbackHandler
- All Implemented Interfaces:
- javax.security.auth.callback.CallbackHandler
public class PassiveCallbackHandler
- extends java.lang.Object
- implements javax.security.auth.callback.CallbackHandler
- Author:
- Rikke Amilde Løvlid
Field Summary |
(package private) char[] |
password
|
private java.lang.String |
username
|
Constructor Summary |
PassiveCallbackHandler(java.lang.String username,
java.lang.String password)
Creates a callback handler with the given username and password. |
Method Summary |
void |
clearPassword()
Clears out the password state. |
void |
handle(javax.security.auth.callback.Callback[] callbacks)
Handles the specified set of Callbacks. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
username
private java.lang.String username
password
char[] password
PassiveCallbackHandler
public PassiveCallbackHandler(java.lang.String username,
java.lang.String password)
- Creates a callback handler with the given username and password.
handle
public void handle(javax.security.auth.callback.Callback[] callbacks)
throws java.io.IOException,
javax.security.auth.callback.UnsupportedCallbackException
- Handles the specified set of Callbacks. Uses the
username and password that were given to the constructor
This class supports NameCallback and PasswordCallback.
- Specified by:
handle
in interface javax.security.auth.callback.CallbackHandler
- Parameters:
callbacks
- the callbacks to handle
- Throws:
java.io.IOException
- if an input or output error occurs.
javax.security.auth.callback.UnsupportedCallbackException
- if the callback is not an
instance of NameCallback or PasswordCallback
clearPassword
public void clearPassword()
- Clears out the password state.
Copyright © 2001-2006 UNINETT FAS. All Rights Reserved.