use of com.unboundid.asn1.ASN1BufferSequence in project ldapsdk by pingidentity.
the class ModifyRequest method writeTo.
/**
* {@inheritDoc}
*/
@Override()
public void writeTo(@NotNull final ASN1Buffer writer) {
final ASN1BufferSequence requestSequence = writer.beginSequence(LDAPMessage.PROTOCOL_OP_TYPE_MODIFY_REQUEST);
writer.addOctetString(dn);
final ASN1BufferSequence modSequence = writer.beginSequence();
for (final Modification m : modifications) {
m.writeTo(writer);
}
modSequence.end();
requestSequence.end();
}
use of com.unboundid.asn1.ASN1BufferSequence in project ldapsdk by pingidentity.
the class Modification method writeTo.
/**
* Writes an ASN.1-encoded representation of this modification to the provided
* ASN.1 buffer.
*
* @param buffer The ASN.1 buffer to which the encoded representation should
* be written.
*/
public void writeTo(@NotNull final ASN1Buffer buffer) {
final ASN1BufferSequence modSequence = buffer.beginSequence();
buffer.addEnumerated(modificationType.intValue());
final ASN1BufferSequence attrSequence = buffer.beginSequence();
buffer.addOctetString(attributeName);
final ASN1BufferSet valueSet = buffer.beginSet();
for (final ASN1OctetString v : values) {
buffer.addElement(v);
}
valueSet.end();
attrSequence.end();
modSequence.end();
}
Aggregations