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
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 |
RADIX_REPRESENTATION
private static final int RADIX_REPRESENTATION
exp
private BigInteger exp
n
private BigInteger n
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
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