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.
-
RSAPublicKey(ASN1Object)
- creates a public key from an ASN1Object of the following type
- SubjectPublicKey
- SubjectPublicKeyInfo
-
RSAPublicKey(BigInt, BigInt)
- creates a RSA public key with given values
-
RSAPublicKey(String)
- creates a RSA public key from a PEM of DER file
-
toSubjectPublicKey()
- returns a SubjectPublicKey object
overwrites method in PublicKey
-
toSubjectPublicKeyInfo()
- returns a SubjectPublicKeyInfo object
overwrites method in PublicKey
RSAPublicKey
public RSAPublicKey(String fileName) throws IOException, CodingException
- creates a RSA public key from a PEM of DER file
RSAPublicKey
public RSAPublicKey(BigInt exponent,
BigInt modulus)
- creates a RSA public key with given values
- Parameters:
- exponent - the public exponent
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
toSubjectPublicKeyInfo
public ASN1Object toSubjectPublicKeyInfo()
- returns a SubjectPublicKeyInfo object
overwrites method in PublicKey
- Overrides:
- toSubjectPublicKeyInfo in class PublicKey
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