org.ldaptive.control.ManageDsaITControl Maven / Gradle / Ivy
/*
$Id: ManageDsaITControl.java 3189 2016-11-01 21:21:43Z daniel_fisher $
Copyright (C) 2003-2014 Virginia Tech.
All rights reserved.
SEE LICENSE FOR MORE INFORMATION
Author: Middleware Services
Email: [email protected]
Version: $Revision: 3189 $
Updated: $Date: 2016-11-01 17:21:43 -0400 (Tue, 01 Nov 2016) $
*/
package org.ldaptive.control;
import org.ldaptive.LdapUtils;
/**
* Request control for ManageDsaIT. See RFC 3296.
*
* @author Middleware Services
* @version $Revision: 3189 $ $Date: 2016-11-01 17:21:43 -0400 (Tue, 01 Nov 2016) $
*/
public class ManageDsaITControl extends AbstractControl
implements RequestControl
{
/** OID of this control. */
public static final String OID = "2.16.840.1.113730.3.4.2";
/** hash code seed. */
private static final int HASH_CODE_SEED = 701;
/** Default constructor. */
public ManageDsaITControl()
{
super(OID);
}
/**
* Creates a new ManageDsaIT control.
*
* @param critical whether this control is critical
*/
public ManageDsaITControl(final boolean critical)
{
super(OID, critical);
}
/** {@inheritDoc} */
@Override
public boolean equals(final Object o)
{
if (o == this) {
return true;
}
return o instanceof ManageDsaITControl && super.equals(o);
}
@Override
public int hashCode()
{
return
LdapUtils.computeHashCode(HASH_CODE_SEED, getOID(), getCriticality());
}
/** {@inheritDoc} */
@Override
public String toString()
{
return
String.format(
"[%s@%d::criticality=%s]",
getClass().getName(),
hashCode(),
getCriticality());
}
/** {@inheritDoc} */
@Override
public byte[] encode()
{
return null;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy