public class EntrustCertTypeAndDefn extends java.lang.Object implements ASN1Type
-- certificate definition
EntrustCertTypeAndDefn ::= SEQUENCE
{
certTypeId [0] EntrustCertInfoId OPTIONAL,
certDefnId [1] EntrustCertInfoId
}
entrustCertTypeAndDefn OBJECT-TYPE
SYNTAX EntrustCertTypeAndDefn
ACCESS read-write
STATUS mandatory
::= { 2 16 840 1 114027 50 10 }
| Modifier and Type | Field and Description |
|---|---|
static ObjectID |
oid
The object identifier for an EntrustCertTypeAndDefn.
|
| Constructor and Description |
|---|
EntrustCertTypeAndDefn(ASN1Object obj)
Creates a new
EntrustCertTypeAndDefn from an
ASN1Object. |
EntrustCertTypeAndDefn(EntrustCertInfoId certDefnId)
Creates a new
EntrustCertTypeAndDefn object with the
specified component. |
| Modifier and Type | Method and Description |
|---|---|
void |
decode(ASN1Object obj)
Decodes an EntrustCertTypeAndDefn structure from an
ASN1Object. |
EntrustCertInfoId |
getCertDefnId()
Returns the certificate definition identifier.
|
EntrustCertInfoId |
getCertTypeId()
Returns the certificate type identifier if it has been set; otherwise
null is returned. |
void |
setCertTypeId(EntrustCertInfoId certTypeId)
Sets the certificate type identifier.
|
ASN1Object |
toASN1Object()
Encodes the actual EntrustCertTypeAndDefn structure as an
ASN1Object. |
java.lang.String |
toString()
Creates a text representation of the ASN.1 structure of this
EntrustCertTypeAndDefn object. |
public static final ObjectID oid
public EntrustCertTypeAndDefn(EntrustCertInfoId certDefnId)
EntrustCertTypeAndDefn object with the
specified component.certDefnId - identifier for the certificate definitionpublic EntrustCertTypeAndDefn(ASN1Object obj) throws CodingException
EntrustCertTypeAndDefn from an
ASN1Object. The ASN1Object must be an
EntrustCertTypeAndDefn structure.obj - the ASN.1 representation of an EntrustCertTypeAndDefn structureCodingException - thrown if an errors occurs while decoding the ANS1Objectpublic EntrustCertInfoId getCertTypeId()
null is returned.public EntrustCertInfoId getCertDefnId()
public void setCertTypeId(EntrustCertInfoId certTypeId)
certTypeId - the certTypeId componentpublic void decode(ASN1Object obj) throws CodingException
ASN1Object. The ASN1Object must be an
EntrustCertTypeAndDefn structure.decode in interface ASN1Typeobj - an ASN.1 representation of a EntrustCertTypeAndDefn structureCodingException - thrown if an errors occurs while decoding the ANS1Objectpublic ASN1Object toASN1Object()
ASN1Object.toASN1Object in interface ASN1Typepublic java.lang.String toString()
EntrustCertTypeAndDefn object.toString in class java.lang.Object