typeClass method

ASN1IdentifierClass typeClass()

Implementation

ASN1IdentifierClass typeClass() {
  for (var tc in [
    ASN1IdentifierClass.APPLICATION,
    ASN1IdentifierClass.CONTEXT_SPECIFIC,
    ASN1IdentifierClass.PRIVATE
  ]) {
    if ((rawValue & tc.toValue()) == tc.toValue()) {
      return tc;
    }
  }
  return ASN1IdentifierClass.UNIVERSAL;
}