public class EntrustCertPolicy extends java.lang.Object implements ASN1Type
-- clients can request their certificate type policy in a preliminary request
EntrustCertPolicy ::= EntrustCertTypeInfo
entrustCertPolicy OBJECT-TYPE
SYNTAX EntrustCertPolicy
ACCESS read-write
STATUS mandatory
::= { 2 16 840 1 114027 50 12}
| Modifier and Type | Field and Description |
|---|---|
static ObjectID |
oid
The object identifier for an EntrustCertPolicy.
|
| Constructor and Description |
|---|
EntrustCertPolicy(ASN1Object obj)
Creates a new
EntrustCertPolicy from an
ASN1Object. |
EntrustCertPolicy(EntrustCertTypeInfo certPolicy)
Creates a new
EntrustCertPolicy object with the specified
component. |
| Modifier and Type | Method and Description |
|---|---|
void |
decode(ASN1Object obj)
Decodes an EntrustCertPolicy from an
ASN1Object. |
EntrustCertTypeInfo |
getCertPolicy()
Returns the certificate policy information.
|
ASN1Object |
toASN1Object()
Encodes this
EntrustCertPolicy object as an
ASN1Object. |
java.lang.String |
toString()
Creates a text representation of the ASN.1 structure of this
EntrustCertPolicy object. |
public static final ObjectID oid
public EntrustCertPolicy(EntrustCertTypeInfo certPolicy)
EntrustCertPolicy object with the specified
component.certPolicy - the certificate policy informationpublic EntrustCertPolicy(ASN1Object obj) throws CodingException
EntrustCertPolicy from an
ASN1Object. The ASN1Object must be an
EntrustCertPolicy structure.obj - the ASN.1 representation of an EntrustCertPolicy structureCodingException - thrown if an errors occurs while decoding the ANS1Objectpublic EntrustCertTypeInfo getCertPolicy()
public void decode(ASN1Object obj) throws CodingException
ASN1Object. The
ASN1Object must be an EntrustCertPolicy structure.decode in interface ASN1Typeobj - an ASN.1 representation of a EntrustCertPolicy structureCodingException - thrown if an errors occurs while decoding the ANS1Objectpublic ASN1Object toASN1Object()
EntrustCertPolicy object as an
ASN1Object.toASN1Object in interface ASN1Typepublic java.lang.String toString()
EntrustCertPolicy object.toString in class java.lang.Object