ASN1SafeBag class

SafeBag ::= SEQUENCE {
    bagId          BAG-TYPE.&id ({PKCS12BagSet})
    bagValue       [0] EXPLICIT BAG-TYPE.&Type({PKCS12BagSet}{@bagId}),
    bagAttributes  SET OF PKCS12Attribute OPTIONAL
}
Inheritance

Constructors

ASN1SafeBag(ASN1ObjectIdentifier bagId, ASN1Object bagValue, {ASN1Set? bagAttributes})
ASN1SafeBag.forCertBag(ASN1Object bagValue, {ASN1Set? bagAttributes})
Constructor to create the SafeBag for a certBag.
ASN1SafeBag.forKeyBag(ASN1Object bagValue, {ASN1Set? bagAttributes})
Constructor to create the SafeBag for a KeyBag holding a PrivateKeyInfo.
ASN1SafeBag.forPkcs8ShroudedKeyBag(ASN1Object bagValue, {ASN1Set? bagAttributes})
Constructor to create the SafeBag for a pkcs-8ShroudedKeyBag.
ASN1SafeBag.fromSequence(ASN1Sequence seq)
Creates a SafeBag object from the given sequence consisting of up to three elements :

Properties

bagAttributes ↔ ASN1Set?
getter/setter pair
bagId ↔ ASN1ObjectIdentifier
Describes the bag type. Possible objectIdentifier :
getter/setter pair
bagValue ↔ ASN1Object
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
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

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