Uses of Class
ami.AMIException

Packages that use AMIException
ami Base AMI classes 
ami.security Contains everything AMI needs about security : PKI, Hashing, symmetrical encoding 
 

Uses of AMIException in ami
 

Methods in ami that throw AMIException
private  void AMIServiceProcessor.check(Hashtable hAIS)
          Method used to autenticate the AIS
private  void AMIServiceProcessor.addAr(Hashtable hAIS)
          used to add an AR into AMI engine buffer If an AR with the same id is already in buffer, we don't do anything
private  void AMIServiceProcessor.removeAr(Hashtable hAIS)
          used to remove an AR from AMI engine buffer
private  void AMIServiceProcessor.addEai(Hashtable hAIS)
          used to add an EAI into AMI engine buffer
private  void AMIServiceProcessor.getIsolated(Hashtable hAIS)
          used to get our isolation flag ( are we alone ?)
private  void AMIServiceProcessor.getAmiparameter(Hashtable hAIS)
          used to get an AMI engine parameter value
private  void AMIServiceProcessor.setAmiparameter(Hashtable hAIS)
          used to set an AMI engine parameter value
private  void AMIServiceProcessor.addAmiset(Hashtable hAIS)
          Add entry in a set
private  void AMIServiceProcessor.removeAmiset(Hashtable hAIS)
          Remove an entry from a set
private  void AMIServiceProcessor.getAmiset(Hashtable hAIS)
          Get a set enumeration
private  void AMIServiceProcessor.getInfopeer(Hashtable hAIS)
          used to get information on a peer
private  void AMIServiceProcessor.addCleanrt(Hashtable hAIS)
          used to add a RT cleaning request
private  void AMIServiceProcessor.getProtocolStatus(Hashtable hAIS)
          used to get the status of a protocol (available or not ).
private  void AMIServiceProcessor.setProtocolStatus(Hashtable hAIS)
          used to set the status of a protocol (available or not ).
private  void AMIServiceProcessor.addProtocol(Hashtable hAIS)
          used to add a new protocol on AMI engine We assume that the description file is correct ( well-formed and contains SYSTEM attribute ) to be added : check description file before registration
private  void AMIServiceProcessor.removeProtocol(Hashtable hAIS)
          used to drop a protocol from AMI trusted protocols
private  void AMIServiceProcessor.addStop()
          Called to process STOP AIS
 void AMIrt.parseFromFile(String sURL)
          Get data from a file
static AMIrt AMIrt.getInstance()
          Return an instance of the RT Implementation of the singleton pattern
(package private) static void AMIrt.commit()
          Commit RT before quit
static void AMIrt.addPeer(AMIPublicKey apk, String sAlias, String sIP, String sComment)
          add a peer in the rt.
static void AMIrt.addPeer(AMIPublicKey apk, String sAlias, String sIP)
          Idem with no comment
static AMIPublicKey AMIrt.addPeer(String sAlias, String sIP, String sComment)
          Add a peer without public key ( usefull for eai for example )
static AMIPublicKey AMIrt.addPeer(String sAlias, String sIP)
          Idem with no comment
(package private) static void AMIrt.alterPeer(Hashtable hModif)
          Alters the rt entry given by pu and following instructions given in the hashtable: "pu" -> pu (mandatory) "al"-> "the alias" "cm" -> "the comment"
(package private) static void AMIrt.alterPeer(AMIPublicKey apk, String sIP)
          Alter ip of a given pu after network validation
(package private)  void AMILocalParameter.loadPassphrase()
          Called by main class to load password panel
(package private)  void AMILocalParameter.loadPassphrase(String sDefault)
          Called by main class to load password panel with default password
static void AMILocalParameter.parseParameters()
          Called by main class to start parameter files parsing
static void AMILocalParameter.setParameter(String sProtocol, String sParam, String sValue)
          Set a value, the entry in parameters tables is created by setParamFormat method
static boolean AMILocalParameter.isAvailable(String sProtocol)
          Return true if a protocol is available
static void AMILocalParameter.setAvailable(String sProtocol, String sAvailable)
          Set availability of the given protocol
static void AMILocalParameter.setSecure(String sProtocol, String sSecure)
          Set secure mode of the given protocol
(package private) static void AMILocalParameter.addProtocol(String sProtocol, String sFileName, String sSecure)
          Add a new protocol
static void AMILocalParameter.removeProtocol(String sProtocol)
          Remove a protocol
static int AMILocalParameter.intValue(String sProtocol, String sParam)
          Return the parameter as an int
(package private) static long AMILocalParameter.longValue(String sProtocol, String sParam)
          Return the parameter as an long
static String AMILocalParameter.stringValue(String sProtocol, String sParam)
          Return the parameter as a String
static Enumeration AMILocalParameter.getSetEnumeration(String sProtocol, String sSet)
          Return an enumeration of entries for a set
static boolean AMILocalParameter.setContains(String sProtocol, String sSet, String sValue)
          Return true if the set given contains the entry
static void AMILocalParameter.addSetEntry(String sProtocol, String sSet, String sValue)
          Add an entry in a set
static void AMILocalParameter.removeSetEntry(String sProtocol, String sSet, String sValue)
          Remove an entry from a set
(package private) static void AMILocalParameter.commit()
          commit : serialize parameters of the protocol into XML files
(package private) static void AMILocalParameter.setPU(AMIPublicKey apu)
          Set value of PU ( used at key generation )
(package private) static void AMILocalParameter.setPR(AMIPrivateKey apr)
          Set value of PR ( used at key generation )
(package private) static void AMILocalParameter.setAlias(String sAlias)
          Set value of ALIAS ( used at installation )
static void AMILocalParameter.setK(String sPass)
          Set new password ( used during installation )
(package private) static String AMILocalParameter.getManualPassphrase(boolean bConfirmation, String sLabel)
          Ask user for a password ( text mode ) and check it
static AMIInputSpool AMIInputSpool.getInstance()
          Return a self instance Implementation of the singleton pattern
(package private) static void AMIInputSpool.put(char[] cRawData, String sIP)
          Push an incoming packet to be parsed
(package private)  boolean AMIInputSpool.checkSignature(char[] cData, char[] cProposedSignature, AMIPublicKey apk)
          Check signature of a packet signature is the hashcode of data between and tags encoded with private key
private  void AMISender.check()
          Called to check distant peer before connection
private  void AMISender.send()
          Send data
private  Vector AMIMain.optionAnalyse(String[] sArgs)
          Used to analize input options
private  void AMIMain.askPassphrase()
          Get passphrase to start ami engine, update keys in AMILocalParameter
private static void AMIMain.cleanFiles()
          Called at start and end to clean old out files
(package private)  void AMIMain.createFiles()
          Creates requiered AMI files at installation: - user.xml - descriptions files ( core.ami ) - rt.xml - directory out
static void AMIUtil.commitAIS(String sAIS)
          Write an AIS to in.xml file
static AMIPublicKey AMIUtil.amiping(String sIP)
          Used to get the pu corresponding to an IP, Basicaly, sends an AMIping at given address and wait for answer
static boolean AMIUtil.check(AMIPublicKey apk, String sIP)
          Used to check if a given pu matchs a given ip, the real check is done only if the RT entry is no more trusted ( DLC too old )
(package private) static byte[] AMIUtil.bfEncode(byte[] bIn)
          Used to factorise blowfish code utilation in: byte array to encode out: encoded byte array We can't work with lines because a encoded string can contain an '\n'.
(package private) static byte[] AMIUtil.bfDecode(byte[] bIn)
          Used to factorise blowfish code utilation in: byte array to decode out: decoded byte array
(package private) static void AMIUtil.decodeFile(File fIn)
          Used to decode a file with extention "amis" to a clear file with extention "ami"
(package private) static void AMIOutputSpool.put(AMIPacket ap)
          The AMIOutputProcesor uses this method to add some packets to be sent
private  void AMIOutputSpool.dispatch(AMIPacket ap)
          Used to choose best sender for this packet and give it the order to start the sending
(package private) static void AMIInputProcessor.process(AMIQuery aq)
          processes new queries
(package private) static void AMIInputProcessor.processAmiping(AMIping aping)
          processes incoming amiping
(package private) static void AMIInputProcessor.processIai(AMIiai iai)
          processes incoming iai
(package private) static int AMIInputProcessor.evaluateIaiInformation(AMIiai iai)
          Used to avaluate interrest of the iai and stores results if it is a reply for an AR Note that the fact of having unknown putr is not concidered as new result
(package private) static void AMIInputProcessor.processAr(AMIar ar)
          processes incoming ar assumes ( thanks to input spool ) that: - TTL is ok
 

Constructors in ami that throw AMIException
AMIrt()
          The AMI routing table Singleton Entries in hashtable: pu 0: al 1: ip (ip:port:status) 2: pf 3: dlc 4: cm
AMIInputSpool()
          Default constructor
 

Uses of AMIException in ami.security
 

Methods in ami.security that throw AMIException
static Object[] AMIPKI.rsaKeyGenerate(int iKeySize)
          Used to generate a set of public key/private key of 1024 bits return an array with first element = public key, second=private key
static Object[] AMIPKI.rsaKeyGenerate()
          Used to generate a set of public key/private key of 1024 bits return an array with first element = public key, second=private key
static byte[] AMIPKI.rsaEncode(byte[] bIn, AMIRSAKey ark)
          Encode the given byte array using rsa algorithm Caution: bIn ust be >0 bIn can be neg in some case.
static byte[] AMIPKI.rsaDecode(byte[] bIn, AMIRSAKey ark)
          put your documentation comment here
 

Constructors in ami.security that throw AMIException
AMIRSAKey(String sValue)
          Constructor used during parsing of eternal public keys
AMIPrivateKey(String s)
           
AMIPublicKey(String sValue)
          Constructor used during parsing of external public keys