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 control to the provided buffer.
|
void |
writeValue(org.forgerock.opendj.io.Asn1Writer stream)
Writes this control's value to an ASN.1 writer.
|
getOid, getValueAdapter, isCritical, toString, write
public 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()
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
Control
writeValue
in class Control
stream
- The ASN.1 writer to use.IOException
- If a problem occurs while writing to the stream.public void toString(StringBuilder buffer)
Control
Copyright © 2010–2017 ForgeRock AS. All rights reserved.