ASN1ObjectIdentifier.fromList constructor

ASN1ObjectIdentifier.fromList(
  1. List<int> input
)

Implementation

factory ASN1ObjectIdentifier.fromList(List<int> input) {
  if (input.any((element) => element < 0)) {
    throw Exception('Negative sub-identifiers not allowed');
  }

  return ASN1ObjectIdentifier(Uint32List.fromList(input));
}