|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.spotfire.server.jaas.util.AutoCallbackHandler
public class AutoCallbackHandler
The AutoCallbackHandler is a utility class that can be
used by all JAAS clients. It automatically handles
Callback processing without requiring any user
interaction, which makes it suitable for web application
environments, where the user interaction has special
requirements.
The constructor takes one username and one
password argument. The username is used to
set the name property of a NameCallback and
the password is used to set the password
property of a PasswordCallback. Both constructor
arguments may be null.
The supported Callback implementations are
NameCallback and PasswordCallback. The
handle throws an
UnsupportedCallbackException for all other
Callback classes.
| Constructor Summary | |
|---|---|
AutoCallbackHandler(String username,
String password)
Creates a new AutoCallbackHandler instance. |
|
| Method Summary | |
|---|---|
void |
handle(Callback[] callbacks)
The handle method processes the given callbacks. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AutoCallbackHandler(String username,
String password)
AutoCallbackHandler instance.
username - the username, which may be nullpassword - the password, which may be null| Method Detail |
|---|
public void handle(Callback[] callbacks)
handle method processes the given callbacks. The
constructor argument username is used to set the
name property of any given NameCallback
and the constructor argument password is used to set
the password property of any given
PasswordCallback.
callbacks - a Callback[] value
UnsupportedCallbackException - if a given
Callback is unsupported
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||