Enum OID
- java.lang.Object
-
- java.lang.Enum<OID>
-
- com.sun.enterprise.security.auth.realm.certificate.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 Summary
Enum Constants Enum Constant Description C
CountryCN
Common NameDC
Domain ComponentDNQUALIFIER
DN QualifierEMAILADDRESS
E-Mail addressGENERATION
GenerationGIVENNAME
Given NameINITIALS
InitialsIP
IP AddressL
LocalityO
OrganisationOU
Organisation UnitSERIALNUMBER
Serial Number of the certificateST
StateSTREET
StreetSURNAME
SurnameT
TitleUID
User ID
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OID
getByName(String name)
static OID
getByObjectId(String objectId)
String
getName()
String
getObjectId()
static Map<String,String>
getOIDMap()
static Set<OID>
toOIDS(String[] names)
Checks for given names and returns a set of OIDs with same names.static OID
valueOf(String name)
Returns the enum constant of this type with the specified name.static OID[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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 nameNullPointerException
- 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
-
-