org.ldaptive.extended.WhoAmIResponse Maven / Gradle / Ivy
/*
$Id: WhoAmIResponse.java 2885 2014-02-05 21:28:49Z dfisher $
Copyright (C) 2003-2014 Virginia Tech.
All rights reserved.
SEE LICENSE FOR MORE INFORMATION
Author: Middleware Services
Email: [email protected]
Version: $Revision: 2885 $
Updated: $Date: 2014-02-05 16:28:49 -0500 (Wed, 05 Feb 2014) $
*/
package org.ldaptive.extended;
import java.nio.ByteBuffer;
import org.ldaptive.asn1.OctetStringType;
/**
* Contains the response from an ldap who am i operation. See RFC 4532.
*
* @author Middleware Services
* @version $Revision: 2885 $ $Date: 2014-02-05 16:28:49 -0500 (Wed, 05 Feb 2014) $
*/
public class WhoAmIResponse extends AbstractExtendedResponse
{
/** {@inheritDoc} */
@Override
public String getOID()
{
// RFC defines the response name as absent
return null;
}
/** {@inheritDoc} */
@Override
public void decode(final byte[] encoded)
{
setValue(OctetStringType.decode(ByteBuffer.wrap(encoded)));
}
/** {@inheritDoc} */
@Override
public String toString()
{
return String.format("[%s@%d]", getClass().getName(), hashCode());
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy