subjectOIDs property

List<String> get subjectOIDs

Implementation

List<String> get subjectOIDs {
  var result = <String>[];
  var subjectBlock = block1?.atIndex(X509BlockPosition.subject);
  if (subjectBlock != null) {
    for (var sub in (subjectBlock.sub ?? <ASN1Object>[])) {
      var value = firstLeafValue(block: sub);
      if (value is String) {
        result.add(value);
      }
    }
  }
  return result;
}