ASN1SafeBag.forKeyBag constructor

ASN1SafeBag.forKeyBag(
  1. ASN1Object bagValue, {
  2. ASN1Set? bagAttributes,
})

Constructor to create the SafeBag for a KeyBag holding a PrivateKeyInfo.

Implementation

ASN1SafeBag.forKeyBag(this.bagValue, {this.bagAttributes}) {
  bagId =
      ASN1ObjectIdentifier.fromIdentifierString('1.2.840.113549.1.12.10.1.1');
}