| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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).
This CallbackHandler will pre-digest the supplied
 password, if required by the <Realm> element in 
 server.xml.
At present, JAASCallbackHandler knows how to handle callbacks of
 type javax.security.auth.callback.NameCallback and
 javax.security.auth.callback.PasswordCallback.
| Field Summary | |
| protected  java.lang.String | authMethodThe authentication methdod to be used. | 
| protected  java.lang.String | cnonceClient generated nonce. | 
| protected  java.lang.String | md5a2Second MD5 digest. | 
| protected  java.lang.String | ncNonce count. | 
| protected  java.lang.String | nonceServer generated nonce. | 
| protected  java.lang.String | passwordThe password to be authenticated with. | 
| protected  java.lang.String | qopQuality of protection aplied to the message. | 
| protected  JAASRealm | realmThe associated JAASRealminstance. | 
| protected  java.lang.String | realmNameRealm name. | 
| protected static StringManager | smThe string manager for this package. | 
| protected  java.lang.String | usernameThe 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. | |
| JAASCallbackHandler(JAASRealm realm,
                    java.lang.String username,
                    java.lang.String password,
                    java.lang.String nonce,
                    java.lang.String nc,
                    java.lang.String cnonce,
                    java.lang.String qop,
                    java.lang.String realmName,
                    java.lang.String md5a2,
                    java.lang.String authMethod)Construct a callback handler for DIGEST authentication. | |
| 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 static final StringManager sm
protected java.lang.String password
protected JAASRealm realm
JAASRealm instance.
protected java.lang.String username
protected java.lang.String nonce
protected java.lang.String nc
protected java.lang.String cnonce
protected java.lang.String qop
protected java.lang.String realmName
protected java.lang.String md5a2
protected java.lang.String authMethod
| Constructor Detail | 
public JAASCallbackHandler(JAASRealm realm,
                           java.lang.String username,
                           java.lang.String password)
JAASRealm instance specifies digested passwords,
 the password parameter will be pre-digested here.
realm - Our associated JAASRealm instanceusername - Username to be authenticated withpassword - Password to be authenticated with
public JAASCallbackHandler(JAASRealm realm,
                           java.lang.String username,
                           java.lang.String password,
                           java.lang.String nonce,
                           java.lang.String nc,
                           java.lang.String cnonce,
                           java.lang.String qop,
                           java.lang.String realmName,
                           java.lang.String md5a2,
                           java.lang.String authMethod)
realm - Our associated JAASRealm instanceusername - Username to be authenticated withpassword - Password to be authenticated withnonce - Server generated noncenc - Nonce countcnonce - Client generated nonceqop - Quality of protection aplied to the messagerealmName - Realm namemd5a2 - Second MD5 digest used to calculate the digest
                      MD5(Method + ":" + uri)authMethod - The authentication mehtod in use| Method Detail | 
public void handle(javax.security.auth.callback.Callback[] callbacks)
            throws java.io.IOException,
                   javax.security.auth.callback.UnsupportedCallbackException
Callbacks.
 This implementation only recognizes NameCallback,
 PasswordCallback and TextInputCallback.
 TextInputCallback is ued to pass the various additional
 parameters required for DIGEST authentication.
handle in interface javax.security.auth.callback.CallbackHandlercallbacks - 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 | |||||||||