contentType property

ASN1ObjectIdentifier? contentType

The embedded message content type, if any

Implementation

ASN1ObjectIdentifier? get contentType {
  for (final attr in signedAttributes) {
    if (attr.key.objectIdentifierAsString == Pkcs.contentType) {
      return attr.value[0] as ASN1ObjectIdentifier;
    }
  }
  return null;
}