Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Cryptix V3.1
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## cryptix.provider.rsa
Class BaseRSAPublicKey

    java.lang.Object
      |
      +--cryptix.provider.rsa.BaseRSAPublicKey

Direct Known Subclasses:
  RawRSAPublicKey

public abstract class BaseRSAPublicKey
extends Object
implements CryptixRSAPublicKey

An abstract class representing an RSA public key.

Copyright © 1997 Systemics Ltd on behalf of the Cryptix Development Team.
All rights reserved.

$Revision: 1.5 $

Since:
  Cryptix 2.2.2
Author:
  Raif S. Naffah, David Hopwood
See Also:
  Serialized Form

Fields inherited from interface java.security.PublicKey
`serialVersionUID`

Fields inherited from interface java.security.Key
`serialVersionUID`

Constructor Summary
`protected` | `BaseRSAPublicKey()` Constructs an RSA private key, without setting the parameters.

Method Summary
`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.
`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`

Constructor Detail

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

Method Detail

### getModulus

    public java.math.BigInteger getModulus()

  Returns the public modulus n.
  Returns:
    the public modulus n.

### getExponent

    public java.math.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(java.math.BigInteger n,
                                java.math.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.
  Overrides:
    toString in class Object
  Returns:
    a string representation of this key.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Cryptix V3.1
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright (C) 1995-2000 The Cryptix Foundation Ltd. All rights reserved.