Class LdapAuthenticationOptions
java.lang.Object
io.vertx.ext.auth.ldap.LdapAuthenticationOptions
Ldap auth configuration options
- Author:
- Stephane Bastian
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetUrl()setAuthenticationMechanism(String authenticationMechanism) sets the authentication mechanism. default to 'simple' if not setsetAuthenticationQuery(String authenticationQuery) Set the query to use to authenticate a user.setReferral(String referral) Set the referral property.Set the url to the LDAP server.
-
Constructor Details
-
LdapAuthenticationOptions
public LdapAuthenticationOptions() -
LdapAuthenticationOptions
-
-
Method Details
-
getAuthenticationMechanism
-
getReferral
-
getUrl
-
getAuthenticationQuery
-
setAuthenticationMechanism
sets the authentication mechanism. default to 'simple' if not set- Parameters:
authenticationMechanism-- Returns:
- a reference to this, so the API can be used fluently
-
setReferral
Set the referral property. Default to 'follow' if not set- Parameters:
referral- the referral- Returns:
- a reference to this, so the API can be used fluently
-
setUrl
Set the url to the LDAP server. The url must start with `ldap://` and a port must be specified.- Parameters:
url- the url to the server- Returns:
- a reference to this, so the API can be used fluently
-
setAuthenticationQuery
Set the query to use to authenticate a user. This is used to determine the actual lookup to use when looking up a user with a particular id. An example is `uid={0},ou=users,dc=foo,dc=com` - Note that the element `{0}` is substituted with the user id to create the actual lookup.- Parameters:
authenticationQuery-- Returns:
- a reference to this, so the API can be used fluently
-