Enum OID

  • All Implemented Interfaces:
    Serializable, Comparable<OID>

    public enum OID
    extends Enum<OID>
    Common object identifiers.
    Author:
    David Matejcek
    See Also:
    AVAKeyword contains similar list
    • Enum Constant Detail

      • CN

        public static final OID CN
        Common Name
      • SURNAME

        public static final OID SURNAME
        Surname
      • SERIALNUMBER

        public static final OID SERIALNUMBER
        Serial Number of the certificate
      • C

        public static final OID C
        Country
      • L

        public static final OID L
        Locality
      • ST

        public static final OID ST
        State
      • STREET

        public static final OID STREET
        Street
      • O

        public static final OID O
        Organisation
      • OU

        public static final OID OU
        Organisation Unit
      • T

        public static final OID T
        Title
      • GIVENNAME

        public static final OID GIVENNAME
        Given Name
      • INITIALS

        public static final OID INITIALS
        Initials
      • GENERATION

        public static final OID GENERATION
        Generation
      • DNQUALIFIER

        public static final OID DNQUALIFIER
        DN Qualifier
      • UID

        public static final OID UID
        User ID
      • DC

        public static final OID DC
        Domain Component
      • EMAILADDRESS

        public static final OID EMAILADDRESS
        E-Mail address
      • IP

        public static final OID IP
        IP Address
    • Method Detail

      • values

        public static OID[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (OID c : OID.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static OID valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getObjectId

        public String getObjectId()
        Returns:
        object ID defined in RFC
      • getName

        public String getName()
        Returns:
        name of the OID
      • getOIDMap

        public static Map<String,​String> getOIDMap()
        Returns:
        unmodifiable map of object identifiers and their names
      • getByObjectId

        public static OID getByObjectId​(String objectId)
        Parameters:
        objectId - can be null
        Returns:
        OID with the same objectId or null
      • getByName

        public static OID getByName​(String name)
        Parameters:
        name - case insensitive name, the parameter can be null
        Returns:
        OID with the same name or null
      • toOIDS

        public static Set<OID> toOIDS​(String[] names)
        Checks for given names and returns a set of OIDs with same names.
        Parameters:
        names - case insensitive OID names.
        Returns:
        a set of found names