public class ModifyDNRequestProtocolOp extends ProtocolOp
Constructor and Description |
---|
ModifyDNRequestProtocolOp(ByteString entryDN,
ByteString newRDN,
boolean deleteOldRDN)
Creates a new modify DN request protocol op with the provided information.
|
ModifyDNRequestProtocolOp(ByteString entryDN,
ByteString newRDN,
boolean deleteOldRDN,
ByteString newSuperior)
Creates a new modify DN request protocol op with the provided information.
|
Modifier and Type | Method and Description |
---|---|
boolean |
deleteOldRDN()
Indicates whether the current RDN value(s) should be deleted.
|
ByteString |
getEntryDN()
Retrieves the current entry DN for this modify DN request.
|
ByteString |
getNewRDN()
Retrieves the new RDN for this modify DN request.
|
ByteString |
getNewSuperior()
Retrieves the new superior DN for this modify DN request.
|
String |
getProtocolOpName()
Retrieves the name for this protocol op type.
|
byte |
getType()
Retrieves the BER type for this protocol op.
|
void |
toString(StringBuilder buffer)
Appends a string representation of this LDAP protocol op to the provided buffer.
|
void |
write(Asn1Writer stream)
Writes this protocol op to an ASN.1 output stream.
|
toString
public ModifyDNRequestProtocolOp(ByteString entryDN, ByteString newRDN, boolean deleteOldRDN)
entryDN
- The current entry DN for this modify DN request.newRDN
- The new RDN for this modify DN request.deleteOldRDN
- Indicates whether to delete the current RDN value(s).public ModifyDNRequestProtocolOp(ByteString entryDN, ByteString newRDN, boolean deleteOldRDN, ByteString newSuperior)
entryDN
- The current entry DN for this modify DN request.newRDN
- The new RDN for this modify DN request.deleteOldRDN
- Indicates whether to delete the current RDN value(s).newSuperior
- The new superior DN for this modify DN request.public ByteString getEntryDN()
public ByteString getNewRDN()
public boolean deleteOldRDN()
true
if the current RDN value(s) should be deleted, or false
if not.public ByteString getNewSuperior()
null
if none was provided.public byte getType()
ProtocolOp
getType
in class ProtocolOp
public String getProtocolOpName()
ProtocolOp
getProtocolOpName
in class ProtocolOp
public void write(Asn1Writer stream) throws IOException
ProtocolOp
write
in class ProtocolOp
stream
- The ASN.1 output stream to write to.IOException
- If a problem occurs while writing to the stream.public void toString(StringBuilder buffer)
ProtocolOp
toString
in class ProtocolOp
buffer
- The buffer to which the string should be appended.Copyright 2010-2018 ForgeRock AS.