|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.catalina.realm.JAASCallbackHandler
Implementation of the JAAS CallbackHandler interface, used to negotiate delivery of the username and credentials that were specified to our constructor. No interaction with the user is required (or possible).
Field Summary | |
protected java.lang.String |
password
The password to be authenticated with. |
protected JAASRealm |
realm
The associated JAASRealm instance. |
protected java.lang.String |
username
The username to be authenticated with. |
Constructor Summary | |
JAASCallbackHandler(JAASRealm realm,
java.lang.String username,
java.lang.String password)
Construct a callback handler configured with the specified values. |
Method Summary | |
void |
handle(javax.security.auth.callback.Callback[] callbacks)
Retrieve the information requested in the provided Callbacks. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.String password
protected JAASRealm realm
JAASRealm
instance.
protected java.lang.String username
Constructor Detail |
public JAASCallbackHandler(JAASRealm realm, java.lang.String username, java.lang.String password)
realm
- Our associated JAASRealm instanceusername
- Username to be authenticated withpassword
- Password to be authenticated withMethod Detail |
public void handle(javax.security.auth.callback.Callback[] callbacks) throws java.io.IOException, javax.security.auth.callback.UnsupportedCallbackException
NameCallback
and
PasswordCallback
instances.
handle
in interface javax.security.auth.callback.CallbackHandler
callbacks
- The set of callbacks to be processed
java.io.IOException
- if an input/output error occurs
javax.security.auth.callback.UnsupportedCallbackException
- if the login method requests
an unsupported callback type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |