Class CertGenerationRequestImpl
- java.lang.Object
-
- org.apache.directory.api.ldap.model.message.AbstractMessage
-
- org.apache.directory.api.ldap.model.message.AbstractRequest
-
- org.apache.directory.api.ldap.model.message.AbstractExtendedRequest
-
- org.apache.directory.api.ldap.extras.extended.certGeneration.CertGenerationRequestImpl
-
- All Implemented Interfaces:
CertGenerationRequest
,ExtendedRequest
,Message
,Request
,ResultResponseRequest
,SingleReplyRequest
public class CertGenerationRequestImpl extends AbstractExtendedRequest implements CertGenerationRequest
An extended operation requesting the server to generate a public/private key pair and a certificate and store them in a specified target entry in the DIT.- 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 CertGenerationRequestImpl()
Creates a new instance of CertGenerationRequest.CertGenerationRequestImpl(int messageId, String targerDN, String issuerDN, String subjectDN, String keyAlgorithm)
Creates a new instance of CertGenerationRequest.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getIssuerDN()
String
getKeyAlgorithm()
CertGenerationResponse
getResultResponse()
The result containing response 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
setSubjectDN(String subjectDN)
Sets the subect's DNvoid
setTargetDN(String targetDN)
Sets the target DNString
toString()
Get a String representation of an Extended Request-
Methods inherited from class org.apache.directory.api.ldap.model.message.AbstractExtendedRequest
addAllControls, addControl, equals, getRequestName, getResponse, getResponseType, hashCode, removeControl, setMessageId, setRequestName, setResponse
-
Methods inherited from class org.apache.directory.api.ldap.model.message.AbstractRequest
hasResponse
-
Methods inherited from class org.apache.directory.api.ldap.model.message.AbstractMessage
get, getControl, getControls, getMessageId, getType, hasControl, put, toString
-
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
-
CertGenerationRequestImpl
public CertGenerationRequestImpl(int messageId, String targerDN, String issuerDN, String subjectDN, String keyAlgorithm)
Creates a new instance of CertGenerationRequest.- Parameters:
messageId
- the message idtargerDN
- the Dn of target entry whose key and certificate values will be changedissuerDN
- Dn to be used as the issuer's Dn in the certificatesubjectDN
- Dn to be used as certificate's subjectkeyAlgorithm
- crypto algorithm name to be used for generating the keys
-
CertGenerationRequestImpl
public CertGenerationRequestImpl()
Creates a new instance of CertGenerationRequest.
-
-
Method Detail
-
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
-
getResultResponse
public CertGenerationResponse getResultResponse()
The result containing response for this request.- Specified by:
getResultResponse
in interfaceResultResponseRequest
- Specified by:
getResultResponse
in classAbstractExtendedRequest
- Returns:
- the result containing response for this request
-
toString
public String toString()
Get a String representation of an Extended Request- Overrides:
toString
in classAbstractExtendedRequest
- Returns:
- an Extended Request String
-
-