|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jguard.authentication.PassiveCallbackHandler
this class comes from the article called "all that jaas" posted on javaword.com in 2002. http://www.javaworld.com/javaworld/jw-09-2002/jw-0913-jaas.html
PassiveCallbackHandler has constructor that takes a username and password so its handle() method does not have to prompt the user for input. Useful for server-side applications.
| Constructor Summary | |
PassiveCallbackHandler(java.lang.String user,
java.lang.String pass)
Creates a callback handler with the give username and password. |
|
| Method Summary | |
void |
clearPassword()
Clears out 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 |
| Constructor Detail |
public PassiveCallbackHandler(java.lang.String user,
java.lang.String pass)
Creates a callback handler with the give username and password.
user - pass - | Method Detail |
public void handle(javax.security.auth.callback.Callback[] callbacks)
throws java.io.IOException,
javax.security.auth.callback.UnsupportedCallbackException
handle in interface javax.security.auth.callback.CallbackHandlercallbacks - the callbacks to handle
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 PasswordCallbackpublic void clearPassword()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||