Class AuthenticationCriteria

java.lang.Object
org.ldaptive.auth.AuthenticationCriteria

public class AuthenticationCriteria extends Object
Contains the properties used to perform authentication.
  • Field Details

    • authenticationDn

      private String authenticationDn
      dn.
    • authenticationRequest

      private AuthenticationRequest authenticationRequest
      authentication request.
  • Constructor Details

    • 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 authenticate
      request - that initiated the authentication
  • Method Details

    • 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
    • toString

      public String toString()
      Overrides:
      toString in class Object