All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edu.vt.middleware.ldap.auth.handler.AuthenticationCriteria Maven / Gradle / Ivy

There is a newer version: 3.3.9
Show newest version
/*
  $Id: AuthenticationCriteria.java 1330 2010-05-23 22:10:53Z dfisher $

  Copyright (C) 2003-2010 Virginia Tech.
  All rights reserved.

  SEE LICENSE FOR MORE INFORMATION

  Author:  Middleware Services
  Email:   [email protected]
  Version: $Revision: 1330 $
  Updated: $Date: 2010-05-23 18:10:53 -0400 (Sun, 23 May 2010) $
*/
package edu.vt.middleware.ldap.auth.handler;

/**
 * AuthenticationCriteria contains the attributes used to perform
 * authentications.
 *
 * @author  Middleware Services
 * @version  $Revision: 1330 $ $Date: 2010-05-23 18:10:53 -0400 (Sun, 23 May 2010) $
 */
public class AuthenticationCriteria
{

  /** dn. */
  private String dn;

  /** credential. */
  private Object credential;


  /** Default constructor. */
  public AuthenticationCriteria() {}


  /**
   * Creates a new authentication criteria with the supplied dn.
   *
   * @param  s  to set dn
   */
  public AuthenticationCriteria(final String s)
  {
    this.dn = s;
  }


  /**
   * Gets the dn.
   *
   * @return  dn
   */
  public String getDn()
  {
    return this.dn;
  }


  /**
   * Sets the dn.
   *
   * @param  s  to set dn
   */
  public void setDn(final String s)
  {
    this.dn = s;
  }


  /**
   * Gets the credential.
   *
   * @return  credential
   */
  public Object getCredential()
  {
    return this.credential;
  }


  /**
   * Sets the credential.
   *
   * @param  o  to set credential
   */
  public void setCredential(final Object o)
  {
    this.credential = o;
  }


  /**
   * This returns a string representation of this search criteria.
   *
   * @return  String
   */
  @Override
  public String toString()
  {
    return String.format("dn=%s,credential=%s", this.dn, this.credential);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy