ASN1PrivateKeyInfo class
PrivateKeyInfo ::= OneAsymmetricKey
OneAsymmetricKey ::= SEQUENCE {
version Version,
privateKeyAlgorithm PrivateKeyAlgorithmIdentifier,
privateKey PrivateKey,
attributes [0] Attributes OPTIONAL,
...,
[[2: publicKey [1] PublicKey OPTIONAL ]],
...
}
- Inheritance
-
- Object
- ASN1Object
- ASN1PrivateKeyInfo
Constructors
- ASN1PrivateKeyInfo(ASN1Integer version, ASN1AlgorithmIdentifier privateKeyAlgorithm, ASN1OctetString privateKey)
- ASN1PrivateKeyInfo.fromEccPem(String pem)
-
Creates an instance of PrivateKeyInfo for the given
pem
. Thepem
should represent a RSA private key in PKCS1. - ASN1PrivateKeyInfo.fromPkcs1Rsa(ASN1Object key)
-
Creates an instance of PrivateKeyInfo for the given
key
. Thekey
should represent a RSA private key in PKCS1 format as an ASN1Sequence. - ASN1PrivateKeyInfo.fromPkcs1RsaPem(String pem)
-
Creates an instance of PrivateKeyInfo for the given
pem
. Thepem
should represent a RSA private key in PKCS1. - ASN1PrivateKeyInfo.fromPkcs8RsaPem(String pem)
-
Creates an instance of PrivateKeyInfo for the given
pem
. Thepem
should represent a RSA private key in PKCS8.
Properties
- attributes ↔ ASN1Set?
-
getter/setter pair
- dumpIndent ↔ int
-
getter/setter pairinherited
- encodedBytes ↔ Uint8List?
-
The encoded bytes.
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isConstructed ↔ bool?
-
Describes if this ASN1 Object is constructed.
getter/setter pairinherited
- privateKey ↔ ASN1OctetString
-
getter/setter pair
- privateKeyAlgorithm ↔ ASN1AlgorithmIdentifier
-
getter/setter pair
- publicKey ↔ ASN1BitString?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tag ↔ int?
-
The BER tag representing this object.
getter/setter pairinherited
- totalEncodedByteLength → int
-
The total length of this object, including its value bytes, the encoded tag and length bytes.
no setterinherited
- valueByteLength ↔ int?
-
Length of the encoded value bytes.
getter/setter pairinherited
- valueBytes ↔ Uint8List?
-
The value bytes.
getter/setter pairinherited
- valueStartPosition ↔ int
-
The index where the value bytes start. This is the position after the tag + length bytes.
getter/setter pairinherited
- version ↔ ASN1Integer
-
getter/setter pair
Methods
-
dump(
{int spaces = 0}) → String -
Creates a readable dump from the current ASN1Object.
inherited
-
encode(
{ASN1EncodingRule encodingRule = ASN1EncodingRule.ENCODING_DER}) → Uint8List -
Encode the object to their byte representation.
override
-
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