RSAPublicKeyWithInfo class Null safety

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
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
@Deprecated('Use get publicExponent'), read-only, inherited
exponent BigInt?
final, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
modulus BigInt?
final, inherited
n BigInt?
Get modulus n = p·q
read-only, inherited
properties Properties
Properties associated with the public key. [...]
final, inherited
publicExponent BigInt?
Get the public exponent.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
source PubTextSource?
Section of text the public key was decoded from and the format decoded. [...]
read-only, inherited

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 non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited