public class EntrustCertTypeInfo extends java.lang.Object implements ASN1Type
EntrustCertTypeInfo ::= SEQUENCE {
certtype EntrustCertInfoId,
certdefns SEQUENCE OF EntrustCertDefnInfo,
policycertdn DistinguishedName OPTIONAL,
policycert [1] ANY OPTIONAL, -- the policy cert in some encoding
replacement [2] IMPLICIT EntrustCertInfoId OPTIONAL
}
| Constructor and Description |
|---|
EntrustCertTypeInfo(ASN1Object obj)
Creates a new
EntrustCertTypeInfo from an
ASN1Object. |
EntrustCertTypeInfo(EntrustCertInfoId certtype,
EntrustCertDefnInfo[] certdefns)
Creates a new
EntrustCertTypeInfo object with the specified
components. |
| Modifier and Type | Method and Description |
|---|---|
void |
addCertdefn(EntrustCertDefnInfo certdefn)
Adds a certificate definition to the set of certificate definitions.
|
void |
decode(ASN1Object obj)
Decodes an EntrustCertTypeInfo structure from an
ASN1Object. |
EntrustCertDefnInfo[] |
getCertdefns()
Returns the set of certificate definitions.
|
EntrustCertInfoId |
getCerttype()
Returns the identifier of the certificate type.
|
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
EntrustCertTypeInfo object as an
ASN1Object. |
java.lang.String |
toString()
Creates a text representation of the ASN.1 structure of this
EntrustCertTypeInfo object. |
public EntrustCertTypeInfo(EntrustCertInfoId certtype, EntrustCertDefnInfo[] certdefns)
EntrustCertTypeInfo object with the specified
components.
certtype - an identifier for the certificate type informationcertdefns - a set of certificate definitionspublic EntrustCertTypeInfo(ASN1Object obj) throws CodingException
EntrustCertTypeInfo from an
ASN1Object.
obj - the ASN.1 representation of an EntrustCertTypeInfo structureCodingException - thrown if an errors occurs while decoding the ANS1Objectpublic EntrustCertInfoId getCerttype()
public EntrustCertDefnInfo[] getCertdefns()
public Name getPolicycertdn()
null is returned.
public ASN1Object getPolicycert()
null is returned.
public EntrustCertInfoId getReplacement()
Indicates that the certificate type information has been obseleted and replaced by the certificate type information identified by this certificate information identifier.
public void addCertdefn(EntrustCertDefnInfo certdefn)
If certdefn is null, it is not added.
certdefn - a certificate definition to be added to the certdefns componentpublic void setPolicycertdn(Name policycertdn)
policycertdn - the policycertdn componentpublic void setPolicycert(ASN1Object policycert)
policycert - the policycert componentpublic void setReplacement(EntrustCertInfoId replacement)
Indicates that the certificate type information has been obseleted and replaced by the certificate type 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 EntrustCertTypeInfo structureCodingException - thrown if an errors occurs while decoding the ANS1Objectpublic ASN1Object toASN1Object()
EntrustCertTypeInfo object as an
ASN1Object.
toASN1Object in interface ASN1Typepublic java.lang.String toString()
EntrustCertTypeInfo object.
toString in class java.lang.Object