|
Cryptix V3.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--cryptix.provider.rsa.BaseRSAPrivateKey
An abstract class representing an RSA private key.
Copyright © 1997
Systemics Ltd on behalf of the
Cryptix Development Team.
All rights reserved.
$Revision: 1.7 $
Fields inherited from interface java.security.PrivateKey |
serialVersionUID |
Fields inherited from interface java.security.Key |
serialVersionUID |
Constructor Summary | |
protected |
BaseRSAPrivateKey()
Constructs an RSA private key, without setting the parameters. |
Method Summary | |
java.lang.String |
getAlgorithm()
Returns the name of the algorithm, for this class always "RSA". |
java.math.BigInteger |
getExponent()
Return the private exponent d. |
java.math.BigInteger |
getInverseOfQModP()
Returns the multiplicative inverse of q modulo p. |
java.math.BigInteger |
getModulus()
Return the public modulus n: the product of both p and q. |
java.math.BigInteger |
getP()
Returns p, the first factor of the public modulus. |
java.math.BigInteger |
getQ()
Return q, the second factor of the public modulus. |
protected void |
setRsaParams(java.math.BigInteger n,
java.math.BigInteger d)
Sets the RSA parameters n and d. |
protected void |
setRsaParams(java.math.BigInteger d,
java.math.BigInteger p,
java.math.BigInteger q,
java.math.BigInteger u)
Sets the RSA parameters d, p, q, and u, to allow fast execution of mathematical operations performed later on during the life of this key. |
java.lang.String |
toString()
Returns a string representation of this key. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
protected BaseRSAPrivateKey()
Method Detail |
public java.math.BigInteger getModulus()
public java.math.BigInteger getExponent()
public java.math.BigInteger getP()
public java.math.BigInteger getQ()
public java.math.BigInteger getInverseOfQModP()
public java.lang.String getAlgorithm()
protected void setRsaParams(java.math.BigInteger n, java.math.BigInteger d)
protected void setRsaParams(java.math.BigInteger d, java.math.BigInteger p, java.math.BigInteger q, java.math.BigInteger u)
public java.lang.String toString()
|
Cryptix V3.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |