public class CertReqMsg extends java.lang.Object implements ASN1Type
CertReqMsg ::= SEQUENCE {
certReq CertRequest,
pop ProofOfPossession OPTIONAL,
-- content depends upon key type
regInfo SEQUENCE SIZE(1..MAX) OF AttributeTypeAndValue OPTIONAL
}
Currently implementations exist for the following regInfos which are considered the "known-regInfos":
| Constructor and Description |
|---|
CertReqMsg(ASN1Object obj)
Creates a
CertReqMsg object from an ASN1Object. |
CertReqMsg(CertRequest certReq)
Creates a new
CertReqMsg object with the specified component. |
| Modifier and Type | Method and Description |
|---|---|
void |
addRegInfo(AttributeTypeAndValue regInfo)
Adds the specified regInfo.
|
int |
countRegInfos()
Returns the number of regInfos the object holds.
|
void |
decode(ASN1Object obj)
Decodes a CertReqMsg structure from an
ASN1Object. |
CertRequest |
getCertReq()
Returns the certificate request.
|
ProofOfPossession |
getPOP()
Returns the proof-of-possession if it has been set; otherwise
null is returned. |
AttributeTypeAndValue[] |
getRegInfo()
Returns all the supplementary registration information this object
contains as an array of
AttribyteTypeAndValue objects. |
void |
removePop()
Removes the proof-of-possession value this object contains.
|
void |
setPOP(ProofOfPossession pop)
Sets the proof-of-possession value this object contains.
|
ASN1Object |
toASN1Object()
Encodes this
CertReqMsg as an ASN1Object. |
java.lang.String |
toString()
Creates a text representation of the ASN.1 structure of this
CertReqMsg object. |
public CertReqMsg(CertRequest certReq)
CertReqMsg object with the specified component.certReq - a certificate requestpublic CertReqMsg(ASN1Object obj) throws CodingException
CertReqMsg object from an ASN1Object.obj - the ASN.1 representation of a CertReqMsg structureCodingException - thrown if an errors occurs while decoding the ANS1Objectpublic CertRequest getCertReq()
public ProofOfPossession getPOP()
null is returned.public AttributeTypeAndValue[] getRegInfo()
AttribyteTypeAndValue objects. The
regInfos that are unknown-regInfos will be returned as
AttributeTypeAndValue objects; known-regInfos will be
returned as their appropriate regInfo objects.public void setPOP(ProofOfPossession pop)
pop - the proof-of-possession componentpublic void removePop()
public int countRegInfos()
public void addRegInfo(AttributeTypeAndValue regInfo)
regInfo - the regInfo to be addedpublic void decode(ASN1Object obj) throws CodingException
ASN1Object.decode in interface ASN1Typeobj - an ASN.1 representation of a CertReqMsg structureCodingException - thrown if an errors occurs while decoding the ANS1Objectpublic ASN1Object toASN1Object()
CertReqMsg as an ASN1Object.toASN1Object in interface ASN1Typepublic java.lang.String toString()
CertReqMsg object.toString in class java.lang.Object