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

    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 CertGenerationRequest

    EXTENSION_OID
  • Constructor Summary

    Constructors
    Constructor
    Description
    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

    Modifier and Type
    Method
    Description
    Get the Issuer's DN
    Get the Key algorithm
    Get the Subect's DN
    Get the Target DN for the certificate storage
    void
    setIssuerDN(String issuerDN)
    Sets the issuer's DN
    void
    setKeyAlgorithm(String keyAlgorithm)
    Sets the Key algorithm
    void
    setSubjectDN(String subjectDN)
    Sets the subect's DN
    void
    setTargetDN(String targetDN)
    Sets the target DN

    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 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 Details

    • CertGenerationRequestImpl

      public CertGenerationRequestImpl(int messageId, String targerDN, String issuerDN, String subjectDN, String keyAlgorithm)
      Creates a new instance of CertGenerationRequest.
      Parameters:
      messageId - the message id
      targerDN - the Dn of target entry whose key and certificate values will be changed
      issuerDN - Dn to be used as the issuer's Dn in the certificate
      subjectDN - Dn to be used as certificate's subject
      keyAlgorithm - crypto algorithm name to be used for generating the keys
    • CertGenerationRequestImpl

      public CertGenerationRequestImpl()
      Creates a new instance of CertGenerationRequest.
  • Method Details

    • getTargetDN

      public String getTargetDN()
      Get the Target DN for the certificate storage
      Specified by:
      getTargetDN in interface CertGenerationRequest
      Returns:
      The target DN
    • setTargetDN

      public void setTargetDN(String targetDN)
      Sets the target DN
      Specified by:
      setTargetDN in interface CertGenerationRequest
      Parameters:
      targetDN - The target DN
    • getIssuerDN

      public String getIssuerDN()
      Get the Issuer's DN
      Specified by:
      getIssuerDN in interface CertGenerationRequest
      Returns:
      The issuer's DN
    • setIssuerDN

      public void setIssuerDN(String issuerDN)
      Sets the issuer's DN
      Specified by:
      setIssuerDN in interface CertGenerationRequest
      Parameters:
      issuerDN - the issuer's DN
    • getSubjectDN

      public String getSubjectDN()
      Get the Subect's DN
      Specified by:
      getSubjectDN in interface CertGenerationRequest
      Returns:
      The subect's DN
    • setSubjectDN

      public void setSubjectDN(String subjectDN)
      Sets the subect's DN
      Specified by:
      setSubjectDN in interface CertGenerationRequest
      Parameters:
      subjectDN - The subect's DN
    • getKeyAlgorithm

      public String getKeyAlgorithm()
      Get the Key algorithm
      Specified by:
      getKeyAlgorithm in interface CertGenerationRequest
      Returns:
      The Key algorithm
    • setKeyAlgorithm

      public void setKeyAlgorithm(String keyAlgorithm)
      Sets the Key algorithm
      Specified by:
      setKeyAlgorithm in interface CertGenerationRequest
      Parameters:
      keyAlgorithm - The Key algorithm
    • getResultResponse

      public CertGenerationResponse getResultResponse()
      Specified by:
      getResultResponse in interface org.apache.directory.api.ldap.model.message.ResultResponseRequest
      Overrides:
      getResultResponse in class org.apache.directory.api.ldap.model.message.OpaqueExtendedRequest
    • toString

      public String toString()
      Overrides:
      toString in class org.apache.directory.api.ldap.model.message.OpaqueExtendedRequest