public class CertGenerationFactory extends AbstractExtendedOperationFactory
ExtendedOperationFactory
for creating certificate generation extended request response
pairs.Constructor and Description |
---|
CertGenerationFactory(LdapApiService codec)
Creates a new instance of CertGenerationFactory.
|
Modifier and Type | Method and Description |
---|---|
void |
decodeValue(ExtendedRequest extendedRequest,
byte[] requestValue)
Decode the value part of the extended request operation.
|
void |
encodeValue(Asn1Buffer buffer,
ExtendedRequest extendedRequest)
Encode the value part of the extended request operation.
|
CertGenerationRequest |
newRequest()
Returns a new
ExtendedRequest with no value |
CertGenerationRequest |
newRequest(byte[] encodedValue)
Returns a new
ExtendedRequest with the following encoded value. |
CertGenerationResponse |
newResponse()
Creates a new ExtendedResponse, for the ExtendedRequest with no value
|
decodeValue, encodeValue, getOid, newResponse
public CertGenerationFactory(LdapApiService codec)
codec
- The codec for this factory.public CertGenerationRequest newRequest()
ExtendedRequest
with no valuepublic CertGenerationRequest newRequest(byte[] encodedValue) throws DecoderException
ExtendedRequest
with the following encoded value.newRequest
in interface ExtendedOperationFactory
newRequest
in class AbstractExtendedOperationFactory
encodedValue
- the encoded valueDecoderException
- If we can't decode the responsepublic CertGenerationResponse newResponse()
public void decodeValue(ExtendedRequest extendedRequest, byte[] requestValue) throws DecoderException
decodeValue
in interface ExtendedOperationFactory
decodeValue
in class AbstractExtendedOperationFactory
extendedRequest
- The ExtendedRequest Operation to feedrequestValue
- The request value to decodeDecoderException
- If the value cannot be decodedpublic void encodeValue(Asn1Buffer buffer, ExtendedRequest extendedRequest)
encodeValue
in interface ExtendedOperationFactory
encodeValue
in class AbstractExtendedOperationFactory
buffer
- The buffer into which to put the encoded valueextendedRequest
- The ExtendedRequest Operation to encodeCopyright © 2003–2020 The Apache Software Foundation. All rights reserved.