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, org.apache.directory.api.ldap.model.message.ExtendedRequest, org.apache.directory.api.ldap.model.message.Message, org.apache.directory.api.ldap.model.message.Request, org.apache.directory.api.ldap.model.message.ResultResponseRequest, org.apache.directory.api.ldap.model.message.SingleReplyRequest
public class CertGenerationRequestImpl
extends org.apache.directory.api.ldap.model.message.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
responseFields inherited from class org.apache.directory.api.ldap.model.message.AbstractExtendedRequest
oidFields inherited from class org.apache.directory.api.ldap.model.message.AbstractMessage
controlsFields inherited from interface CertGenerationRequest
EXTENSION_OID -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of CertGenerationRequest.CertGenerationRequestImpl(int messageId, String targerDN, String issuerDN, String subjectDN, String keyAlgorithm) Creates a new instance of CertGenerationRequest. -
Method Summary
Modifier and TypeMethodDescriptionGet the Issuer's DNGet the Key algorithmGet the Subect's DNGet 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 DNtoString()Methods inherited from class org.apache.directory.api.ldap.model.message.OpaqueExtendedRequest
addAllControls, addControl, equals, getExtendedResponse, getRequestName, getRequestValue, getResponseType, hashCode, removeControl, setMessageId, setRequestName, setRequestValueMethods inherited from class org.apache.directory.api.ldap.model.message.AbstractExtendedRequest
getResponse, setResponseMethods inherited from class org.apache.directory.api.ldap.model.message.AbstractRequest
hasResponseMethods inherited from class org.apache.directory.api.ldap.model.message.AbstractMessage
get, getControl, getControls, getMessageId, getType, hasControl, put, toStringMethods inherited from interface org.apache.directory.api.ldap.model.message.ExtendedRequest
addAllControls, addControl, getRequestName, removeControl, setMessageId, setRequestNameMethods inherited from interface org.apache.directory.api.ldap.model.message.Message
get, getControl, getControls, getMessageId, getType, hasControl, putMethods inherited from interface org.apache.directory.api.ldap.model.message.Request
hasResponseMethods inherited from interface org.apache.directory.api.ldap.model.message.SingleReplyRequest
getResponseType
-
Constructor Details
-
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 Details
-
getTargetDN
Get the Target DN for the certificate storage- Specified by:
getTargetDNin interfaceCertGenerationRequest- Returns:
- The target DN
-
setTargetDN
Sets the target DN- Specified by:
setTargetDNin interfaceCertGenerationRequest- Parameters:
targetDN- The target DN
-
getIssuerDN
Get the Issuer's DN- Specified by:
getIssuerDNin interfaceCertGenerationRequest- Returns:
- The issuer's DN
-
setIssuerDN
Sets the issuer's DN- Specified by:
setIssuerDNin interfaceCertGenerationRequest- Parameters:
issuerDN- the issuer's DN
-
getSubjectDN
Get the Subect's DN- Specified by:
getSubjectDNin interfaceCertGenerationRequest- Returns:
- The subect's DN
-
setSubjectDN
Sets the subect's DN- Specified by:
setSubjectDNin interfaceCertGenerationRequest- Parameters:
subjectDN- The subect's DN
-
getKeyAlgorithm
Get the Key algorithm- Specified by:
getKeyAlgorithmin interfaceCertGenerationRequest- Returns:
- The Key algorithm
-
setKeyAlgorithm
Sets the Key algorithm- Specified by:
setKeyAlgorithmin interfaceCertGenerationRequest- Parameters:
keyAlgorithm- The Key algorithm
-
getResultResponse
- Specified by:
getResultResponsein interfaceorg.apache.directory.api.ldap.model.message.ResultResponseRequest- Overrides:
getResultResponsein classorg.apache.directory.api.ldap.model.message.OpaqueExtendedRequest
-
toString
- Overrides:
toStringin classorg.apache.directory.api.ldap.model.message.OpaqueExtendedRequest
-