Package io.trino.plugin.base.ldap
Class LdapClientConfig
java.lang.Object
io.trino.plugin.base.ldap.LdapClientConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionOptional<io.airlift.units.Duration>Optional<io.airlift.units.Duration>@NotNull @Pattern(regexp="^ldaps?://.*",message="Invalid LDAP server URL. Expected ldap:// or ldaps://") Stringbooleanboolean@jakarta.validation.constraints.AssertTrue(message="Connecting to the LDAP server without SSL enabled requires `ldap.allow-insecure=true`") booleansetAllowInsecure(boolean allowInsecure) setIgnoreReferrals(boolean ignoreReferrals) setKeystorePassword(String password) setKeystorePath(File path) setLdapConnectionTimeout(io.airlift.units.Duration ldapConnectionTimeout) setLdapReadTimeout(io.airlift.units.Duration ldapReadTimeout) setLdapUrl(String url) setTruststorePassword(String password) setTrustStorePath(File path)
-
Constructor Details
-
LdapClientConfig
public LdapClientConfig()
-
-
Method Details
-
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
-
isAllowInsecure
public boolean isAllowInsecure() -
setAllowInsecure
-
isUrlConfigurationValid
@AssertTrue(message="Connecting to the LDAP server without SSL enabled requires `ldap.allow-insecure=true`") public @jakarta.validation.constraints.AssertTrue(message="Connecting to the LDAP server without SSL enabled requires `ldap.allow-insecure=true`") boolean isUrlConfigurationValid() -
getKeystorePath
-
setKeystorePath
-
getKeystorePassword
-
setKeystorePassword
-
getTrustStorePath
-
setTrustStorePath
@LegacyConfig("ldap.ssl-trust-certificate") @Config("ldap.ssl.truststore.path") public LdapClientConfig setTrustStorePath(File path) -
getTruststorePassword
-
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
-
setLdapConnectionTimeout
@Config("ldap.timeout.connect") public LdapClientConfig setLdapConnectionTimeout(io.airlift.units.Duration ldapConnectionTimeout) -
getLdapReadTimeout
-
setLdapReadTimeout
@Config("ldap.timeout.read") public LdapClientConfig setLdapReadTimeout(io.airlift.units.Duration ldapReadTimeout)
-