infoAccess property
List<AuthorityInfoAccess> ?
get
infoAccess
Implementation
List<AuthorityInfoAccess>? get infoAccess {
if (valueAsBlock == null) {
return null;
}
var subs = valueAsBlock!.subAtIndex(0)?.sub ?? <ASN1Object>[];
List<AuthorityInfoAccess> result = <AuthorityInfoAccess>[];
subs.forEach((sub) {
var oidData = sub.subAtIndex(0)?.encoded;
var nameBlock = sub.subAtIndex(1);
if (oidData == null || nameBlock == null) {
return;
}
var oid = ASN1DERDecoder.decodeOid(contentData: oidData.toList());
var location = generalName(item: nameBlock);
if (oid != null && location != null) {
result.add(AuthorityInfoAccess(method: oid, location: location));
}
});
return result;
}