Framework Serveur J2EE ACube V2.7.4
CLASSE PRECEDANTE CLASSE SUIVANTE
SOMMAIRE: ATTR CONSTR METH DETAIL: ATTR CONSTR METH

acube.framework.clavierVirtuel
Classe GestionnaireRefCles
java.lang.Object
  acube.framework.clavierVirtuel.GestionnaireRefCles

public class GestionnaireRefCles
hérite de Object
Implementation de la gestion des références client pour le clavier virtuel Les accès aux deux HashMap seront synchronisées sur l'objet tabRef pour permettre de garder une cohérence entre les deux HashMap
Author:
Florent RAYMONDAUD
Version:
2.6.1

Sommaire des Attributs
private static SecureRandom
generator
Random number generator
private static final int
LG_CLE
Length of the key
private static Map
tabKey
Table that contains all key and the list of icons assoociate
Sommaire des Constructeurs
private
GestionnaireRefCles()
Private constructor
Sommaire des Méthodes
static String
generateKey(List listIcons)
Thie method will generate a new key and will put the key and lthe list associate to the global list.
private static String
generateRandomNumber(int length)
This method will generate a random number with a define length.
static List
getListIcons(String key)
Return the tab contains the icon that will be use in the virtual keypad.
static String
getPassword(String credential)
Return the password of user from the credential.
private static void
removeKey(String key)
This method will remove a key of the table
Méthodes héritées de la classe java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Détail des Attributs
LG_CLE
private static final int LG_CLE
Length of the key

tabKey
private static Map tabKey
Table that contains all key and the list of icons assoociate

generator
private static SecureRandom generator
Random number generator
Détail des Constructeurs
GestionnaireRefCles
private GestionnaireRefCles()
Private constructor
Détail des méthodes
generateKey
public static String generateKey(List listIcons)
Thie method will generate a new key and will put the key and lthe list associate to the global list.
Paramètres:
listIcons - the list of icons that will be use
Retours:
String a new key

getListIcons
public static List getListIcons(String key)
Return the tab contains the icon that will be use in the virtual keypad. This tab is find by the key in parameters.
Paramètres:
key - key to find the list of icons
Retours:
list of icons

generateRandomNumber
private static String generateRandomNumber(int length)
This method will generate a random number with a define length.
Paramètres:
length - length of the number to generate
Retours:
A random number

getPassword
public static String getPassword(String credential)
Return the password of user from the credential. Return null if the key is not valid.
Paramètres:
credential - the encrypt password
Retours:
the password of the user

removeKey
private static void removeKey(String key)
This method will remove a key of the table
Paramètres:
key - the key to remove

Framework Serveur J2EE ACube V2.7.4
CLASSE PRECEDANTE CLASSE SUIVANTE
SOMMAIRE: ATTR CONSTR METH DETAIL: ATTR CONSTR METH

Version 2.7.4 du 10/07/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