ami.security
Class AMIRSAKey

java.lang.Object
  |
  +--ami.security.AMIRSAKey
Direct Known Subclasses:
AMIPrivateKey, AMIPublicKey

public class AMIRSAKey
extends Object

Generic class used to derivate AMIPublicKey and AMIPublicKey

Version:
1.0
Author:
Bertrand Florat

Field Summary
private  BigInteger exp
           
private  BigInteger n
           
private static int RADIX_REPRESENTATION
           
 
Constructor Summary
(package private) AMIRSAKey(BigInteger exp, BigInteger n)
          Constructor used for our own public key generation ( normaly only once )
(package private) AMIRSAKey(String sValue)
          Constructor used during parsing of eternal public keys
 
Method Summary
 boolean equals(Object o)
          Compares two AMI keys
(package private)  BigInteger getExp()
           
(package private)  BigInteger getN()
           
 int hashCode()
          Return a hashcode for this key, used by hashtable
 String toString()
          String representation of the key : exp/n ( in radix 16 )
 
Methods inherited from class java.lang.Object
, clone, finalize, getClass, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

RADIX_REPRESENTATION

private static final int RADIX_REPRESENTATION

exp

private BigInteger exp

n

private BigInteger n
Constructor Detail

AMIRSAKey

AMIRSAKey(BigInteger exp,
          BigInteger n)
Constructor used for our own public key generation ( normaly only once )

AMIRSAKey

AMIRSAKey(String sValue)
    throws AMIException
Constructor used during parsing of eternal public keys
Method Detail

getExp

BigInteger getExp()

getN

BigInteger getN()

toString

public String toString()
String representation of the key : exp/n ( in radix 16 )
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Compares two AMI keys
Overrides:
equals in class Object

hashCode

public int hashCode()
Return a hashcode for this key, used by hashtable
Overrides:
hashCode in class Object