Package org.ldaptive.auth
Class AuthenticationCriteria
- java.lang.Object
-
- org.ldaptive.auth.AuthenticationCriteria
-
public class AuthenticationCriteria extends java.lang.Object
Contains the properties used to perform authentication.- Author:
- Middleware Services
-
-
Constructor Summary
Constructors Constructor Description AuthenticationCriteria()
Default constructor.AuthenticationCriteria(java.lang.String dn)
Creates a new authentication criteria.AuthenticationCriteria(java.lang.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.java.lang.String
getDn()
Returns the dn.void
setAuthenticationRequest(AuthenticationRequest request)
Sets the authentication request.void
setDn(java.lang.String dn)
Sets the dn.java.lang.String
toString()
-
-
-
Constructor Detail
-
AuthenticationCriteria
public AuthenticationCriteria()
Default constructor.
-
AuthenticationCriteria
public AuthenticationCriteria(java.lang.String dn)
Creates a new authentication criteria.- Parameters:
dn
- to authenticate
-
AuthenticationCriteria
public AuthenticationCriteria(java.lang.String dn, AuthenticationRequest request)
Creates a new authentication criteria.- Parameters:
dn
- to authenticaterequest
- that initiated the authentication
-
-
Method Detail
-
getDn
public java.lang.String getDn()
Returns the dn.- Returns:
- dn to authenticate
-
setDn
public void setDn(java.lang.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
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-