Enum MutualAuthenticationMode

java.lang.Object
java.lang.Enum<MutualAuthenticationMode>
software.amazon.awscdk.services.elasticloadbalancingv2.MutualAuthenticationMode
All Implemented Interfaces:
Serializable, Comparable<MutualAuthenticationMode>, java.lang.constant.Constable

@Generated(value="jsii-pacmak/1.106.0 (build e852934)", date="2025-02-06T22:15:54.491Z") @Stability(Stable) public enum MutualAuthenticationMode extends Enum<MutualAuthenticationMode>
The client certificate handling method.

Example:

 import software.amazon.awscdk.services.certificatemanager.*;
 Certificate certificate;
 ApplicationLoadBalancer lb;
 Bucket bucket;
 TrustStore trustStore = TrustStore.Builder.create(this, "Store")
         .bucket(bucket)
         .key("rootCA_cert.pem")
         .build();
 lb.addListener("Listener", BaseApplicationListenerProps.builder()
         .port(443)
         .protocol(ApplicationProtocol.HTTPS)
         .certificates(List.of(certificate))
         // mTLS settings
         .mutualAuthentication(MutualAuthentication.builder()
                 .advertiseTrustStoreCaNames(true)
                 .ignoreClientCertificateExpiry(false)
                 .mutualAuthenticationMode(MutualAuthenticationMode.VERIFY)
                 .trustStore(trustStore)
                 .build())
         .defaultAction(ListenerAction.fixedResponse(200, FixedResponseOptions.builder().contentType("text/plain").messageBody("Success mTLS").build()))
         .build());
 
  • Enum Constant Details

    • OFF

      @Stability(Stable) public static final MutualAuthenticationMode OFF
      Off.
    • PASS_THROUGH

      @Stability(Stable) public static final MutualAuthenticationMode PASS_THROUGH
      Application Load Balancer sends the whole client certificate chain to the target using HTTP headers.
    • VERIFY

      @Stability(Stable) public static final MutualAuthenticationMode VERIFY
      Application Load Balancer performs X.509 client certificate authentication for clients when a load balancer negotiates TLS connections.
  • Method Details

    • values

      public static MutualAuthenticationMode[] 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

      public static MutualAuthenticationMode 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 name
      NullPointerException - if the argument is null