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());
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionOff.Application Load Balancer sends the whole client certificate chain to the target using HTTP headers.Application Load Balancer performs X.509 client certificate authentication for clients when a load balancer negotiates TLS connections. -
Method Summary
Modifier and TypeMethodDescriptionstatic MutualAuthenticationMode
Returns the enum constant of this type with the specified name.static MutualAuthenticationMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
OFF
Off. -
PASS_THROUGH
Application Load Balancer sends the whole client certificate chain to the target using HTTP headers. -
VERIFY
Application Load Balancer performs X.509 client certificate authentication for clients when a load balancer negotiates TLS connections.
-
-
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
-