public class CertGenerationRequestDecorator
extends org.apache.directory.api.ldap.codec.decorators.ExtendedRequestDecorator<org.apache.directory.api.ldap.extras.extended.certGeneration.CertGenerationRequest>
implements org.apache.directory.api.ldap.extras.extended.certGeneration.CertGenerationRequest
| Modifier and Type | Field and Description |
|---|---|
private org.apache.directory.api.ldap.extras.extended.certGeneration.CertGenerationRequest |
certGenerationRequest |
private static org.slf4j.Logger |
LOG |
private int |
requestLength
stores the length of the request
|
| Constructor and Description |
|---|
CertGenerationRequestDecorator(org.apache.directory.api.ldap.codec.api.LdapApiService codec,
org.apache.directory.api.ldap.extras.extended.certGeneration.CertGenerationRequest decoratedMessage)
Creates a new instance of CertGenerationRequestDecorator.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) int |
computeLengthInternal()
Compute the CertGenerationRequest length
|
(package private) ByteBuffer |
encodeInternal()
Encodes the CertGenerationRequest extended operation.
|
org.apache.directory.api.ldap.extras.extended.certGeneration.CertGenerationRequest |
getCertGenerationRequest() |
String |
getIssuerDN() |
String |
getKeyAlgorithm() |
byte[] |
getRequestValue() |
org.apache.directory.api.ldap.extras.extended.certGeneration.CertGenerationResponse |
getResultResponse() |
String |
getSubjectDN() |
String |
getTargetDN() |
void |
setIssuerDN(String issuerDN) |
void |
setKeyAlgorithm(String keyAlgorithm) |
void |
setRequestValue(byte[] requestValue) |
void |
setSubjectDN(String subjectDN) |
void |
setTargetDN(String targetDN) |
addAllControls, addControl, computeLength, encode, getRequestName, removeControl, setMessageId, setRequestNameabandon, addAbandonListener, getResponseType, isAbandonedhasResponseget, getCodecService, getControl, getControls, getControlsLength, getCurrentControl, getDecorated, getDecorator, getMessageId, getMessageLength, getType, hasControl, put, setControlsLength, setMessageLength, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddAllControls, addControl, getRequestName, removeControl, setMessageId, setRequestNameprivate static final org.slf4j.Logger LOG
private org.apache.directory.api.ldap.extras.extended.certGeneration.CertGenerationRequest certGenerationRequest
private int requestLength
public CertGenerationRequestDecorator(org.apache.directory.api.ldap.codec.api.LdapApiService codec,
org.apache.directory.api.ldap.extras.extended.certGeneration.CertGenerationRequest decoratedMessage)
codec - The LDAP Service to usedecoratedMessage - The certificate generation requestpublic org.apache.directory.api.ldap.extras.extended.certGeneration.CertGenerationRequest getCertGenerationRequest()
public void setRequestValue(byte[] requestValue)
setRequestValue in class org.apache.directory.api.ldap.codec.decorators.ExtendedRequestDecorator<org.apache.directory.api.ldap.extras.extended.certGeneration.CertGenerationRequest>public byte[] getRequestValue()
getRequestValue in class org.apache.directory.api.ldap.codec.decorators.ExtendedRequestDecorator<org.apache.directory.api.ldap.extras.extended.certGeneration.CertGenerationRequest>public org.apache.directory.api.ldap.extras.extended.certGeneration.CertGenerationResponse getResultResponse()
getResultResponse in interface org.apache.directory.api.ldap.model.message.ResultResponseRequestgetResultResponse in class org.apache.directory.api.ldap.codec.decorators.ResultResponseRequestDecorator<org.apache.directory.api.ldap.extras.extended.certGeneration.CertGenerationRequest>public String getTargetDN()
getTargetDN in interface org.apache.directory.api.ldap.extras.extended.certGeneration.CertGenerationRequestpublic void setTargetDN(String targetDN)
setTargetDN in interface org.apache.directory.api.ldap.extras.extended.certGeneration.CertGenerationRequestpublic String getIssuerDN()
getIssuerDN in interface org.apache.directory.api.ldap.extras.extended.certGeneration.CertGenerationRequestpublic void setIssuerDN(String issuerDN)
setIssuerDN in interface org.apache.directory.api.ldap.extras.extended.certGeneration.CertGenerationRequestpublic String getSubjectDN()
getSubjectDN in interface org.apache.directory.api.ldap.extras.extended.certGeneration.CertGenerationRequestpublic void setSubjectDN(String subjectDN)
setSubjectDN in interface org.apache.directory.api.ldap.extras.extended.certGeneration.CertGenerationRequestpublic String getKeyAlgorithm()
getKeyAlgorithm in interface org.apache.directory.api.ldap.extras.extended.certGeneration.CertGenerationRequestpublic void setKeyAlgorithm(String keyAlgorithm)
setKeyAlgorithm in interface org.apache.directory.api.ldap.extras.extended.certGeneration.CertGenerationRequestint computeLengthInternal()
0x30 L1 | +--> 0x04 LL target DN +--> 0x04 LL issuer DN +--> 0x04 LL subject DN +--> 0x04 LL key algorithm
ByteBuffer encodeInternal() throws org.apache.directory.api.asn1.EncoderException
org.apache.directory.api.asn1.EncoderException - If anything goes wrong.Copyright © 2003–2018 The Apache Software Foundation. All rights reserved.