Framework Serveur J2EE ACube V3.1.0
CLASSE PRECEDANTE CLASSE SUIVANTE
SOMMAIRE: ATTR CONSTR METH DETAIL: ATTR CONSTR METH

acube.framework.clavierVirtuel.realm
Classe JAASCallbackHandler
java.lang.Object
  acube.framework.clavierVirtuel.realm.JAASCallbackHandler
Interfaces à implémenter:
CallbackHandler

public class JAASCallbackHandler
hérite de Object
implémente CallbackHandler

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.

Author:
Craig R. McClanahan
Andrew R. Jaquith
Version:
$Revision: 1.1 $ $Date: 2007-03-26 08:14:19 $

Sommaire des Attributs
private String
password
The password to be authenticated with.
private JAASRealm
realm
The associated JAASRealm instance.
private static final org.apache.catalina.util.StringManager
SM
The string manager for this package.
private String
username
The username to be authenticated with.
Sommaire des Constructeurs
JAASCallbackHandler(JAASRealm realm, String username, String password)
Construct a callback handler configured with the specified values.
Sommaire des Méthodes
void
handle(Callback[] callbacks)
Retrieve the information requested in the provided Callbacks.
Méthodes héritées de la classe java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Méthodes héritées de l'interface javax.security.auth.callback.CallbackHandler
handle
Détail des Attributs
SM
private static final org.apache.catalina.util.StringManager SM
The string manager for this package.

password
private String password
The password to be authenticated with.

realm
private JAASRealm realm
The associated JAASRealm instance.

username
private String username
The username to be authenticated with.
Détail des Constructeurs
JAASCallbackHandler
public JAASCallbackHandler(JAASRealm realm,
                           String username,
                           String password)
Construct a callback handler configured with the specified values. Note that if the JAASRealm instance specifies digested passwords, the password parameter will be pre-digested here.
Détail des méthodes
handle
public void handle(Callback[] callbacks)
            throws IOException,
                   UnsupportedCallbackException
Retrieve the information requested in the provided Callbacks. This implementation only recognizes NameCallback and PasswordCallback instances.
Spécifié par:
handle in interface CallbackHandler
Paramètres:
callbacks - The set of Callbacks to be processed
Exceptions:
IOException - if an input/output error occurs
UnsupportedCallbackException - if the login method requests an unsupported callback type

Framework Serveur J2EE ACube V3.1.0
CLASSE PRECEDANTE CLASSE SUIVANTE
SOMMAIRE: ATTR CONSTR METH DETAIL: ATTR CONSTR METH

Version 3.1.0 du 06/11/2009 / Etat : Validé
Cette création est mise à disposition selon le Contrat Paternité - Pas d'Utilisation Commerciale - Partage des Conditions Initiales à l'Identique disponible en ligne http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ ou par courrier postal à Creative Commons, 559 Nathan Abbott Way, Stanford,California 94305, USA.
Documentation generated by DocFlex