Class cryptiX.rsa.RSAPublicKey
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class cryptiX.rsa.RSAPublicKey

java.lang.Object
   |
   +----java.util.Observable
           |
           +----cryptiX.rsa.PublicKey
                   |
                   +----cryptiX.rsa.RSAPublicKey

public class RSAPublicKey
extends PublicKey
This class is used to set the key values by parsing a SubjectPublicKey ASN1 structure if the algorithm identifier says rsaEncryption.

Constructor Index

 o RSAPublicKey(ASN1Object)
creates a public key from an ASN1Object of the following type - SubjectPublicKey - SubjectPublicKeyInfo
 o RSAPublicKey(BigInt, BigInt)
creates a RSA public key with given values
 o RSAPublicKey(String)
creates a RSA public key from a PEM of DER file

Method Index

 o toSubjectPublicKey()
returns a SubjectPublicKey object overwrites method in PublicKey
 o toSubjectPublicKeyInfo()
returns a SubjectPublicKeyInfo object overwrites method in PublicKey

Constructors

 o RSAPublicKey
  public RSAPublicKey(String fileName) throws IOException, CodingException
creates a RSA public key from a PEM of DER file
 o RSAPublicKey
  public RSAPublicKey(BigInt exponent,
                      BigInt modulus)
creates a RSA public key with given values
Parameters:
exponent - the public exponent
 o RSAPublicKey
  public RSAPublicKey(ASN1Object publicKey) throws CodingException
creates a public key from an ASN1Object of the following type - SubjectPublicKey - SubjectPublicKeyInfo
Parameters:
publicKey - the public key

Methods

 o toSubjectPublicKeyInfo
  public ASN1Object toSubjectPublicKeyInfo()
returns a SubjectPublicKeyInfo object overwrites method in PublicKey
Overrides:
toSubjectPublicKeyInfo in class PublicKey
 o toSubjectPublicKey
  public ASN1Object toSubjectPublicKey()
returns a SubjectPublicKey object overwrites method in PublicKey
Overrides:
toSubjectPublicKey in class PublicKey

All Packages  Class Hierarchy  This Package  Previous  Next  Index