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

Constructor Index

 o BaseRSAPublicKey()
Constructs an RSA private key, without setting the parameters.

Method Index

 o getAlgorithm()
Returns the name of the algorithm, for this class always "RSA".
 o getEncoded()
 o getExponent()
Returns the public exponent e.
 o getFormat()
 o getModulus()
Returns the public modulus n.
 o setRsaParams(BigInteger, BigInteger)
Sets the RSA parameters n and e.
 o toString()
Returns a string representation of this key.

Constructors

 o 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.

Methods

 o getModulus
 public BigInteger getModulus()
Returns the public modulus n.

Returns:
the public modulus n.
 o getExponent
 public BigInteger getExponent()
Returns the public exponent e.

Returns:
the public exponent e.
 o getAlgorithm
 public String getAlgorithm()
Returns the name of the algorithm, for this class always "RSA".

Returns:
the name of the algorithm, "RSA".
 o setRsaParams
 protected void setRsaParams(BigInteger n,
                             BigInteger e)
Sets the RSA parameters n and e.

Throws: NullPointerException
if n == null || e == null
 o 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