java.lang.Object
org.projecthusky.common.utils.datatypes.Oids

@DefaultQualifier(value=org.checkerframework.checker.nullness.qual.NonNull.class, locations={PARAMETER,RETURN}) public class Oids extends Object
Helpers related to OIDs.
Author:
Quentin Ligier
  • Field Details

    • PREFIX_OID

      public static final String PREFIX_OID
      See Also:
    • PATTERN

      public static final Pattern PATTERN
      Pattern that matches a OID.
    • PATTERN_WITH_URN

      public static final Pattern PATTERN_WITH_URN
      Pattern that matches an URN-encoded OID.
  • Method Details

    • normalize

      public static String normalize(String oid)
      Normalizes an OID by removing the URN-encoding part if needed.
    • match

      public static boolean match(String string)
      Checks if a string matches the OID format (with or without URN encoding).