RSAPublicKeyWithInfo class
An RSA public key with additional information.
This is a Pointy Castle RSAPublicKey
extended with additional members
relating to encoding it in a file format. Namely, a collection of
properties and (if it was created by decoding text) source.
Methods for encoding it in different file formats are available. But
normally programs can just invoke the encode
method (defined by the
PublicKeyExt extension on the Pointy Castle PublicKey
), with a format
parameter -- that will cause one of these formatting methods to be invoked.
The fingerprint of the public key can also be calculated.
- Inheritance
-
- Object
- RSAAsymmetricKey
- RSAPublicKey
- RSAPublicKeyWithInfo
- Mixed in types
- Available Extensions
Constructors
- RSAPublicKeyWithInfo(BigInt modulus, BigInt exponent)
- Constructor from RSA public values.
- RSAPublicKeyWithInfo.fromRSAPublicKey(RSAPublicKey pcKey)
- Constructor from Pointy Castle RSAPublicKey.
Properties
- e → BigInt?
-
Get public exponent e
no setterinherited
- exponent → BigInt?
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- modulus → BigInt?
-
finalinherited
- n → BigInt?
-
Get modulus n = p·q
no setterinherited
- properties → Properties
-
Properties associated with the public key.
finalinherited
- publicExponent → BigInt?
-
Get the public exponent.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- source → PubTextSource?
-
Section of text the public key was decoded from and the format decoded.
no setterinherited
Methods
-
encodeOpenSsh(
) → String - Encode an RSA public key in the OpenSSH Public Key format.
-
encodePkcs1(
) → String - Encode as PEM encoded PKCS#1 (often just called "PEM").
-
encodeSshPublicKey(
{bool doNotQuoteComments = false}) → String - Encode an RSA public key in the SSH Public Key (RFC 4716) format.
-
encodeX509spki(
) → String - Encode an RSA public key in the X.509 subjectPublicKeyInfo format.
-
fingerprint(
{FingerprintType format = FingerprintType.sha256}) → String - Generates a fingerprint for the RSA public key
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited