Interface MutualAuthentication
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
MutualAuthentication.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-29T11:15:39.922Z")
@Stability(Stable)
public interface MutualAuthentication
extends software.amazon.jsii.JsiiSerializable
The mutual authentication configuration information.
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 ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forMutualAuthenticationstatic final classAn implementation forMutualAuthentication -
Method Summary
Modifier and TypeMethodDescriptionstatic MutualAuthentication.Builderbuilder()default BooleanIndicates whether trust store CA names are advertised.default BooleanIndicates whether expired client certificates are ignored.default MutualAuthenticationModeThe client certificate handling method.default ITrustStoreThe trust store.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAdvertiseTrustStoreCaNames
Indicates whether trust store CA names are advertised.Default: false
-
getIgnoreClientCertificateExpiry
Indicates whether expired client certificates are ignored.Cannot be used with MutualAuthenticationMode.OFF or MutualAuthenticationMode.PASS_THROUGH
Default: false
-
getMutualAuthenticationMode
The client certificate handling method.Default: MutualAuthenticationMode.OFF
-
getTrustStore
The trust store.Cannot be used with MutualAuthenticationMode.OFF or MutualAuthenticationMode.PASS_THROUGH
Default: - no trust store
-
builder
- Returns:
- a
MutualAuthentication.BuilderofMutualAuthentication
-