Class ClientTLS
- java.lang.Object
-
- io.fabric8.openshift.api.model.operator.v1.ClientTLS
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<ClientTLSBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class ClientTLS extends Object implements io.fabric8.kubernetes.api.builder.Editable<ClientTLSBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
ClientTLS specifies TLS configuration to enable client-to-server authentication, which can be used for mutual TLS.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClientTLSBuilderedit()Map<String,Object>getAdditionalProperties()List<String>getAllowedSubjectPatterns()allowedSubjectPatterns specifies a list of regular expressions that should be matched against the distinguished name on a valid client certificate to filter requests.io.fabric8.openshift.api.model.config.v1.ConfigMapNameReferencegetClientCA()ClientTLS specifies TLS configuration to enable client-to-server authentication, which can be used for mutual TLS.StringgetClientCertificatePolicy()clientCertificatePolicy specifies whether the ingress controller requires clients to provide certificates.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetAllowedSubjectPatterns(List<String> allowedSubjectPatterns)allowedSubjectPatterns specifies a list of regular expressions that should be matched against the distinguished name on a valid client certificate to filter requests.voidsetClientCA(io.fabric8.openshift.api.model.config.v1.ConfigMapNameReference clientCA)ClientTLS specifies TLS configuration to enable client-to-server authentication, which can be used for mutual TLS.voidsetClientCertificatePolicy(String clientCertificatePolicy)clientCertificatePolicy specifies whether the ingress controller requires clients to provide certificates.ClientTLSBuildertoBuilder()
-
-
-
Method Detail
-
getAllowedSubjectPatterns
public List<String> getAllowedSubjectPatterns()
allowedSubjectPatterns specifies a list of regular expressions that should be matched against the distinguished name on a valid client certificate to filter requests. The regular expressions must use PCRE syntax. If this list is empty, no filtering is performed. If the list is nonempty, then at least one pattern must match a client certificate's distinguished name or else the ingress controller rejects the certificate and denies the connection.
-
setAllowedSubjectPatterns
public void setAllowedSubjectPatterns(List<String> allowedSubjectPatterns)
allowedSubjectPatterns specifies a list of regular expressions that should be matched against the distinguished name on a valid client certificate to filter requests. The regular expressions must use PCRE syntax. If this list is empty, no filtering is performed. If the list is nonempty, then at least one pattern must match a client certificate's distinguished name or else the ingress controller rejects the certificate and denies the connection.
-
getClientCA
public io.fabric8.openshift.api.model.config.v1.ConfigMapNameReference getClientCA()
ClientTLS specifies TLS configuration to enable client-to-server authentication, which can be used for mutual TLS.
-
setClientCA
public void setClientCA(io.fabric8.openshift.api.model.config.v1.ConfigMapNameReference clientCA)
ClientTLS specifies TLS configuration to enable client-to-server authentication, which can be used for mutual TLS.
-
getClientCertificatePolicy
public String getClientCertificatePolicy()
clientCertificatePolicy specifies whether the ingress controller requires clients to provide certificates. This field accepts the values "Required" or "Optional".Note that the ingress controller only checks client certificates for edge-terminated and reencrypt TLS routes; it cannot check certificates for cleartext HTTP or passthrough TLS routes.
-
setClientCertificatePolicy
public void setClientCertificatePolicy(String clientCertificatePolicy)
clientCertificatePolicy specifies whether the ingress controller requires clients to provide certificates. This field accepts the values "Required" or "Optional".Note that the ingress controller only checks client certificates for edge-terminated and reencrypt TLS routes; it cannot check certificates for cleartext HTTP or passthrough TLS routes.
-
edit
public ClientTLSBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<ClientTLSBuilder>
-
toBuilder
public ClientTLSBuilder toBuilder()
-
-