|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.cafesoft.cams.auth.callback.NamePasswordCallbackHandler
CallbackHandler interface for JAAS LoginModules that must prompt for input. Provides the specified username and password when prompted by the Callback.
| Constructor Summary | |
NamePasswordCallbackHandler()
Create a new NamePasswordCallbackHandler (required Cams default constructor that is dynamically called by the authentication server). |
|
NamePasswordCallbackHandler(String username,
String password)
Create a new NamePasswordCallbackHandler (optional constructor used to facilitate testing). |
|
| Method Summary | |
void |
handle(Callback[] callbacks)
Retrieve or display the information requested in the provided Callbacks. |
void |
setPassword(String password)
Set the password. |
void |
setUsername(String username)
Set the username. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public NamePasswordCallbackHandler()
public NamePasswordCallbackHandler(String username,
String password)
username - the username to provide when prompted.password - the password to provide when prompted.| Method Detail |
public void setUsername(String username)
username - the username to be provided to a NameCallback.public void setPassword(String password)
password - the password to be provided to a PasswordCallback.
public void handle(Callback[] callbacks)
throws IOException,
UnsupportedCallbackException
handle in interface CallbackHandlercallbacks - an array of Callback objects provided by an underlying
security service which contains the information requested to be retrieved
or displayed.
IOException - if an input or output error ocurrs
UnsupportedCallbackException - if the implementation of this
method does not support one or more of the Callbacks specified in the
callbacks parameter
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||