Package io.trino.plugin.base.ldap
Class LdapClientConfig
- java.lang.Object
-
- io.trino.plugin.base.ldap.LdapClientConfig
-
public class LdapClientConfig extends Object
-
-
Constructor Summary
Constructors Constructor Description LdapClientConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<String>getKeystorePassword()Optional<@FileExists File>getKeystorePath()Optional<io.airlift.units.Duration>getLdapConnectionTimeout()Optional<io.airlift.units.Duration>getLdapReadTimeout()@NotNull @Pattern(regexp="^ldaps?://.*",message="Invalid LDAP server URL. Expected ldap:// or ldaps://") StringgetLdapUrl()Optional<String>getTruststorePassword()Optional<@FileExists File>getTrustStorePath()booleanisAllowInsecure()booleanisIgnoreReferrals()@javax.validation.constraints.AssertTrue(message="Connecting to the LDAP server without SSL enabled requires `ldap.allow-insecure=true`") booleanisUrlConfigurationValid()LdapClientConfigsetAllowInsecure(boolean allowInsecure)LdapClientConfigsetIgnoreReferrals(boolean ignoreReferrals)LdapClientConfigsetKeystorePassword(String password)LdapClientConfigsetKeystorePath(File path)LdapClientConfigsetLdapConnectionTimeout(io.airlift.units.Duration ldapConnectionTimeout)LdapClientConfigsetLdapReadTimeout(io.airlift.units.Duration ldapReadTimeout)LdapClientConfigsetLdapUrl(String url)LdapClientConfigsetTruststorePassword(String password)LdapClientConfigsetTrustStorePath(File path)
-
-
-
Method Detail
-
getLdapUrl
@NotNull @Pattern(regexp="^ldaps?://.*", message="Invalid LDAP server URL. Expected ldap:// or ldaps://") public @NotNull @Pattern(regexp="^ldaps?://.*",message="Invalid LDAP server URL. Expected ldap:// or ldaps://") String getLdapUrl()
-
setLdapUrl
@Config("ldap.url") public LdapClientConfig setLdapUrl(String url)
-
isAllowInsecure
public boolean isAllowInsecure()
-
setAllowInsecure
@Config("ldap.allow-insecure") public LdapClientConfig setAllowInsecure(boolean allowInsecure)
-
isUrlConfigurationValid
@AssertTrue(message="Connecting to the LDAP server without SSL enabled requires `ldap.allow-insecure=true`") public @javax.validation.constraints.AssertTrue(message="Connecting to the LDAP server without SSL enabled requires `ldap.allow-insecure=true`") boolean isUrlConfigurationValid()
-
setKeystorePath
@Config("ldap.ssl.keystore.path") public LdapClientConfig setKeystorePath(File path)
-
setKeystorePassword
@Config("ldap.ssl.keystore.password") public LdapClientConfig setKeystorePassword(String password)
-
setTrustStorePath
@LegacyConfig("ldap.ssl-trust-certificate") @Config("ldap.ssl.truststore.path") public LdapClientConfig setTrustStorePath(File path)
-
setTruststorePassword
@Config("ldap.ssl.truststore.password") public LdapClientConfig setTruststorePassword(String password)
-
isIgnoreReferrals
public boolean isIgnoreReferrals()
-
setIgnoreReferrals
@Config("ldap.ignore-referrals") public LdapClientConfig setIgnoreReferrals(boolean ignoreReferrals)
-
getLdapConnectionTimeout
public Optional<io.airlift.units.Duration> getLdapConnectionTimeout()
-
setLdapConnectionTimeout
@Config("ldap.timeout.connect") public LdapClientConfig setLdapConnectionTimeout(io.airlift.units.Duration ldapConnectionTimeout)
-
getLdapReadTimeout
public Optional<io.airlift.units.Duration> getLdapReadTimeout()
-
setLdapReadTimeout
@Config("ldap.timeout.read") public LdapClientConfig setLdapReadTimeout(io.airlift.units.Duration ldapReadTimeout)
-
-