public class EntrustCertDefnInfo extends java.lang.Object implements ASN1Type
EntrustCertDefnInfo ::= SEQUENCE {
certdefn EntrustCertInfoId,
policycertdn DistinguishedName OPTIONAL,
policycert [1] ANY OPTIONAL, -- the policy cert in some encoding
replacement [2] IMPLICIT EntrustCertInfoId OPTIONAL
};
| Constructor and Description |
|---|
EntrustCertDefnInfo(ASN1Object obj)
Creates a new
EntrustCertDefnInfo from an
ASN1Object. |
EntrustCertDefnInfo(EntrustCertInfoId certdefn)
Creates a new
EntrustCertDefnInfo object with the specified
component. |
| Modifier and Type | Method and Description |
|---|---|
void |
decode(ASN1Object obj)
Decodes an EntrustCertDefnInfo structure from an
ASN1Object. |
EntrustCertInfoId |
getCertdefn()
Returns the certificate information identifier.
|
ASN1Object |
getPolicycert()
Returns the policy certificate if it has been set; otherwise
null is returned. |
Name |
getPolicycertdn()
Returns the distinguished name associated with the policy certificate if
it has been set; otherwise
null is returned. |
EntrustCertInfoId |
getReplacement()
Returns the replacement certificate information identifier.
|
void |
setPolicycert(ASN1Object policycert)
Sets the policy certificate.
|
void |
setPolicycertdn(Name policycertdn)
Sets the distinguished name associated with the policy certificate.
|
void |
setReplacement(EntrustCertInfoId replacement)
Sets the replacement certificate information identifier.
|
ASN1Object |
toASN1Object()
Encodes this
EntrustCertDefnInfo object as an
ASN1Object. |
java.lang.String |
toString()
Creates a text representation of the ASN.1 structure of this
EntrustCertDefnInfo object. |
public EntrustCertDefnInfo(EntrustCertInfoId certdefn)
EntrustCertDefnInfo object with the specified
component.
certdefn - the certificate information identifierpublic EntrustCertDefnInfo(ASN1Object obj) throws CodingException
EntrustCertDefnInfo from an
ASN1Object.
obj - the ASN.1 representation of an EntrustCertDefnInfo structureCodingException - thrown if an errors occurs while decoding the ANS1Objectpublic EntrustCertInfoId getCertdefn()
public Name getPolicycertdn()
null is returned.
public ASN1Object getPolicycert()
null is returned.
public EntrustCertInfoId getReplacement()
Indicates that the certificate definition information has been obseleted and replaced by the certificate definition information identified by this certificate information identifier.
public void setPolicycertdn(Name policycertdn)
policycertdn - the policycertdn componentpublic void setPolicycert(ASN1Object policycert)
policycert - the policycert componentpublic void setReplacement(EntrustCertInfoId replacement)
Indicates that the certificate definition information has been obseleted and replaced by the certificate definition information identified by this certificate information identifier.
replacement - the replacement componentpublic void decode(ASN1Object obj) throws CodingException
ASN1Object.
decode in interface ASN1Typeobj - an ASN.1 representation of an EntrustCertDefnInfo structureCodingException - thrown if an errors occurs while decoding the ANS1Objectpublic ASN1Object toASN1Object()
EntrustCertDefnInfo object as an
ASN1Object.
toASN1Object in interface ASN1Typepublic java.lang.String toString()
EntrustCertDefnInfo object.
toString in class java.lang.Object