keyIdentifier property
AuthorityKeyIdentifier ::= SEQUENCE {
keyIdentifier 0
KeyIdentifier OPTIONAL,
authorityCertIssuer 1
GeneralNames OPTIONAL,
authorityCertSerialNumber 2
CertificateSerialNumber OPTIONAL }
Implementation
List<int>? get keyIdentifier {
var sequence = valueAsBlock?.subAtIndex(0)?.sub;
if (sequence == null) {
return null;
}
ASN1Object? sub;
try {
sub = sequence.firstWhere(
(element) => element.identifier?.tagNumber().toValue() == 0);
return sub.encoded;
} catch (e) {}
return null;
}