ASN1Pkcs12Attribute.friendlyName constructor

ASN1Pkcs12Attribute.friendlyName(
  1. String name
)

Creates an instance of Attribute for friendlyName with the given name.

Implementation

ASN1Pkcs12Attribute.friendlyName(String name) {
  attrId = ASN1ObjectIdentifier.fromIdentifierString('1.2.840.113549.1.9.20');
  var bmpString = ASN1BMPString(stringValue: name);
  attrValues = ASN1Set(elements: [bmpString]);
}