public class CertGenerationFactory extends Object implements ExtendedOperationFactory
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 |
---|---|
CertGenerationRequestDecorator |
decorate(ExtendedRequest modelRequest)
Decorates a non-decorated request.
|
CertGenerationResponseDecorator |
decorate(ExtendedResponse decoratedMessage)
Decorates an ExtendedResponse which may or may not be of the expected
type.
|
String |
getOid()
Gets the OID of the extended requests this factory generates.
|
CertGenerationRequest |
newRequest(byte[] value)
Returns a new
ExtendedRequestDecorator with the following encoded value. |
CertGenerationResponse |
newResponse(byte[] encodedValue)
Creates a new ExtendedResponse, for the ExtendedRequest with a specific
encoded value.
|
public CertGenerationFactory(LdapApiService codec)
codec
- The codec for this factory.public String getOid()
getOid
in interface ExtendedOperationFactory
public CertGenerationResponse newResponse(byte[] encodedValue) throws DecoderException
newResponse
in interface ExtendedOperationFactory
encodedValue
- The encoded value for the ExtendedResponse instance.DecoderException
- If we can't decode the responsepublic CertGenerationRequest newRequest(byte[] value)
ExtendedRequestDecorator
with the following encoded value.newRequest
in interface ExtendedOperationFactory
value
- the encoded valuepublic CertGenerationRequestDecorator decorate(ExtendedRequest modelRequest)
decorate
in interface ExtendedOperationFactory
modelRequest
- the non decorated model requestpublic CertGenerationResponseDecorator decorate(ExtendedResponse decoratedMessage)
decorate
in interface ExtendedOperationFactory
decoratedMessage
- the message to be decorated.Copyright © 2003–2018 The Apache Software Foundation. All rights reserved.