Enum ServerTlsPolicy.MTLSPolicy.ClientValidationMode
java.lang.Object
java.lang.Enum<ServerTlsPolicy.MTLSPolicy.ClientValidationMode>
com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.ClientValidationMode
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<ServerTlsPolicy.MTLSPolicy.ClientValidationMode>
- Enclosing class:
- ServerTlsPolicy.MTLSPolicy
public static enum ServerTlsPolicy.MTLSPolicy.ClientValidationMode
extends Enum<ServerTlsPolicy.MTLSPolicy.ClientValidationMode>
implements com.google.protobuf.ProtocolMessageEnum
Mutual TLS certificate validation mode.Protobuf enum
google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.ClientValidationMode-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAllow connection even if certificate chain validation of the client certificate failed or no client certificate was presented.Not allowed.Require a client certificate and allow connection to the backend only if validation of the client certificate passed. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intAllow connection even if certificate chain validation of the client certificate failed or no client certificate was presented.static final intNot allowed.static final intRequire a client certificate and allow connection to the backend only if validation of the client certificate passed. -
Method Summary
Modifier and TypeMethodDescriptionforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<ServerTlsPolicy.MTLSPolicy.ClientValidationMode>valueOf(int value) Deprecated.valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.Returns the enum constant of this type with the specified name.values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CLIENT_VALIDATION_MODE_UNSPECIFIED
public static final ServerTlsPolicy.MTLSPolicy.ClientValidationMode CLIENT_VALIDATION_MODE_UNSPECIFIEDNot allowed.
CLIENT_VALIDATION_MODE_UNSPECIFIED = 0; -
ALLOW_INVALID_OR_MISSING_CLIENT_CERT
public static final ServerTlsPolicy.MTLSPolicy.ClientValidationMode ALLOW_INVALID_OR_MISSING_CLIENT_CERTAllow connection even if certificate chain validation of the client certificate failed or no client certificate was presented. The proof of possession of the private key is always checked if client certificate was presented. This mode requires the backend to implement processing of data extracted from a client certificate to authenticate the peer, or to reject connections if the client certificate fingerprint is missing.
ALLOW_INVALID_OR_MISSING_CLIENT_CERT = 1; -
REJECT_INVALID
Require a client certificate and allow connection to the backend only if validation of the client certificate passed. If set, requires a reference to non-empty TrustConfig specified in `client_validation_trust_config`.
REJECT_INVALID = 2; -
UNRECOGNIZED
-
-
Field Details
-
CLIENT_VALIDATION_MODE_UNSPECIFIED_VALUE
public static final int CLIENT_VALIDATION_MODE_UNSPECIFIED_VALUENot allowed.
CLIENT_VALIDATION_MODE_UNSPECIFIED = 0;- See Also:
-
ALLOW_INVALID_OR_MISSING_CLIENT_CERT_VALUE
public static final int ALLOW_INVALID_OR_MISSING_CLIENT_CERT_VALUEAllow connection even if certificate chain validation of the client certificate failed or no client certificate was presented. The proof of possession of the private key is always checked if client certificate was presented. This mode requires the backend to implement processing of data extracted from a client certificate to authenticate the peer, or to reject connections if the client certificate fingerprint is missing.
ALLOW_INVALID_OR_MISSING_CLIENT_CERT = 1;- See Also:
-
REJECT_INVALID_VALUE
public static final int REJECT_INVALID_VALUERequire a client certificate and allow connection to the backend only if validation of the client certificate passed. If set, requires a reference to non-empty TrustConfig specified in `client_validation_trust_config`.
REJECT_INVALID = 2;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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.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
- 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<ServerTlsPolicy.MTLSPolicy.ClientValidationMode> 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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static ServerTlsPolicy.MTLSPolicy.ClientValidationMode 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
-