public class EntrustNewCertDefn extends java.lang.Object implements ASN1Type
EntrustNewCertDefn ::= SEQUENCE
{
typeAndDefn EntrustCertTypeAndDefn OPTIONAL,
-- if typeAndDefn not present definition is unknown
certId [0] CertId -- from PKCS#10
}
| Constructor and Description |
|---|
EntrustNewCertDefn(ASN1Object obj)
Creates a new
EntrustNewCertDefn from an
ASN1Object. |
EntrustNewCertDefn(CertId certId)
Creates a new
EntrustNewCertDefn object with the specified
component. |
| Modifier and Type | Method and Description |
|---|---|
void |
decode(ASN1Object obj)
Decodes an EntrustNewCertDefn structure from an
ASN1Object. |
CertId |
getCertId()
Returns the certificate identifier.
|
EntrustCertTypeAndDefn |
getTypeAndDefn()
Returns the certificate type and definition information if it has been set;
otherwise
null is returned. |
void |
setTypeAndDefn(EntrustCertTypeAndDefn typeAndDefn)
Sets the certificate type and definition information.
|
ASN1Object |
toASN1Object()
Encodes this
EntrustNewCertDefn object as an
ASN1Object. |
java.lang.String |
toString()
Creates a text representation of the ASN.1 structure of this
EntrustNewCertDefn object. |
public EntrustNewCertDefn(CertId certId)
EntrustNewCertDefn object with the specified
component.certId - the certificate identifierpublic EntrustNewCertDefn(ASN1Object obj) throws CodingException
EntrustNewCertDefn from an
ASN1Object.obj - the ASN.1 representation of an EntrustNewCertDefn structureCodingException - thrown if an errors occurs while decoding the ANS1Objectpublic EntrustCertTypeAndDefn getTypeAndDefn()
null is returned.public CertId getCertId()
public void setTypeAndDefn(EntrustCertTypeAndDefn typeAndDefn)
typeAndDefn - the typeAndDefn componentpublic void decode(ASN1Object obj) throws CodingException
ASN1Object.decode in interface ASN1Typeobj - an ASN.1 representation of an EntrustNewCertDefn structureCodingException - thrown if an errors occurs while decoding the ANS1Objectpublic ASN1Object toASN1Object()
EntrustNewCertDefn object as an
ASN1Object.toASN1Object in interface ASN1Typepublic java.lang.String toString()
EntrustNewCertDefn object.toString in class java.lang.Object