public class EntrustCertTypePolicy extends java.lang.Object implements ASN1Type
-- the cert type to cert defn to policy cert mapping structure
-- the mapping value stored in the main policy cert will have the
-- policycertdn values defined (if the certdefn or certtype has policy)
-- the structure returned for the CMP gen request will have the policycert
-- value defined (if the certdefn or certtype has policy).
EntrustCertTypePolicy ::= SEQUENCE OF EntrustCertTypeInfo;
-- cert defn client-setting oids
entrustCertDefnSettings OBJECT IDENTIFIER ::= {1 2 840 113533 7 77 46}
entrustCertTypePolicy OBJECT IDENTIFIER ::= {entrustCertDefnSettings 0}
}
| Modifier and Type | Field and Description |
|---|---|
static ObjectID |
oid
The object identifier for an EntrustCertTypePolicy.
|
| Constructor and Description |
|---|
EntrustCertTypePolicy()
Creates a new
EntrustCertTypePolicy object that contains
no certificate-type/definition policy information. |
EntrustCertTypePolicy(ASN1Object obj)
Creates a new
EntrustCertTypePolicy from an
ASN1Object. |
EntrustCertTypePolicy(EntrustCertTypeInfo[] certTypePolicy)
Creates a new
EntrustCertTypePolicy object with the specified
certificate-type/definition policy information. |
| Modifier and Type | Method and Description |
|---|---|
void |
addCertTypePolicy(EntrustCertTypeInfo certTypePolicy)
Adds a certificate-type/definition policy information entry.
|
void |
decode(ASN1Object obj)
Decodes an EntrustCertTypePolicy from an
ASN1Object. |
EntrustCertTypeInfo[] |
getCertTypePolicy()
Returns the set of certificate-type/definition policy information.
|
ASN1Object |
toASN1Object()
Encodes this
EntrustCertTypePolicy object as an
ASN1Object. |
java.lang.String |
toString()
Creates a text representation of the ASN.1 structure of this
EntrustCertTypePolicy object. |
public static final ObjectID oid
public EntrustCertTypePolicy()
EntrustCertTypePolicy object that contains
no certificate-type/definition policy information.public EntrustCertTypePolicy(EntrustCertTypeInfo[] certTypePolicy)
EntrustCertTypePolicy object with the specified
certificate-type/definition policy information.certTypePolicy - a set of certificate-type/definition policy informationpublic EntrustCertTypePolicy(ASN1Object obj) throws CodingException
EntrustCertTypePolicy from an
ASN1Object. The ASN1Object must be an
EntrustCertTypePolicy structure.obj - the ASN.1 representation of an EntrustCertTypePolicy structureCodingException - thrown if an errors occurs while decoding the ANS1Objectpublic EntrustCertTypeInfo[] getCertTypePolicy()
public void addCertTypePolicy(EntrustCertTypeInfo certTypePolicy)
If certTypePolicy is null, it is not added.
certTypePolicy - a certificate-type/definition policy information entrypublic void decode(ASN1Object obj) throws CodingException
ASN1Object. The
ASN1Object must an EntrustCertTypePolicy structure.decode in interface ASN1Typeobj - an ASN.1 representation of a EntrustCertTypePolicy structureCodingException - thrown if an errors occurs while decoding the ANS1Objectpublic ASN1Object toASN1Object()
EntrustCertTypePolicy object as an
ASN1Object.toASN1Object in interface ASN1Typepublic java.lang.String toString()
EntrustCertTypePolicy object.toString in class java.lang.Object