org.apache.directory.api.ldap.extras.extended
Class CertGenerationRequestImpl

java.lang.Object
  extended by org.apache.directory.api.ldap.model.message.AbstractMessage
      extended by org.apache.directory.api.ldap.model.message.AbstractRequest
          extended by org.apache.directory.api.ldap.model.message.AbstractExtendedRequest<CertGenerationResponse>
              extended by org.apache.directory.api.ldap.extras.extended.CertGenerationRequestImpl
All Implemented Interfaces:
CertGenerationRequest, org.apache.directory.api.ldap.model.message.ExtendedRequest<CertGenerationResponse>, org.apache.directory.api.ldap.model.message.Message, org.apache.directory.api.ldap.model.message.Request, org.apache.directory.api.ldap.model.message.ResultResponseRequest<CertGenerationResponse>, org.apache.directory.api.ldap.model.message.SingleReplyRequest<CertGenerationResponse>

public class CertGenerationRequestImpl
extends org.apache.directory.api.ldap.model.message.AbstractExtendedRequest<CertGenerationResponse>
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.AbstractExtendedRequest
response
 
Fields inherited from class org.apache.directory.api.ldap.model.message.AbstractMessage
controls
 
Fields inherited from interface org.apache.directory.api.ldap.extras.extended.CertGenerationRequest
EXTENSION_OID
 
Fields inherited from interface org.apache.directory.api.ldap.model.message.ExtendedRequest
RESP_TYPE, TYPE
 
Constructor Summary
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
 String getIssuerDN()
          
 String getKeyAlgorithm()
          
 CertGenerationResponse getResultResponse()
           
 String getSubjectDN()
          
 String getTargetDN()
          
 void setIssuerDN(String issuerDN)
          
 void setKeyAlgorithm(String keyAlgorithm)
          
 void setSubjectDN(String subjectDN)
          
 void setTargetDN(String targetDN)
          
 String toString()
           
 
Methods inherited from class org.apache.directory.api.ldap.model.message.AbstractExtendedRequest
addAllControls, addControl, equals, getRequestName, getResponseType, hashCode, removeControl, setMessageId, setRequestName
 
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.SingleReplyRequest
getResponseType
 
Methods inherited from interface org.apache.directory.api.ldap.model.message.Request
hasResponse
 
Methods inherited from interface org.apache.directory.api.ldap.model.message.Message
get, getControl, getControls, getMessageId, getType, hasControl, put
 

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

getTargetDN

public String getTargetDN()

Specified by:
getTargetDN in interface CertGenerationRequest

setTargetDN

public void setTargetDN(String targetDN)

Specified by:
setTargetDN in interface CertGenerationRequest

getIssuerDN

public String getIssuerDN()

Specified by:
getIssuerDN in interface CertGenerationRequest

setIssuerDN

public void setIssuerDN(String issuerDN)

Specified by:
setIssuerDN in interface CertGenerationRequest

getSubjectDN

public String getSubjectDN()

Specified by:
getSubjectDN in interface CertGenerationRequest

setSubjectDN

public void setSubjectDN(String subjectDN)

Specified by:
setSubjectDN in interface CertGenerationRequest

getKeyAlgorithm

public String getKeyAlgorithm()

Specified by:
getKeyAlgorithm in interface CertGenerationRequest

setKeyAlgorithm

public void setKeyAlgorithm(String keyAlgorithm)

Specified by:
setKeyAlgorithm in interface CertGenerationRequest

getResultResponse

public CertGenerationResponse getResultResponse()
Specified by:
getResultResponse in interface org.apache.directory.api.ldap.model.message.ResultResponseRequest<CertGenerationResponse>
Overrides:
getResultResponse in class org.apache.directory.api.ldap.model.message.AbstractExtendedRequest<CertGenerationResponse>

toString

public String toString()
Overrides:
toString in class org.apache.directory.api.ldap.model.message.AbstractExtendedRequest<CertGenerationResponse>


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.