public abstract class BaseRSAPublicKey extends java.lang.Object implements CryptixRSAPublicKey
Copyright © 1997
Systemics Ltd on behalf of the
Cryptix Development Team.
All rights reserved.
$Revision: 1.6 $
Modifier | Constructor and Description |
---|---|
protected |
BaseRSAPublicKey()
Constructs an RSA private key, without setting the parameters.
|
Modifier and Type | Method and Description |
---|---|
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.
|
protected BaseRSAPublicKey()
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()
toString
in class java.lang.Object