Package com.oracle.bmc.servicemesh.model
Class MutualTransportLayerSecurity.Builder
- java.lang.Object
-
- com.oracle.bmc.servicemesh.model.MutualTransportLayerSecurity.Builder
-
- Enclosing class:
- MutualTransportLayerSecurity
public static class MutualTransportLayerSecurity.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MutualTransportLayerSecurity
build()
MutualTransportLayerSecurity.Builder
certificateId(String certificateId)
The OCID of the certificate resource that will be used for mTLS authentication with other virtual services in the mesh.MutualTransportLayerSecurity.Builder
copy(MutualTransportLayerSecurity model)
MutualTransportLayerSecurity.Builder
maximumValidity(Integer maximumValidity)
The number of days the mTLS certificate is valid.MutualTransportLayerSecurity.Builder
mode(MutualTransportLayerSecurity.Mode mode)
DISABLED: Connection is not tunneled.
-
-
-
Method Detail
-
certificateId
public MutualTransportLayerSecurity.Builder certificateId(String certificateId)
The OCID of the certificate resource that will be used for mTLS authentication with other virtual services in the mesh.- Parameters:
certificateId
- the value to set- Returns:
- this builder
-
maximumValidity
public MutualTransportLayerSecurity.Builder maximumValidity(Integer maximumValidity)
The number of days the mTLS certificate is valid.This value should be less than the Maximum Validity Duration for Certificates (Days) setting on the Certificate Authority associated with this Mesh. The certificate will be automatically renewed after 2/3 of the validity period, so a certificate with a maximum validity of 45 days will be renewed every 30 days.
- Parameters:
maximumValidity
- the value to set- Returns:
- this builder
-
mode
public MutualTransportLayerSecurity.Builder mode(MutualTransportLayerSecurity.Mode mode)
DISABLED: Connection is not tunneled.PERMISSIVE: Connection can be either plaintext or an mTLS tunnel. STRICT: Connection is an mTLS tunnel. Clients without a valid certificate will be rejected.
- Parameters:
mode
- the value to set- Returns:
- this builder
-
build
public MutualTransportLayerSecurity build()
-
copy
public MutualTransportLayerSecurity.Builder copy(MutualTransportLayerSecurity model)
-
-