cryptix.provider.rsa
Class BaseRSAPublicKey
java.lang.Object
cryptix.provider.rsa.BaseRSAPublicKey
- CryptixRSAPublicKey, PublicKey, RSAKey
public abstract class BaseRSAPublicKey
extends java.lang.Object
- Raif S. Naffah
- David Hopwood
BaseRSAPublicKey() - Constructs an RSA private key, without setting the parameters.
|
String | getAlgorithm() - Returns the name of the algorithm, for this class always "RSA".
|
BigInteger | getExponent() - Returns the public exponent e.
|
BigInteger | getModulus() - Returns the public modulus n.
|
protected void | setRsaParams(BigInteger n, BigInteger e) - Sets the RSA parameters n and e.
|
String | 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.
getAlgorithm
public String getAlgorithm()
Returns the name of the algorithm, for this class always "RSA".
- the name of the algorithm, "RSA".
getExponent
public BigInteger getExponent()
Returns the public exponent e.
- getExponent in interface RSAKey
getModulus
public BigInteger getModulus()
Returns the public modulus n.
- getModulus in interface RSAKey
setRsaParams
protected void setRsaParams(BigInteger n,
BigInteger e)
Sets the RSA parameters n and e.
toString
public String toString()
Returns a string representation of this key.
- a string representation of this key.