Package org.apache.solr.security.cert
Enum CertUtil.SANType
- java.lang.Object
-
- java.lang.Enum<CertUtil.SANType>
-
- org.apache.solr.security.cert.CertUtil.SANType
-
- All Implemented Interfaces:
Serializable,Comparable<CertUtil.SANType>
- Enclosing class:
- CertUtil
public static enum CertUtil.SANType extends Enum<CertUtil.SANType>
Supported SAN (Subject Alternative Name) types as defined in RFC 5280
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DIRECTORY_NAMEDNSEDI_PARTY_NAMEEMAILIP_ADDRESSOTHER_NAMEREGISTERED_IDURIX400_ADDRESS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CertUtil.SANTypefromValue(int value)intgetValue()Stringpath()StringpathLowerCase()static CertUtil.SANTypevalueOf(String name)Returns the enum constant of this type with the specified name.static CertUtil.SANType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OTHER_NAME
public static final CertUtil.SANType OTHER_NAME
-
EMAIL
public static final CertUtil.SANType EMAIL
-
DNS
public static final CertUtil.SANType DNS
-
X400_ADDRESS
public static final CertUtil.SANType X400_ADDRESS
-
DIRECTORY_NAME
public static final CertUtil.SANType DIRECTORY_NAME
-
EDI_PARTY_NAME
public static final CertUtil.SANType EDI_PARTY_NAME
-
URI
public static final CertUtil.SANType URI
-
IP_ADDRESS
public static final CertUtil.SANType IP_ADDRESS
-
REGISTERED_ID
public static final CertUtil.SANType REGISTERED_ID
-
-
Method Detail
-
values
public static CertUtil.SANType[] 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 (CertUtil.SANType c : CertUtil.SANType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CertUtil.SANType 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
-
getValue
public int getValue()
-
fromValue
public static CertUtil.SANType fromValue(int value)
-
path
public String path()
-
pathLowerCase
public String pathLowerCase()
-
-