public class CertRequest extends java.lang.Object implements ASN1Type
CertRequest ::= SEQUENCE {
certReqId INTEGER, -- ID for matching request and reply
certTemplate CertTemplate, -- Selected fields of cert to be issued
controls Controls OPTIONAL } -- Attributes affecting issuance
}
| Constructor and Description |
|---|
CertRequest(ASN1Object obj)
Creates a
CertRequest object from an ASN1Object. |
CertRequest(java.math.BigInteger certReqId,
CertTemplate certTemplate)
Creates a new
CertRequest object with the specified
components. |
| Modifier and Type | Method and Description |
|---|---|
void |
decode(ASN1Object obj)
Decodes a CertRequest structure from an
ASN1Object. |
java.math.BigInteger |
getCertReqId()
Returns the certificate request ID.
|
CertTemplate |
getCertTemplate()
Returns the certificate template.
|
Controls |
getControls()
Returns the controls if they has be set; otherwise
null is
returned. |
void |
setControls(Controls controls)
Sets the controls value this object contains.
|
ASN1Object |
toASN1Object()
Encodes this
CertRequest as an ASN1Object. |
java.lang.String |
toString()
Creates a text representation of the ASN.1 structure of this
CertRequest object. |
public CertRequest(java.math.BigInteger certReqId,
CertTemplate certTemplate)
CertRequest object with the specified
components.certReqId - ID from matching request and replycertTemplate - selected fields of the certificate being requestedpublic CertRequest(ASN1Object obj) throws CodingException
CertRequest object from an ASN1Object.obj - the ASN.1 representation of a CertRequest structureCodingException - thrown if an errors occurs while decoding the ANS1Objectpublic java.math.BigInteger getCertReqId()
public CertTemplate getCertTemplate()
public Controls getControls()
null is
returned.public void setControls(Controls controls)
controls - the controls componentpublic void decode(ASN1Object obj) throws CodingException
ASN1Object.decode in interface ASN1Typeobj - an ASN.1 representation of a CertRequest structureCodingException - thrown if an errors occurs while decoding the ANS1Objectpublic ASN1Object toASN1Object()
CertRequest as an ASN1Object.toASN1Object in interface ASN1Typepublic java.lang.String toString()
CertRequest object.toString in class java.lang.Object