public class CertReq extends AttributeTypeAndValue implements ASN1Type
id-regInfo-certReq OBJECT IDENTIFIER ::= { id-regInfo 2 }
--with syntax
CertReq ::= CertRequest
AttributeTypeAndValue ::= SEQUENCE {
type OBJECT IDENTIFIER,
value ANY DEFINED BY type
}
| Modifier and Type | Field and Description |
|---|---|
static ObjectID |
oid
The object identifier for a CertReq regInfo.
|
m_type, m_value| Constructor and Description |
|---|
CertReq(ASN1Object obj)
Creates a new
CertReq regInfo object from an
ASN1Object. |
CertReq(CertRequest certReq)
Creates a new
CertReq regInfo object with the specified
component. |
| Modifier and Type | Method and Description |
|---|---|
void |
decode(ASN1Object obj)
Decodes an CertReq regInfo structure from an
ASN1Object. |
CertRequest |
getCertReq()
Returns the certificate request value.
|
ASN1Object |
toASN1Object()
Encodes this
CertReq regInfo object as an
ASN1Object. |
java.lang.String |
toString()
Creates a text representation of the ASN.1 structure of this
CertReq regInfo object. |
getType, getValuepublic static final ObjectID oid
public CertReq(CertRequest certReq)
CertReq regInfo object with the specified
component.certReq - the certificate request valuepublic CertReq(ASN1Object obj) throws CodingException
CertReq regInfo object from an
ASN1Object. The ASN1Object must be a complete
ASN.1 AttributeTypeAndValue structure, not simply an ASN.1 CertReq
structure.obj - the ASN.1 representation of a CertReq regInfo structureCodingException - thrown if an errors occurs while decoding the ANS1Objectpublic CertRequest getCertReq()
public void decode(ASN1Object obj) throws CodingException
ASN1Object.
The ASN1Object must be a complete ASN.1 AttributeTypeAndValue
structure, not simply an ASN.1 CertReq structure.decode in interface ASN1Typedecode in class AttributeTypeAndValueobj - an ASN.1 representation of a CertReq regInfo structureCodingException - thrown if an errors occurs while decoding the ANS1Objectpublic ASN1Object toASN1Object()
CertReq regInfo object as an
ASN1Object. The encoding produces a complete ASN.1
AttributeTypeAndValue structure, not simply an ASN.1 CertReq structure.
To retrieve only the CertReq structure use getValue().toASN1Object in interface ASN1TypetoASN1Object in class AttributeTypeAndValuepublic java.lang.String toString()
CertReq regInfo object.toString in class AttributeTypeAndValue