ASN1SafeContents.fromSequence constructor
ASN1SafeContents.fromSequence(
- ASN1Sequence seq
Creates a SafeContents object from the given sequence consisting of SafeBag
or ASN1Sequence.
Implementation
ASN1SafeContents.fromSequence(ASN1Sequence seq) {
safeBags = [];
if (seq.elements != null) {
for (var element in seq.elements!) {
if (element is ASN1SafeBag) {
safeBags.add(element);
} else if (element is ASN1Sequence) {
safeBags.add(ASN1SafeBag.fromSequence(element));
}
}
}
}