|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cafesoft.cams.auth.callback.NamePasswordCallbackHandler
public class 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 |
setCams_cookie_domain(String cookieDomain)
Set the Cams cookie domain. |
void |
setPassword(String password)
Set the password. |
void |
setSession_id(String sessionId)
Set the Cams session identifier. |
void |
setUsername(String username)
Set the username. |
void |
setX509_client_cert(String x509CertPEM)
Set an X509Certificate chain. |
| 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 setCams_cookie_domain(String cookieDomain)
cookieDomain - the Cams cookie domain.public void setX509_client_cert(String x509CertPEM)
x509CertPEM - the PEM-encoded client certificatepublic void setSession_id(String sessionId)
sessionId - an existing Cams session identifier in String form.
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 | |||||||||