Package org.ldaptive.auth
Class AuthenticationCriteria
- java.lang.Object
-
- org.ldaptive.auth.AuthenticationCriteria
-
public class AuthenticationCriteria extends Object
Contains the properties used to perform authentication.
-
-
Field Summary
Fields Modifier and Type Field Description private String
authenticationDn
dn.private AuthenticationRequest
authenticationRequest
authentication request.
-
Constructor Summary
Constructors Constructor Description AuthenticationCriteria()
Default constructor.AuthenticationCriteria(String dn)
Creates a new authentication criteria.AuthenticationCriteria(String dn, AuthenticationRequest request)
Creates a new authentication criteria.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthenticationRequest
getAuthenticationRequest()
Returns the authentication request.Credential
getCredential()
Returns the credential.String
getDn()
Returns the dn.void
setAuthenticationRequest(AuthenticationRequest request)
Sets the authentication request.void
setDn(String dn)
Sets the dn.String
toString()
-
-
-
Field Detail
-
authenticationDn
private String authenticationDn
dn.
-
authenticationRequest
private AuthenticationRequest authenticationRequest
authentication request.
-
-
Constructor Detail
-
AuthenticationCriteria
public AuthenticationCriteria()
Default constructor.
-
AuthenticationCriteria
public AuthenticationCriteria(String dn)
Creates a new authentication criteria.- Parameters:
dn
- to authenticate
-
AuthenticationCriteria
public AuthenticationCriteria(String dn, AuthenticationRequest request)
Creates a new authentication criteria.- Parameters:
dn
- to authenticaterequest
- that initiated the authentication
-
-
Method Detail
-
getDn
public String getDn()
Returns the dn.- Returns:
- dn to authenticate
-
setDn
public void setDn(String dn)
Sets the dn.- Parameters:
dn
- to set dn
-
getCredential
public Credential getCredential()
Returns the credential.- Returns:
- credential to authenticate dn
-
getAuthenticationRequest
public AuthenticationRequest getAuthenticationRequest()
Returns the authentication request.- Returns:
- authentication request
-
setAuthenticationRequest
public void setAuthenticationRequest(AuthenticationRequest request)
Sets the authentication request.- Parameters:
request
- to set authentication request
-
-