public class LDAPControl extends Control
| Constructor and Description |
|---|
LDAPControl(String oid)
Creates a new LDAP control with the specified OID.
|
LDAPControl(String oid,
boolean isCritical)
Creates a new LDAP control with the specified OID and criticality.
|
LDAPControl(String oid,
boolean isCritical,
org.forgerock.opendj.ldap.ByteString value)
Creates a new LDAP control with the specified OID, criticality, and value.
|
| Modifier and Type | Method and Description |
|---|---|
org.forgerock.opendj.ldap.ByteString |
getValue()
Retrieves the value for this control.
|
boolean |
hasValue()
Indicates whether this control has a value.
|
void |
toString(StringBuilder buffer)
Appends a string representation of this LDAP control to the provided
buffer.
|
void |
toString(StringBuilder buffer,
int indent)
Appends a multi-line string representation of this LDAP control to the
provided buffer.
|
void |
writeValue(org.forgerock.opendj.io.ASN1Writer stream)
Writes this control's value to an ASN.1 writer.
|
getOID, isCritical, toString, writepublic LDAPControl(String oid)
oid - The OID for this LDAP control.public LDAPControl(String oid, boolean isCritical)
oid - The OID for this LDAP control.isCritical - Indicates whether this control should be considered
critical.public LDAPControl(String oid, boolean isCritical, org.forgerock.opendj.ldap.ByteString value)
oid - The OID for this LDAP control.isCritical - Indicates whether this control should be considered
critical.value - The value for this LDAP control.public final org.forgerock.opendj.ldap.ByteString getValue()
null if
there is no value.public final boolean hasValue()
true if this control has a value, or
false if it does not.public void writeValue(org.forgerock.opendj.io.ASN1Writer stream) throws IOException
writeValue in class Controlstream - The ASN.1 writer to use.IOException - If a problem occurs while writing to the
stream.public void toString(StringBuilder buffer)
public void toString(StringBuilder buffer, int indent)
buffer - The buffer to which the information should be appended.indent - The number of spaces to indent the information.Copyright © 2010-2015 ForgeRock AS. All Rights Reserved.