com.pulumi.googlenative.networksecurity.v1beta1.enums.MTLSPolicyClientValidationMode Maven / Gradle / Ivy
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.googlenative.networksecurity.v1beta1.enums;
import com.pulumi.core.annotations.EnumType;
import java.lang.String;
import java.util.Objects;
import java.util.StringJoiner;
/**
* When the client presents an invalid certificate or no certificate to the load balancer, the `client_validation_mode` specifies how the client connection is handled. Required if the policy is to be used with the external HTTPS load balancing. For Traffic Director it must be empty.
*
*/
@EnumType
public enum MTLSPolicyClientValidationMode {
/**
* Not allowed.
*
*/
ClientValidationModeUnspecified("CLIENT_VALIDATION_MODE_UNSPECIFIED"),
/**
* 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.
*
*/
AllowInvalidOrMissingClientCert("ALLOW_INVALID_OR_MISSING_CLIENT_CERT"),
/**
* 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`.
*
*/
RejectInvalid("REJECT_INVALID");
private final String value;
MTLSPolicyClientValidationMode(String value) {
this.value = Objects.requireNonNull(value);
}
@EnumType.Converter
public String getValue() {
return this.value;
}
@Override
public String toString() {
return new StringJoiner(", ", "MTLSPolicyClientValidationMode[", "]")
.add("value='" + this.value + "'")
.toString();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy