ami
Class AMILocalParameter

java.lang.Object
  |
  +--org.xml.sax.helpers.DefaultHandler
        |
        +--ami.AMILocalParameter
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler, EventListener, KeyListener

public final class AMILocalParameter
extends org.xml.sax.helpers.DefaultHandler
implements KeyListener

Stores current AMI parameters.

We find three parameters types:

Version:
1.0
Author:
Bertrand Florat

Field Summary
private static AMILocalParameter alp
           
(package private) static float AMIPING_FACTOR
          CHECK_INTERVAL * AMIPING_FACTOR is the time sleep between two checks
private static AMIPasswordWindow apw
           
private static byte[] bPreK
           
(package private) static int BUFFER_SIZE
          sender default buffer size, ok for most puroposes ( ex: an IAI is about 500 characters-long )
static int DEFAULT_BONUS
          Standard value of the performance points gained after a right reply
(package private) static String DEFAULT_LANGUAGE
          Default language
static int DEFAULT_MALUS
          Standard value of the performance points removed after a wrong reply
(package private) static int DEFAULT_PORT
          AMI default port
private  Hashtable hParam
           
private static Hashtable hPriorityTable
          Used to store priority weights for common queries
private static Hashtable hProtocolAvailable
          Stores availability for all protocols
private static HashMap hProtocolLanguageDescription
          Stores protocols descriptions in any language protocol name -> HashMap language ( string) - > String description for this protocol
private static Hashtable hProtocolParam
          Stores parameters for all protocols protocol name -> hashtable hParam hParam : param name -> param value
private static HashMap hProtocolParamFormat
          Stores parameters descriptions in any language protocol name -> hashmap parameter name -> hashmap language -> parameter description
private static HashMap hProtocolParamLanguageDescription
          Stores parameters format protocol name -> hashmap parameter name -> String[] [ type,minlength,maxlength,minvalue,maxvalue,default ] null if not applicable
private static Hashtable hProtocolSecure
          Stores security flag for all protocols
private static Hashtable hProtocolSet
          Stores sets for all protocols protocol name -> hashtable hParam hParam : param name -> vector vector -> n param value strings
private static InetAddress iaIP
           
(package private) static int INITIAL_SENDER_NUMBER
          number of senders at begining
(package private)  int iNoteType
          Used to store parsing states 0=protocol description note1=parameter description note
private static Object[] k
           
(package private) static int LEVEL_1_PERIOD
          used by cleanrt AIS, period in sec
(package private) static int LEVEL_2_PERF
          used by cleanrt AIS, perf
static int MAX_ALIAS_LENGTH
          Alias max size
(package private) static int MAX_ALIAS_SIZE
          maximum size for the alias
static int MAX_COMMENT_LENGTH
          Comment max size
(package private) static int MAX_TTL
          Maximum allowed TTL
static int MIN_ALIAS_LENGTH
          Alias min size
static int MIN_COMMENT_LENGTH
          Comment min size
static int MIN_PASSWORD_SIZE
          Minimum passwork size
(package private) static int NB_TRIES
          nb of allowed tries for password
(package private) static int OUTPUT_BUFFER_FACTOR
          nb cycles we wait when output processor buffer is full
private static AMIPrivateKey pr
           
private static AMIPublicKey pu
           
(package private) static int RADIX_REPRESENTATION
          RADIX for storage
static String sAlias
           
private static String sAMIPath
           
(package private)  String sParsedParam
          Stores currently parsed parameter
(package private)  String sParsedSet
          Stores currently parsed set
private  String sProtocol
           
 
Constructor Summary
private AMILocalParameter(String sAMIPath)
          parameters are stored this way: Hashtable hProtocolParam ( protocol name, Hashtable parameters list) Hashtable parameter list (param name,value)
 
Method Summary
(package private) static void ()
           
(package private) static void addProtocol(String sProtocol, String sFileName, String sSecure)
          Add a new protocol
static void addSetEntry(String sProtocol, String sSet, String sValue)
          Add an entry in a set
static boolean checkFormat(String sProtocol, String sParam, String sValue)
          Check format for a parameter Assumes boundaries and all formats are correct and in right format
(package private)  void chgpass(boolean bGui)
          Method used to alter AMI symetrical key
(package private) static void commit()
          commit : serialize parameters of the protocol into XML files
static void createSet(String sProtocol, String sSet)
          Create a void set
(package private) static String displayParameters(String sProtocol)
          Displays all params values for a given protocol, used mainly for debug
 void endElement(String sUri, String sName, String sQName)
          Called when we end an element
(package private) static String getAlias()
          Return own alias ( quick access )
static HashMap getFormats()
          Return format table
(package private) static String getFullIP()
          Return IP with port : ex: 10.0.0.0:1000
(package private) static String getHostname()
          Return host name
(package private) static InetAddress getInetAddress()
          Return own full InetAddress (with host name...)
static AMILocalParameter getInstance(String sAMIPath)
          AMILocalParameter is a singleton, this method returns it
(package private) static String getIP()
          Return own IP address under numeric format
(package private) static Object[] getK()
          Return the symmetrical key
static byte[] getKInit()
          Return the non-computed symmetrical key
static String getLocal()
          Returns the language in use
(package private) static String getManualPassphrase(boolean bConfirmation, String sLabel)
          Ask user for a password ( text mode ) and check it
static String getParamDefaultValue(String sProtocol, String sParam)
          Get default value as a string for a protocol and a parameter
static HashMap getParamDescriptions()
          Return parameters description table
static String getParameterDescription(String sProtocol, String sParam, String sLang)
          Get Description for a protocol, a parameter and a language
(package private) static int getParamMaxLength(String sProtocol, String sParam)
          Get maxlength for a protocol and a parameter
(package private) static int getParamMaxValue(String sProtocol, String sParam)
          Get max value for a protocol and a parameter
(package private) static int getParamMinLength(String sProtocol, String sParam)
          Get minlength for a protocol and a parameter
(package private) static int getParamMinValue(String sProtocol, String sParam)
          Get min value for a protocol and a parameter
static Hashtable getParams()
          Return parameters table
(package private) static String getParamType(String sProtocol, String sParam)
          Get type for a protocol and a parameter
static String getPath()
          Returns the amipath
(package private) static AMIPrivateKey getPr()
          Return the private key
(package private) static int getPriority(String sType)
          Return the prority according to query type
(package private) static String getProtocolDescription(String sProtocol, String sLang)
          Get Description for a protocol and a language
static HashMap getProtocolDescriptions()
          Return protocol description table
static AMIPublicKey getPu()
          Return the public key
static Hashtable getSetArray()
          Return the full set array
static Enumeration getSetEnumeration(String sProtocol, String sSet)
          Return an enumeration of entries for a set
static int intValue(String sProtocol, String sParam)
          Return the parameter as an int
static boolean isAvailable(String sProtocol)
          Return true if a protocol is available
static boolean isInstanciated()
          return true if this AMILocalParameter is instanciated
static boolean isSecure(String sProtocol)
          Says if a protocol is in secure mode
 void keyPressed(KeyEvent ke)
          put your documentation comment here
 void keyReleased(KeyEvent ke)
          put your documentation comment here
 void keyTyped(KeyEvent ke)
          put your documentation comment here
(package private)  void loadPassphrase()
          Called by main class to load password panel
(package private)  void loadPassphrase(String sDefault)
          Called by main class to load password panel with default password
(package private) static long longValue(String sProtocol, String sParam)
          Return the parameter as an long
static void parseParameters()
          Called by main class to start parameter files parsing
(package private) static void reinitParam(String sProtocol, String sParam)
          Set default value for this param
(package private) static void reinitProtocol(String sProtocol)
          Re-init all parameters for a protocol
static void removeProtocol(String sProtocol)
          Remove a protocol
static void removeSetEntry(String sProtocol, String sSet, String sValue)
          Remove an entry from a set
(package private) static void setAlias(String sAlias)
          Set value of ALIAS ( used at installation )
static void setAvailable(String sProtocol, String sAvailable)
          Set availability of the given protocol
static boolean setContains(String sProtocol, String sSet, String sValue)
          Return true if the set given contains the entry
static void setK(String sPass)
          Set new password ( used during installation )
(package private) static void setParamDescription(String sProtocol, String sParam, String sLang, String sDescription)
          Set Description for a parameter in a protocol and a language
static void setParameter(String sProtocol, String sParam, String sValue)
          Set a value, the entry in parameters tables is created by setParamFormat method
(package private) static void setParamFormat(String sProtocol, String sParam, String sType, String sMinLength, String sMaxLength, String sMinValue, String sMaxValue, String sDefaultValue)
          Set parameter format
(package private)  void setPassphrase(String sPass)
          Called by main class in text mode to process the key directly
(package private) static void setPR(AMIPrivateKey apr)
          Set value of PR ( used at key generation )
(package private) static void setProtocolDescription(String sProtocol, String sLang, String sDescription)
          Set Description for a protocol and a language
(package private) static void setPU(AMIPublicKey apu)
          Set value of PU ( used at key generation )
static void setSecure(String sProtocol, String sSecure)
          Set secure mode of the given protocol
 void startDocument()
          Called at parsing start
 void startElement(String sUri, String sName, String sQName, org.xml.sax.Attributes attributes)
          Called when we start an element
 void startPrefixMapping(String sPrefix, String sUri)
          Called to process namespaces
static String stringValue(String sProtocol, String sParam)
          Return the parameter as a String
(package private) static void updateUserFile()
          Updates or creates user file
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

alp

private static AMILocalParameter alp

sProtocol

private String sProtocol

hParam

private Hashtable hParam

hProtocolParam

private static Hashtable hProtocolParam
Stores parameters for all protocols

protocol name -> hashtable hParam

hParam : param name -> param value


hProtocolSet

private static Hashtable hProtocolSet
Stores sets for all protocols

protocol name -> hashtable hParam

hParam : param name -> vector

vector -> n param value strings


hProtocolLanguageDescription

private static HashMap hProtocolLanguageDescription
Stores protocols descriptions in any language

protocol name -> HashMap

language ( string) - > String description for this protocol


hProtocolParamFormat

private static HashMap hProtocolParamFormat
Stores parameters descriptions in any language

protocol name -> hashmap

parameter name -> hashmap

language -> parameter description


hProtocolParamLanguageDescription

private static HashMap hProtocolParamLanguageDescription
Stores parameters format

protocol name -> hashmap

parameter name -> String[] [ type,minlength,maxlength,minvalue,maxvalue,default ] null if not applicable


hProtocolAvailable

private static Hashtable hProtocolAvailable
Stores availability for all protocols

hProtocolSecure

private static Hashtable hProtocolSecure
Stores security flag for all protocols

sAMIPath

private static String sAMIPath

hPriorityTable

private static Hashtable hPriorityTable
Used to store priority weights for common queries

iaIP

private static InetAddress iaIP

pu

private static AMIPublicKey pu

pr

private static AMIPrivateKey pr

sAlias

public static String sAlias

bPreK

private static byte[] bPreK

k

private static Object[] k

apw

private static AMIPasswordWindow apw

MIN_PASSWORD_SIZE

public static final int MIN_PASSWORD_SIZE
Minimum passwork size

RADIX_REPRESENTATION

static final int RADIX_REPRESENTATION
RADIX for storage

MAX_TTL

static final int MAX_TTL
Maximum allowed TTL

LEVEL_1_PERIOD

static final int LEVEL_1_PERIOD
used by cleanrt AIS, period in sec

LEVEL_2_PERF

static final int LEVEL_2_PERF
used by cleanrt AIS, perf

INITIAL_SENDER_NUMBER

static final int INITIAL_SENDER_NUMBER
number of senders at begining

OUTPUT_BUFFER_FACTOR

static final int OUTPUT_BUFFER_FACTOR
nb cycles we wait when output processor buffer is full

AMIPING_FACTOR

static final float AMIPING_FACTOR
CHECK_INTERVAL * AMIPING_FACTOR is the time sleep between two checks

BUFFER_SIZE

static final int BUFFER_SIZE
sender default buffer size, ok for most puroposes ( ex: an IAI is about 500 characters-long )

NB_TRIES

static final int NB_TRIES
nb of allowed tries for password

DEFAULT_PORT

static final int DEFAULT_PORT
AMI default port

MAX_ALIAS_SIZE

static final int MAX_ALIAS_SIZE
maximum size for the alias

DEFAULT_LANGUAGE

static final String DEFAULT_LANGUAGE
Default language

MIN_ALIAS_LENGTH

public static final int MIN_ALIAS_LENGTH
Alias min size

MAX_ALIAS_LENGTH

public static final int MAX_ALIAS_LENGTH
Alias max size

MIN_COMMENT_LENGTH

public static final int MIN_COMMENT_LENGTH
Comment min size

MAX_COMMENT_LENGTH

public static final int MAX_COMMENT_LENGTH
Comment max size

DEFAULT_BONUS

public static final int DEFAULT_BONUS
Standard value of the performance points gained after a right reply

DEFAULT_MALUS

public static final int DEFAULT_MALUS
Standard value of the performance points removed after a wrong reply

iNoteType

int iNoteType
Used to store parsing states

0=protocol description note

1=parameter description note


sParsedParam

String sParsedParam
Stores currently parsed parameter

sParsedSet

String sParsedSet
Stores currently parsed set
Constructor Detail

AMILocalParameter

private AMILocalParameter(String sAMIPath)
                   throws Exception
parameters are stored this way: Hashtable hProtocolParam ( protocol name, Hashtable parameters list) Hashtable parameter list (param name,value)
Parameters:
sAMIPath - Description of Parameter
Throws:
Exception - Description of Exception
Method Detail

static void ()

getInstance

public static AMILocalParameter getInstance(String sAMIPath)
                                     throws Exception
AMILocalParameter is a singleton, this method returns it

loadPassphrase

void loadPassphrase()
              throws AMIException
Called by main class to load password panel

loadPassphrase

void loadPassphrase(String sDefault)
              throws AMIException
Called by main class to load password panel with default password

setPassphrase

void setPassphrase(String sPass)
Called by main class in text mode to process the key directly

parseParameters

public static void parseParameters()
                            throws AMIException
Called by main class to start parameter files parsing

startDocument

public void startDocument()
Called at parsing start
Overrides:
startDocument in class org.xml.sax.helpers.DefaultHandler

startElement

public void startElement(String sUri,
                         String sName,
                         String sQName,
                         org.xml.sax.Attributes attributes)
                  throws org.xml.sax.SAXException
Called when we start an element
Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler
Parameters:
sUri - Description of Parameter
sName - Description of Parameter
sQName - Description of Parameter
attributes - Description of Parameter
Throws:
org.xml.sax.SAXException - Description of Exception

endElement

public void endElement(String sUri,
                       String sName,
                       String sQName)
                throws org.xml.sax.SAXException
Called when we end an element
Overrides:
endElement in class org.xml.sax.helpers.DefaultHandler
Parameters:
sUri - Description of Parameter
sName - Description of Parameter
sQName - Description of Parameter
Throws:
org.xml.sax.SAXException - Description of Exception

startPrefixMapping

public void startPrefixMapping(String sPrefix,
                               String sUri)
                        throws org.xml.sax.SAXException
Called to process namespaces
Overrides:
startPrefixMapping in class org.xml.sax.helpers.DefaultHandler
Parameters:
sPrefix - Description of Parameter
sUri - Description of Parameter
Throws:
org.xml.sax.SAXException - Description of Exception

setParameter

public static void setParameter(String sProtocol,
                                String sParam,
                                String sValue)
                         throws AMIException
Set a value, the entry in parameters tables is created by setParamFormat method
Parameters:
sProtocol - The new Parameter value
sParam - The new Parameter value
sValue - The new Parameter value
Throws:
AMIException - Description of Exception

isSecure

public static boolean isSecure(String sProtocol)
Says if a protocol is in secure mode
Parameters:
sProtocol - Description of Parameter
Returns:
The Secure value

isAvailable

public static boolean isAvailable(String sProtocol)
                           throws AMIException
Return true if a protocol is available
Parameters:
sProtocol - Description of Parameter
Returns:
The Available value

setAvailable

public static void setAvailable(String sProtocol,
                                String sAvailable)
                         throws AMIException
Set availability of the given protocol
Parameters:
sProtocol - Description of Parameter
sAvailable - "true" or "false"

setSecure

public static void setSecure(String sProtocol,
                             String sSecure)
                      throws AMIException
Set secure mode of the given protocol
Parameters:
sProtocol - Description of Parameter
sSecure - "true" or "false"

addProtocol

static void addProtocol(String sProtocol,
                        String sFileName,
                        String sSecure)
                 throws AMIException
Add a new protocol
Parameters:
sProtocol - Description of Parameter
Returns:
The Available value

removeProtocol

public static void removeProtocol(String sProtocol)
                           throws AMIException
Remove a protocol
Parameters:
sProtocol - Description of Parameter
Returns:
The Available value

intValue

public static int intValue(String sProtocol,
                           String sParam)
                    throws AMIException
Return the parameter as an int
Parameters:
sProtocol - Description of Parameter
sParam - Description of Parameter
Returns:
Description of the Returned Value
Throws:
AMIException - Description of Exception

getLocal

public static String getLocal()
Returns the language in use

getPath

public static String getPath()
Returns the amipath

longValue

static long longValue(String sProtocol,
                      String sParam)
               throws AMIException
Return the parameter as an long
Parameters:
sProtocol - Description of Parameter
sParam - Description of Parameter
Returns:
Description of the Returned Value
Throws:
AMIException - Description of Exception

stringValue

public static String stringValue(String sProtocol,
                                 String sParam)
                          throws AMIException
Return the parameter as a String
Parameters:
sProtocol - Description of Parameter
sParam - Description of Parameter
Returns:
Description of the Returned Value
Throws:
AMIException - Description of Exception

getSetArray

public static Hashtable getSetArray()
Return the full set array
Returns:
Enumeration entries enumeration

getSetEnumeration

public static Enumeration getSetEnumeration(String sProtocol,
                                            String sSet)
                                     throws AMIException
Return an enumeration of entries for a set
Parameters:
sProtocol - protocol
sSet - set name
Returns:
Enumeration entries enumeration
Throws:
AMIException - Description of Exception

setContains

public static boolean setContains(String sProtocol,
                                  String sSet,
                                  String sValue)
                           throws AMIException
Return true if the set given contains the entry
Parameters:
sProtocol - protocol
sSet - set name
sValue - value to be checked
Returns:
boolean
Throws:
AMIException - Description of Exception

addSetEntry

public static void addSetEntry(String sProtocol,
                               String sSet,
                               String sValue)
                        throws AMIException
Add an entry in a set
Parameters:
sProtocol - protocol
sSet - set name
sValue - value to add in the set
Throws:
AMIException - Description of Exception

createSet

public static void createSet(String sProtocol,
                             String sSet)
Create a void set

removeSetEntry

public static void removeSetEntry(String sProtocol,
                                  String sSet,
                                  String sValue)
                           throws AMIException
Remove an entry from a set
Parameters:
sProtocol - protocol
sSet - set name
sValue - value to remove
Returns:
Enumeration entries enumeration
Throws:
AMIException - Description of Exception

updateUserFile

static void updateUserFile()
Updates or creates user file

commit

static void commit()
            throws AMIException
commit : serialize parameters of the protocol into XML files
Throws:
AMIException - Description of Exception

getPriority

static int getPriority(String sType)
Return the prority according to query type

getIP

static String getIP()
Return own IP address under numeric format

getFullIP

static String getFullIP()
Return IP with port : ex: 10.0.0.0:1000

getInetAddress

static InetAddress getInetAddress()
Return own full InetAddress (with host name...)

getHostname

static String getHostname()
Return host name

getProtocolDescription

static String getProtocolDescription(String sProtocol,
                                     String sLang)
Get Description for a protocol and a language
Parameters:
sProtocol - Protocol name
sLang - Description language

setProtocolDescription

static void setProtocolDescription(String sProtocol,
                                   String sLang,
                                   String sDescription)
Set Description for a protocol and a language
Parameters:
sProtocol - Protocol name
sLang - Description language
sDescription - the description

getParameterDescription

public static String getParameterDescription(String sProtocol,
                                             String sParam,
                                             String sLang)
Get Description for a protocol, a parameter and a language
Parameters:
sProtocol - Protocol name
sParam - Parameter name
sLang - Description language

setParamDescription

static void setParamDescription(String sProtocol,
                                String sParam,
                                String sLang,
                                String sDescription)
Set Description for a parameter in a protocol and a language
Parameters:
sProtocol - Protocol name
sParam - Parameter name
sLang - Description language
sDescription - the description

getParamType

static String getParamType(String sProtocol,
                           String sParam)
Get type for a protocol and a parameter
Parameters:
sProtocol - Protocol name
sParam - parameter
Returns:
type: int|string|boolean|float

getParamMinLength

static int getParamMinLength(String sProtocol,
                             String sParam)
Get minlength for a protocol and a parameter
Parameters:
sProtocol - Protocol name
sParam - parameter
Returns:
int min length

getParamMaxLength

static int getParamMaxLength(String sProtocol,
                             String sParam)
Get maxlength for a protocol and a parameter
Parameters:
sProtocol - Protocol name
sParam - parameter
Returns:
int man length

getParamMinValue

static int getParamMinValue(String sProtocol,
                            String sParam)
Get min value for a protocol and a parameter
Parameters:
sProtocol - Protocol name
sParam - parameter
Returns:
int min value

getParamMaxValue

static int getParamMaxValue(String sProtocol,
                            String sParam)
Get max value for a protocol and a parameter
Parameters:
sProtocol - Protocol name
sParam - parameter
Returns:
int max value

getParamDefaultValue

public static String getParamDefaultValue(String sProtocol,
                                          String sParam)
Get default value as a string for a protocol and a parameter
Parameters:
sProtocol - Protocol name
sParam - parameter
Returns:
String default

setParamFormat

static void setParamFormat(String sProtocol,
                           String sParam,
                           String sType,
                           String sMinLength,
                           String sMaxLength,
                           String sMinValue,
                           String sMaxValue,
                           String sDefaultValue)
Set parameter format
Parameters:
sProtocol - Protocol name
sParam - parameter
String - sType : int|string|boolean|float
String - sMinlength
String - sMaxlength
String - sMinValue
String - sMaxValue
String - sDefaultValue

reinitParam

static void reinitParam(String sProtocol,
                        String sParam)
Set default value for this param
Parameters:
sProtocol - Protocol name
sParam - parameter

reinitProtocol

static void reinitProtocol(String sProtocol)
Re-init all parameters for a protocol
Parameters:
sProtocol - Protocol name

checkFormat

public static boolean checkFormat(String sProtocol,
                                  String sParam,
                                  String sValue)
Check format for a parameter

Assumes boundaries and all formats are correct and in right format

Parameters:
sProtocol - Protocol name
sParam - parameter
String - sValue
Returns:
boolean , true if test passed

keyPressed

public void keyPressed(KeyEvent ke)
put your documentation comment here
Specified by:
keyPressed in interface KeyListener
Parameters:
ke -  

keyReleased

public void keyReleased(KeyEvent ke)
put your documentation comment here
Specified by:
keyReleased in interface KeyListener
Parameters:
ke -  

keyTyped

public void keyTyped(KeyEvent ke)
put your documentation comment here
Specified by:
keyTyped in interface KeyListener
Parameters:
ke -  

getPu

public static AMIPublicKey getPu()
Return the public key

getAlias

static String getAlias()
Return own alias ( quick access )

getParams

public static Hashtable getParams()
Return parameters table

getFormats

public static HashMap getFormats()
Return format table

getProtocolDescriptions

public static HashMap getProtocolDescriptions()
Return protocol description table

getParamDescriptions

public static HashMap getParamDescriptions()
Return parameters description table

getPr

static AMIPrivateKey getPr()
Return the private key

getK

static Object[] getK()
Return the symmetrical key

getKInit

public static byte[] getKInit()
Return the non-computed symmetrical key

setPU

static void setPU(AMIPublicKey apu)
           throws AMIException
Set value of PU ( used at key generation )

setPR

static void setPR(AMIPrivateKey apr)
           throws AMIException
Set value of PR ( used at key generation )

setAlias

static void setAlias(String sAlias)
              throws AMIException
Set value of ALIAS ( used at installation )

setK

public static void setK(String sPass)
                 throws AMIException
Set new password ( used during installation )

chgpass

void chgpass(boolean bGui)
Method used to alter AMI symetrical key
Returns:
Description of the Returned Value

isInstanciated

public static boolean isInstanciated()
return true if this AMILocalParameter is instanciated

getManualPassphrase

static String getManualPassphrase(boolean bConfirmation,
                                  String sLabel)
                           throws AMIException
Ask user for a password ( text mode ) and check it

displayParameters

static String displayParameters(String sProtocol)
Displays all params values for a given protocol, used mainly for debug
Returns:
string representation of parameters or "" if the protocol does not exist or contains none param