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 Details

    • CLIENT_VALIDATION_MODE_UNSPECIFIED

      public static final ServerTlsPolicy.MTLSPolicy.ClientValidationMode CLIENT_VALIDATION_MODE_UNSPECIFIED
       Not allowed.
       
      CLIENT_VALIDATION_MODE_UNSPECIFIED = 0;
    • ALLOW_INVALID_OR_MISSING_CLIENT_CERT

      public static final ServerTlsPolicy.MTLSPolicy.ClientValidationMode ALLOW_INVALID_OR_MISSING_CLIENT_CERT
       Allow 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

      public static final ServerTlsPolicy.MTLSPolicy.ClientValidationMode 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

      public static final ServerTlsPolicy.MTLSPolicy.ClientValidationMode UNRECOGNIZED
  • Field Details

    • CLIENT_VALIDATION_MODE_UNSPECIFIED_VALUE

      public static final int CLIENT_VALIDATION_MODE_UNSPECIFIED_VALUE
       Not 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_VALUE
       Allow 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_VALUE
       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;
      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 name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.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 name
      NullPointerException - if the argument is null
    • forNumber

      public static ServerTlsPolicy.MTLSPolicy.ClientValidationMode 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<ServerTlsPolicy.MTLSPolicy.ClientValidationMode> internalGetValueMap()
    • getValueDescriptor

      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
      Specified by:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.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 name
      NullPointerException - if the argument is null