RSAPrivateKeyWithInfo class Null safety

An RSA private key with additional information.

This is a Pointy Castle RSAPrivateKey extended with additional members relating to encoding it in a file format. Namely, an optional comment 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 PrivateKeyExt extension on the Pointy Castle PublicKey), with a format parameter -- that will cause one of these formatting methods to be invoked.

Inheritance
Mixed in types
Available Extensions

Constructors

RSAPrivateKeyWithInfo(BigInt modulus, BigInt privateExponent, BigInt p, BigInt q)
Constructor from RSA private values. [...]
RSAPrivateKeyWithInfo.fromRSAPrivateKey(RSAPrivateKey pc)
Constructor from Pointy Castle RSAPrivateKey.

Properties

comment String?
Comment associated with the private key. [...]
read / write, inherited
d BigInt?
Get private exponent d = e^-1
@Deprecated('Use privateExponent.'), 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
p BigInt?
final, inherited
privateExponent BigInt?
Get the private exponent (d)
read-only, inherited
pubExponent BigInt?
Get the public exponent (e)
@Deprecated('Use publicExponent.'), read-only, inherited
publicExponent BigInt?
Get the public exponent (e)
read-only, inherited
q BigInt?
final, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
source PvtTextSource?
Section of text the private key was decoded from and the format decoded. [...]
read-only, inherited

Methods

encodeOpenSshPrivateKey() String
Encode into the OpenSSH Private Key format.
encodePuttyPrivateKey(String passphrase) String
Encode into the PuTTY Private Key format.
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