T
- The type of control decoded by this decoder.public interface ControlDecoder<T extends Control> extends ControlDecoder<T>
Modifier and Type | Method and Description |
---|---|
T |
decode(boolean isCritical,
ByteString value)
Decodes the provided control.
|
default T |
decodeControl(Control control,
DecodeOptions options)
Decodes the provided control as a
Control of type C . |
String |
getOid()
Gets the OID of the control decoded by this decoded.
|
default T decodeControl(Control control, DecodeOptions options) throws DecodeException
ControlDecoder
Control
of type C
.decodeControl
in interface ControlDecoder<T extends Control>
control
- The control to be decoded.options
- The set of decode options which should be used when decoding
the control.DecodeException
- If the control contained the wrong OID, it did not have a
value, or if its value could not be decoded.T decode(boolean isCritical, ByteString value) throws DirectoryException
isCritical
- Indicates whether the control should be considered critical.value
- The value for the control.DirectoryException
- If the control could not be decoded.String getOid()
getOid
in interface ControlDecoder<T extends Control>
Copyright 2010-2020 ForgeRock AS.