@PublicAPI(stability=UNCOMMITTED, mayInstantiate=true, mayExtend=true, mayInvoke=true) public abstract class Control extends Object implements Control
Modifier and Type | Class and Description |
---|---|
static interface |
Control.RemoveOnceControlIsMigrated
Marker annotation.
|
Modifier | Constructor and Description |
---|---|
protected |
Control(String oid,
boolean isCritical)
Creates a new control with no value.
|
Modifier and Type | Method and Description |
---|---|
String |
getOid()
Retrieves the OID for this control.
|
ByteString |
getValue()
Returns the value, if any, associated with this control.
|
protected ByteString |
getValueAdapter()
This method can be used by subclasses to implement
Control.getValue() . |
boolean |
isCritical()
Indicates whether this control should be considered critical in processing the request.
|
String |
toString()
Retrieves a string representation of this control.
|
void |
toString(StringBuilder buffer)
Appends a string representation of this control to the provided buffer.
|
void |
write(Asn1Writer writer)
Writes this control to an ASN.1 writer.
|
protected abstract void |
writeValue(Asn1Writer writer)
Writes this control's value to an ASN.1 writer.
|
protected Control(String oid, boolean isCritical)
oid
- The OID for this control.isCritical
- Indicates whether this control should be considered critical in processing the request.public final String getOid()
public final boolean isCritical()
isCritical
in interface Control
true
if this code should be considered critical, or false
if not.public final String toString()
public final void write(Asn1Writer writer) throws IOException
writer
- The ASN.1 writer to use.IOException
- If a problem occurs while writing to the stream.public ByteString getValue()
Control
protected final ByteString getValueAdapter()
Control.getValue()
.ByteString
representing the value of this controlprotected abstract void writeValue(Asn1Writer writer) throws IOException
writer
- The ASN.1 writer to use.IOException
- If a problem occurs while writing to the stream.public void toString(StringBuilder buffer)
buffer
- The buffer to which the information should be appended.Copyright 2010-2018 ForgeRock AS.