public interface ExtendedOperationFactory
Modifier and Type | Method and Description |
---|---|
void |
decodeValue(ExtendedRequest extendedRequest,
byte[] requestValue)
Decode the value part of the extended request operation.
|
void |
decodeValue(ExtendedResponse extendedResponse,
byte[] responseValue)
Decode the value part of the extended response operation.
|
void |
encodeValue(Asn1Buffer buffer,
ExtendedRequest extendedRequest)
Encode the value part of the extended request operation.
|
void |
encodeValue(Asn1Buffer buffer,
ExtendedResponse extendedResponse)
Encode the value part of the extended response operation.
|
String |
getOid()
Gets the OID of the extended requests this factory generates.
|
ExtendedRequest |
newRequest()
Returns a new
ExtendedRequest with no value |
ExtendedRequest |
newRequest(byte[] value)
Returns a new
ExtendedRequest with the following encoded value. |
ExtendedResponse |
newResponse()
Creates a new ExtendedResponse, for the ExtendedRequest with no value
|
ExtendedResponse |
newResponse(byte[] encodedValue)
Creates a new ExtendedResponse, for the ExtendedRequest with a specific
encoded value.
|
String getOid()
ExtendedRequest newRequest()
ExtendedRequest
with no valueExtendedRequest newRequest(byte[] value) throws DecoderException
ExtendedRequest
with the following encoded value.value
- the encoded valueDecoderException
- If we can't decode the responseExtendedResponse newResponse() throws DecoderException
DecoderException
- If the response cannot be decodedExtendedResponse newResponse(byte[] encodedValue) throws DecoderException
encodedValue
- The encoded value for the ExtendedResponse instance.DecoderException
- If we can't decode the responsevoid encodeValue(Asn1Buffer buffer, ExtendedRequest extendedRequest)
buffer
- The buffer into which to put the encoded valueextendedRequest
- The ExtendedRequest Operation to encodevoid decodeValue(ExtendedRequest extendedRequest, byte[] requestValue) throws DecoderException
extendedRequest
- The ExtendedRequest Operation to feedrequestValue
- The request value to decodeDecoderException
- If the value cannot be decodedvoid encodeValue(Asn1Buffer buffer, ExtendedResponse extendedResponse)
buffer
- The buffer into which to put the encoded valueextendedResponse
- The ExtendedResponse Operation to encodevoid decodeValue(ExtendedResponse extendedResponse, byte[] responseValue) throws DecoderException
extendedResponse
- The ExtendedResponse Operation to feedresponseValue
- The response value to decodeDecoderException
- If the value cannot be decodedCopyright © 2003–2020 The Apache Software Foundation. All rights reserved.