AuthenticationMethodLdapProperties Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. models. AuthenticationMethodLdapProperties
- com.
Implements
public final class AuthenticationMethodLdapProperties
implements JsonSerializable<AuthenticationMethodLdapProperties>
Ldap authentication method properties. This feature is in preview.
Constructor Summary
Constructor | Description |
---|---|
AuthenticationMethodLdapProperties() |
Creates an instance of Authentication |
Method Summary
Modifier and Type | Method and Description |
---|---|
Integer |
connectionTimeoutInMs()
Get the connection |
static
Authentication |
fromJson(JsonReader jsonReader)
Reads an instance of Authentication |
String |
searchBaseDistinguishedName()
Get the search |
String |
searchFilterTemplate()
Get the search |
List<Certificate> |
serverCertificates()
Get the server |
String |
serverHostname()
Get the server |
Integer |
serverPort()
Get the server |
String |
serviceUserDistinguishedName()
Get the service |
String |
serviceUserPassword()
Get the service |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Authentication |
withConnectionTimeoutInMs(Integer connectionTimeoutInMs)
Set the connection |
Authentication |
withSearchBaseDistinguishedName(String searchBaseDistinguishedName)
Set the search |
Authentication |
withSearchFilterTemplate(String searchFilterTemplate)
Set the search |
Authentication |
withServerCertificates(List<Certificate> serverCertificates)
Set the server |
Authentication |
withServerHostname(String serverHostname)
Set the server |
Authentication |
withServerPort(Integer serverPort)
Set the server |
Authentication |
withServiceUserDistinguishedName(String serviceUserDistinguishedName)
Set the service |
Authentication |
withServiceUserPassword(String serviceUserPassword)
Set the service |
Methods inherited from java.lang.Object
Constructor Details
AuthenticationMethodLdapProperties
public AuthenticationMethodLdapProperties()
Creates an instance of AuthenticationMethodLdapProperties class.
Method Details
connectionTimeoutInMs
public Integer connectionTimeoutInMs()
Get the connectionTimeoutInMs property: Timeout for connecting to the LDAP server in miliseconds. The default is 5000 ms.
Returns:
fromJson
public static AuthenticationMethodLdapProperties fromJson(JsonReader jsonReader)
Reads an instance of AuthenticationMethodLdapProperties from the JsonReader.
Parameters:
Returns:
Throws:
searchBaseDistinguishedName
public String searchBaseDistinguishedName()
Get the searchBaseDistinguishedName property: Distinguished name of the object to start the recursive search of users from.
Returns:
searchFilterTemplate
public String searchFilterTemplate()
Get the searchFilterTemplate property: Template to use for searching. Defaults to (cn=%s) where %s will be replaced by the username used to login.
Returns:
serverCertificates
public List
Get the serverCertificates property: The serverCertificates property.
Returns:
serverHostname
public String serverHostname()
Get the serverHostname property: Hostname of the LDAP server.
Returns:
serverPort
public Integer serverPort()
Get the serverPort property: Port of the LDAP server.
Returns:
serviceUserDistinguishedName
public String serviceUserDistinguishedName()
Get the serviceUserDistinguishedName property: Distinguished name of the look up user account, who can look up user details on authentication.
Returns:
serviceUserPassword
public String serviceUserPassword()
Get the serviceUserPassword property: Password of the look up user.
Returns:
toJson
validate
public void validate()
Validates the instance.
withConnectionTimeoutInMs
public AuthenticationMethodLdapProperties withConnectionTimeoutInMs(Integer connectionTimeoutInMs)
Set the connectionTimeoutInMs property: Timeout for connecting to the LDAP server in miliseconds. The default is 5000 ms.
Parameters:
Returns:
withSearchBaseDistinguishedName
public AuthenticationMethodLdapProperties withSearchBaseDistinguishedName(String searchBaseDistinguishedName)
Set the searchBaseDistinguishedName property: Distinguished name of the object to start the recursive search of users from.
Parameters:
Returns:
withSearchFilterTemplate
public AuthenticationMethodLdapProperties withSearchFilterTemplate(String searchFilterTemplate)
Set the searchFilterTemplate property: Template to use for searching. Defaults to (cn=%s) where %s will be replaced by the username used to login.
Parameters:
Returns:
withServerCertificates
public AuthenticationMethodLdapProperties withServerCertificates(List
Set the serverCertificates property: The serverCertificates property.
Parameters:
Returns:
withServerHostname
public AuthenticationMethodLdapProperties withServerHostname(String serverHostname)
Set the serverHostname property: Hostname of the LDAP server.
Parameters:
Returns:
withServerPort
public AuthenticationMethodLdapProperties withServerPort(Integer serverPort)
Set the serverPort property: Port of the LDAP server.
Parameters:
Returns:
withServiceUserDistinguishedName
public AuthenticationMethodLdapProperties withServiceUserDistinguishedName(String serviceUserDistinguishedName)
Set the serviceUserDistinguishedName property: Distinguished name of the look up user account, who can look up user details on authentication.
Parameters:
Returns:
withServiceUserPassword
public AuthenticationMethodLdapProperties withServiceUserPassword(String serviceUserPassword)
Set the serviceUserPassword property: Password of the look up user.
Parameters:
Returns:
Applies to
Azure SDK for Java