/**
* {@inheritDoc}
*/
public CompareResponse compare( Dn dn, String attributeName, Value<?> value ) throws LdapException
{
CompareRequest compareRequest = new CompareRequestImpl();
compareRequest.setName( dn );
compareRequest.setAttributeId( attributeName );
if ( value.isBinary() )
{
compareRequest.setAssertionValue( value.getBytes() );
}
else
{
compareRequest.setAssertionValue( value.getString() );
}
return compare( compareRequest );
}