public final class InternalModificationsRequestControl extends Control implements Control
Legacy ModifyDNOperation
class allow to provide modifications to perform along with the DN modification. As
it is not possible to do this with a ModifyDnRequest
, this control can be used for this purpose.
Control.RemoveOnceControlIsMigrated
Modifier and Type | Field and Description |
---|---|
static ControlDecoder<InternalModificationsRequestControl> |
DECODER
The Control Decoder that can be used to decode this control.
|
static String |
OID
OID for the internal modifications control.
|
static ControlDecoder<InternalModificationsRequestControl> |
SDK_DECODER
The Control Decoder that can be used to decode this control.
|
Constructor and Description |
---|
InternalModificationsRequestControl(boolean isCritical,
String origin,
List<Modification> mods)
Constructs a new control.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
List<Modification> |
getModifications()
Returns the modifications to perform.
|
String |
getOrigin()
Returns the origin of the modifications.
|
ByteString |
getValue()
Returns the value, if any, associated with this control.
|
int |
hashCode() |
boolean |
hasValue()
Returns
true if this control has a value. |
protected void |
writeValue(Asn1Writer writer)
Writes this control's value to an ASN.1 writer.
|
getOid, getValueAdapter, isCritical, toString, toString, write
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getOid, isCritical
public static final String OID
public static final ControlDecoder<InternalModificationsRequestControl> DECODER
public static final ControlDecoder<InternalModificationsRequestControl> SDK_DECODER
public InternalModificationsRequestControl(boolean isCritical, String origin, List<Modification> mods)
isCritical
- Indicates whether support for this control should be considered a critical part of the server
processing.origin
- the non-null
origin of the modifications.mods
- the non-null
modifications to perform.public ByteString getValue()
Control
protected void writeValue(Asn1Writer writer) throws IOException
Control
writeValue
in class Control
writer
- The ASN.1 writer to use.IOException
- If a problem occurs while writing to the stream.public boolean hasValue()
Control
true
if this control has a value. In some circumstances
it may be useful to determine if a control has a value, without actually
calculating the value and incurring any performance costs.public List<Modification> getModifications()
null
modificationspublic String getOrigin()
null
origin of the modificationsCopyright 2010-2018 ForgeRock AS.