|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcryptix.provider.rsa.BaseRSAPublicKey
An abstract class representing an RSA public key.
Copyright © 1997
Systemics Ltd on behalf of the
Cryptix Development Team.
All rights reserved.
$Revision: 1.6 $
Field Summary |
Fields inherited from interface java.security.PublicKey |
serialVersionUID |
Constructor Summary | |
protected |
BaseRSAPublicKey()
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()
Returns the public exponent e. |
java.math.BigInteger |
getModulus()
Returns the public modulus n. |
protected void |
setRsaParams(java.math.BigInteger n,
java.math.BigInteger e)
Sets the RSA parameters n and e. |
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 |
Methods inherited from interface java.security.Key |
getEncoded, getFormat |
Constructor Detail |
protected BaseRSAPublicKey()
Method Detail |
public java.math.BigInteger getModulus()
getModulus
in interface RSAKey
public java.math.BigInteger getExponent()
getExponent
in interface RSAKey
public java.lang.String getAlgorithm()
getAlgorithm
in interface java.security.Key
protected void setRsaParams(java.math.BigInteger n, java.math.BigInteger e)
java.lang.NullPointerException
- if n == null || e == nullpublic java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |