Package org.ldaptive
Class SimpleBindRequest.Builder
- java.lang.Object
-
- org.ldaptive.AbstractRequestMessage.AbstractBuilder<SimpleBindRequest.Builder,SimpleBindRequest>
-
- org.ldaptive.SimpleBindRequest.Builder
-
- Enclosing class:
- SimpleBindRequest
public static class SimpleBindRequest.Builder extends AbstractRequestMessage.AbstractBuilder<SimpleBindRequest.Builder,SimpleBindRequest>
Simple bind request builder.
-
-
Field Summary
-
Fields inherited from class org.ldaptive.AbstractRequestMessage.AbstractBuilder
object
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SimpleBindRequest.Builder
dn(String dn)
Sets the bind DN.SimpleBindRequest.Builder
password(String password)
Sets the bind password.SimpleBindRequest.Builder
password(Credential credential)
Sets the bind password.protected SimpleBindRequest.Builder
self()
Returns this builder.-
Methods inherited from class org.ldaptive.AbstractRequestMessage.AbstractBuilder
build, controls, responseTimeout
-
-
-
-
Method Detail
-
self
protected SimpleBindRequest.Builder self()
Description copied from class:AbstractRequestMessage.AbstractBuilder
Returns this builder.- Specified by:
self
in classAbstractRequestMessage.AbstractBuilder<SimpleBindRequest.Builder,SimpleBindRequest>
- Returns:
- builder
-
dn
public SimpleBindRequest.Builder dn(String dn)
Sets the bind DN.- Parameters:
dn
- ldap DN- Returns:
- this builder
-
password
public SimpleBindRequest.Builder password(String password)
Sets the bind password.- Parameters:
password
- associated with the DN- Returns:
- this builder
-
password
public SimpleBindRequest.Builder password(Credential credential)
Sets the bind password.- Parameters:
credential
- associated with the DN- Returns:
- this builder
-
-