Enum SubjectAltNameMatcher.SanType
- java.lang.Object
-
- java.lang.Enum<SubjectAltNameMatcher.SanType>
-
- io.envoyproxy.envoy.extensions.transport_sockets.tls.v3.SubjectAltNameMatcher.SanType
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<SubjectAltNameMatcher.SanType>
- Enclosing class:
- SubjectAltNameMatcher
public static enum SubjectAltNameMatcher.SanType extends Enum<SubjectAltNameMatcher.SanType> implements com.google.protobuf.ProtocolMessageEnum
Indicates the choice of GeneralName as defined in section 4.2.1.5 of RFC 5280 to match against.
Protobuf enumenvoy.extensions.transport_sockets.tls.v3.SubjectAltNameMatcher.SanType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DNSDNS = 2;EMAILEMAIL = 1;IP_ADDRESSIP_ADDRESS = 4;SAN_TYPE_UNSPECIFIEDSAN_TYPE_UNSPECIFIED = 0;UNRECOGNIZEDURIURI = 3;
-
Field Summary
Fields Modifier and Type Field Description static intDNS_VALUEDNS = 2;static intEMAIL_VALUEEMAIL = 1;static intIP_ADDRESS_VALUEIP_ADDRESS = 4;static intSAN_TYPE_UNSPECIFIED_VALUESAN_TYPE_UNSPECIFIED = 0;static intURI_VALUEURI = 3;
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static SubjectAltNameMatcher.SanTypeforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<SubjectAltNameMatcher.SanType>internalGetValueMap()static SubjectAltNameMatcher.SanTypevalueOf(int value)Deprecated.static SubjectAltNameMatcher.SanTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static SubjectAltNameMatcher.SanTypevalueOf(String name)Returns the enum constant of this type with the specified name.static SubjectAltNameMatcher.SanType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SAN_TYPE_UNSPECIFIED
public static final SubjectAltNameMatcher.SanType SAN_TYPE_UNSPECIFIED
SAN_TYPE_UNSPECIFIED = 0;
-
EMAIL
public static final SubjectAltNameMatcher.SanType EMAIL
EMAIL = 1;
-
DNS
public static final SubjectAltNameMatcher.SanType DNS
DNS = 2;
-
URI
public static final SubjectAltNameMatcher.SanType URI
URI = 3;
-
IP_ADDRESS
public static final SubjectAltNameMatcher.SanType IP_ADDRESS
IP_ADDRESS = 4;
-
UNRECOGNIZED
public static final SubjectAltNameMatcher.SanType UNRECOGNIZED
-
-
Field Detail
-
SAN_TYPE_UNSPECIFIED_VALUE
public static final int SAN_TYPE_UNSPECIFIED_VALUE
SAN_TYPE_UNSPECIFIED = 0;- See Also:
- Constant Field Values
-
EMAIL_VALUE
public static final int EMAIL_VALUE
EMAIL = 1;- See Also:
- Constant Field Values
-
DNS_VALUE
public static final int DNS_VALUE
DNS = 2;- See Also:
- Constant Field Values
-
URI_VALUE
public static final int URI_VALUE
URI = 3;- See Also:
- Constant Field Values
-
IP_ADDRESS_VALUE
public static final int IP_ADDRESS_VALUE
IP_ADDRESS = 4;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static SubjectAltNameMatcher.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 (SubjectAltNameMatcher.SanType c : SubjectAltNameMatcher.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 SubjectAltNameMatcher.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
-
getNumber
public final int getNumber()
- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static SubjectAltNameMatcher.SanType valueOf(int value)
Deprecated.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:
value- 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
-
forNumber
public static SubjectAltNameMatcher.SanType forNumber(int value)
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<SubjectAltNameMatcher.SanType> internalGetValueMap()
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static SubjectAltNameMatcher.SanType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
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:
desc- 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
-
-