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.model.message.OpaqueExtendedRequest
-
- org.apache.directory.api.ldap.extras.extended.certGeneration.CertGenerationRequestImpl
-
- All Implemented Interfaces:
CertGenerationRequest,ExtendedRequest,Message,Request,ResultResponseRequest,SingleReplyRequest
public class CertGenerationRequestImpl extends OpaqueExtendedRequest 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 class org.apache.directory.api.ldap.model.message.OpaqueExtendedRequest
response
-
Fields inherited from class org.apache.directory.api.ldap.model.message.AbstractExtendedRequest
oid
-
Fields inherited from class org.apache.directory.api.ldap.model.message.AbstractMessage
controls
-
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 StringgetIssuerDN()StringgetKeyAlgorithm()CertGenerationResponsegetResultResponse()The result containing response for this request.StringgetSubjectDN()StringgetTargetDN()Get the Target DN for the certificate storagevoidsetIssuerDN(String issuerDN)Sets the issuer's DNvoidsetKeyAlgorithm(String keyAlgorithm)Sets the Key algorithmvoidsetSubjectDN(String subjectDN)Sets the subect's DNvoidsetTargetDN(String targetDN)Sets the target DNStringtoString()Get a String representation of an Extended Request-
Methods inherited from class org.apache.directory.api.ldap.model.message.OpaqueExtendedRequest
addAllControls, addControl, equals, getExtendedResponse, getRequestName, getRequestValue, getResponseType, hashCode, removeControl, setMessageId, setRequestName, setRequestValue
-
Methods inherited from class org.apache.directory.api.ldap.model.message.AbstractExtendedRequest
getResponse, 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 class java.lang.Object
clone, finalize, getClass, 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
-
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:
getTargetDNin interfaceCertGenerationRequest- Returns:
- The target DN
-
setTargetDN
public void setTargetDN(String targetDN)
Sets the target DN- Specified by:
setTargetDNin interfaceCertGenerationRequest- Parameters:
targetDN- The target DN
-
getIssuerDN
public String getIssuerDN()
- Specified by:
getIssuerDNin interfaceCertGenerationRequest- Returns:
- The issuer's DN
-
setIssuerDN
public void setIssuerDN(String issuerDN)
Sets the issuer's DN- Specified by:
setIssuerDNin interfaceCertGenerationRequest- Parameters:
issuerDN- the issuer's DN
-
getSubjectDN
public String getSubjectDN()
- Specified by:
getSubjectDNin interfaceCertGenerationRequest- Returns:
- The subect's DN
-
setSubjectDN
public void setSubjectDN(String subjectDN)
Sets the subect's DN- Specified by:
setSubjectDNin interfaceCertGenerationRequest- Parameters:
subjectDN- The subect's DN
-
getKeyAlgorithm
public String getKeyAlgorithm()
- Specified by:
getKeyAlgorithmin interfaceCertGenerationRequest- Returns:
- The Key algorithm
-
setKeyAlgorithm
public void setKeyAlgorithm(String keyAlgorithm)
Sets the Key algorithm- Specified by:
setKeyAlgorithmin interfaceCertGenerationRequest- Parameters:
keyAlgorithm- The Key algorithm
-
getResultResponse
public CertGenerationResponse getResultResponse()
The result containing response for this request.- Specified by:
getResultResponsein interfaceResultResponseRequest- Overrides:
getResultResponsein classOpaqueExtendedRequest- Returns:
- the result containing response for this request
-
toString
public String toString()
Get a String representation of an Extended Request- Overrides:
toStringin classOpaqueExtendedRequest- Returns:
- an Extended Request String
-
-