All Packages Class Hierarchy This Package Previous Next Index
Class cryptix.provider.rsa.BaseRSAPublicKey
java.lang.Object
|
+----cryptix.provider.rsa.BaseRSAPublicKey
- public abstract class BaseRSAPublicKey
- extends Object
- implements RSAPublicKey
An abstract class representing an RSA public key.
Copyright © 1997
Systemics Ltd on behalf of the
Cryptix Development Team.
All rights reserved.
$Revision: 1.4 $
- Author:
- Raif S. Naffah, David Hopwood
-
BaseRSAPublicKey()
- Constructs an RSA private key, without setting the parameters.
-
getAlgorithm()
- Returns the name of the algorithm, for this class always "RSA".
-
getEncoded()
-
-
getExponent()
- Returns the public exponent e.
-
getFormat()
-
-
getModulus()
- Returns the public modulus n.
-
setRsaParams(BigInteger, BigInteger)
- Sets the RSA parameters n and e.
-
toString()
- Returns a string representation of this key.
BaseRSAPublicKey
protected BaseRSAPublicKey()
- Constructs an RSA private key, without setting the parameters.
Subclasses should call one of the setRsaParams methods in each of
their constructors.
getModulus
public BigInteger getModulus()
- Returns the public modulus n.
- Returns:
- the public modulus n.
getExponent
public BigInteger getExponent()
- Returns the public exponent e.
- Returns:
- the public exponent e.
getAlgorithm
public String getAlgorithm()
- Returns the name of the algorithm, for this class always "RSA".
- Returns:
- the name of the algorithm, "RSA".
setRsaParams
protected void setRsaParams(BigInteger n,
BigInteger e)
- Sets the RSA parameters n and e.
- Throws: NullPointerException
- if n == null || e == null
toString
public String toString()
- Returns a string representation of this key.
- Returns:
- a string representation of this key.
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index