org.ldaptive.auth
Class AuthenticationCriteria

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

public class AuthenticationCriteria
extends Object

Contains the properties used to perform authentication.

Version:
$Revision: 2885 $ $Date: 2014-02-05 16:28:49 -0500 (Wed, 05 Feb 2014) $
Author:
Middleware Services

Constructor Summary
AuthenticationCriteria()
          Default constructor.
AuthenticationCriteria(String dn)
          Creates a new authentication criteria.
AuthenticationCriteria(String dn, AuthenticationRequest request)
          Creates a new authentication criteria.
 
Method Summary
 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 setCredential(Credential c)
          Deprecated. use setAuthenticationRequest(AuthenticationRequest) instead
 void setDn(String dn)
          Sets the dn.
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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 authenticate
request - 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

setCredential

@Deprecated
public void setCredential(Credential c)
Deprecated. use setAuthenticationRequest(AuthenticationRequest) instead

Sets the credential.

Parameters:
c - to set credential

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


Copyright © 2003-2015 Virginia Tech. All Rights Reserved.