Class CertGenerationRequestDecorator
- java.lang.Object
-
- org.apache.directory.api.ldap.codec.api.MessageDecorator<M>
-
- org.apache.directory.api.ldap.codec.decorators.RequestDecorator<M>
-
- org.apache.directory.api.ldap.codec.decorators.ResultResponseRequestDecorator<M>
-
- org.apache.directory.api.ldap.codec.decorators.SingleReplyRequestDecorator<Q>
-
- org.apache.directory.api.ldap.codec.decorators.ExtendedRequestDecorator<CertGenerationRequest>
-
- org.apache.directory.api.ldap.extras.extended.ads_impl.certGeneration.CertGenerationRequestDecorator
-
- All Implemented Interfaces:
Asn1Object
,Decorator<CertGenerationRequest>
,CertGenerationRequest
,AbandonableRequest
,ExtendedRequest
,Message
,Request
,ResultResponseRequest
,SingleReplyRequest
public class CertGenerationRequestDecorator extends ExtendedRequestDecorator<CertGenerationRequest> implements CertGenerationRequest
A Decorator for certificate generation extended request.- Author:
- Apache Directory Project
-
-
Field Summary
-
Fields inherited from interface org.apache.directory.api.ldap.extras.extended.certGeneration.CertGenerationRequest
EXTENSION_OID
-
-
Constructor Summary
Constructors Constructor Description CertGenerationRequestDecorator(LdapApiService codec, CertGenerationRequest decoratedMessage)
Creates a new instance of CertGenerationRequestDecorator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CertGenerationRequest
getCertGenerationRequest()
String
getIssuerDN()
String
getKeyAlgorithm()
byte[]
getRequestValue()
Gets the Extended request payloadCertGenerationResponse
getResultResponse()
If called for the first time, this method creates a result containing response object for this request.String
getSubjectDN()
String
getTargetDN()
Get the Target DN for the certificate storagevoid
setIssuerDN(String issuerDN)
Sets the issuer's DNvoid
setKeyAlgorithm(String keyAlgorithm)
Sets the Key algorithmvoid
setRequestValue(byte[] requestValue)
sets the Extended request payloadvoid
setSubjectDN(String subjectDN)
Sets the subect's DNvoid
setTargetDN(String targetDN)
Sets the target DN-
Methods inherited from class org.apache.directory.api.ldap.codec.decorators.ExtendedRequestDecorator
addAllControls, addControl, computeLength, encode, getRequestName, removeControl, setMessageId, setRequestName
-
Methods inherited from class org.apache.directory.api.ldap.codec.decorators.SingleReplyRequestDecorator
abandon, addAbandonListener, getResponseType, isAbandoned
-
Methods inherited from class org.apache.directory.api.ldap.codec.decorators.ResultResponseRequestDecorator
hasResponse
-
Methods inherited from class org.apache.directory.api.ldap.codec.api.MessageDecorator
get, getCodecService, getControl, getControls, getControlsLength, getCurrentControl, getDecorated, getDecorator, getMessageId, getMessageLength, getType, hasControl, put, setControlsLength, setMessageLength, toString
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.directory.api.ldap.model.message.ExtendedRequest
addAllControls, addControl, getRequestName, removeControl, setMessageId, setRequestName
-
Methods inherited from interface org.apache.directory.api.ldap.model.message.Message
get, getControl, getControls, getMessageId, getType, hasControl, put
-
Methods inherited from interface org.apache.directory.api.ldap.model.message.Request
hasResponse
-
Methods inherited from interface org.apache.directory.api.ldap.model.message.SingleReplyRequest
getResponseType
-
-
-
-
Constructor Detail
-
CertGenerationRequestDecorator
public CertGenerationRequestDecorator(LdapApiService codec, CertGenerationRequest decoratedMessage)
Creates a new instance of CertGenerationRequestDecorator.- Parameters:
codec
- The LDAP Service to usedecoratedMessage
- The certificate generation request
-
-
Method Detail
-
getCertGenerationRequest
public CertGenerationRequest getCertGenerationRequest()
- Returns:
- The certificate generation request
-
setRequestValue
public void setRequestValue(byte[] requestValue)
sets the Extended request payload- Overrides:
setRequestValue
in classExtendedRequestDecorator<CertGenerationRequest>
- Parameters:
requestValue
- The extended payload
-
getRequestValue
public byte[] getRequestValue()
Gets the Extended request payload- Overrides:
getRequestValue
in classExtendedRequestDecorator<CertGenerationRequest>
- Returns:
- The extended payload
-
getResultResponse
public CertGenerationResponse getResultResponse()
If called for the first time, this method creates a result containing response object for this request.- Specified by:
getResultResponse
in interfaceResultResponseRequest
- Overrides:
getResultResponse
in classResultResponseRequestDecorator<CertGenerationRequest>
- Returns:
- a result containing response with defaults and the messageId set in response to this specific request
-
getTargetDN
public String getTargetDN()
Get the Target DN for the certificate storage- Specified by:
getTargetDN
in interfaceCertGenerationRequest
- Returns:
- The target DN
-
setTargetDN
public void setTargetDN(String targetDN)
Sets the target DN- Specified by:
setTargetDN
in interfaceCertGenerationRequest
- Parameters:
targetDN
- The target DN
-
getIssuerDN
public String getIssuerDN()
- Specified by:
getIssuerDN
in interfaceCertGenerationRequest
- Returns:
- The issuer's DN
-
setIssuerDN
public void setIssuerDN(String issuerDN)
Sets the issuer's DN- Specified by:
setIssuerDN
in interfaceCertGenerationRequest
- Parameters:
issuerDN
- the issuer's DN
-
getSubjectDN
public String getSubjectDN()
- Specified by:
getSubjectDN
in interfaceCertGenerationRequest
- Returns:
- The subect's DN
-
setSubjectDN
public void setSubjectDN(String subjectDN)
Sets the subect's DN- Specified by:
setSubjectDN
in interfaceCertGenerationRequest
- Parameters:
subjectDN
- The subect's DN
-
getKeyAlgorithm
public String getKeyAlgorithm()
- Specified by:
getKeyAlgorithm
in interfaceCertGenerationRequest
- Returns:
- The Key algorithm
-
setKeyAlgorithm
public void setKeyAlgorithm(String keyAlgorithm)
Sets the Key algorithm- Specified by:
setKeyAlgorithm
in interfaceCertGenerationRequest
- Parameters:
keyAlgorithm
- The Key algorithm
-
-