public final class EntrustPolicyCertificate extends PolicyCertificate
AttributeCertificate,
PolicyCertificate,
ClientSettings| Constructor and Description |
|---|
EntrustPolicyCertificate(ASN1Object obj)
Creates a EntrustPolicyCertificate from an ASN1 structure.
|
EntrustPolicyCertificate(byte[] array)
Creates a EntrustPolicyCertificate from a DER byte array.
|
| Modifier and Type | Method and Description |
|---|---|
void |
decode(ASN1Object asn)
Decode an EntrustPolicyCertificate from an ASN1Object.
|
byte[] |
getEncoded()
Returns this certificate as as a DER encoded byte array.
|
X509Extensions |
getExtensions()
Returns the certificate extensions, if any
|
Name |
getIssuerDN()
Returns the issuer DN.
|
java.util.Date |
getNotAfter()
Returns the notAfter date of this certificate.
|
java.util.Date |
getNotBefore()
Returns the notBefore date of this certificate.
|
Name |
getOwnerDN()
Returns the owner DN.
|
byte[] |
getSignature()
Returns the signature on this policy certificate.
|
AlgorithmID |
getSignatureAlgorithm()
Returns the signature algorithm of this certificate.
|
byte[] |
getSigned()
Return the part of the policy certificate over which the
the signature is applied.
|
ASN1Object |
toASN1Object()
Returns the certificate as an ASN1Object.
|
java.lang.String |
toString()
Returns the certificate as an String.
|
getAttributepublic EntrustPolicyCertificate(byte[] array)
throws java.security.cert.CertificateException
array - the byte array containing the DER encoded EntrustPolicyCertificatejava.security.cert.CertificateException - if the format of the cert is wrongpublic EntrustPolicyCertificate(ASN1Object obj) throws CodingException
obj - the ASN1 structure that represents the certificateCodingException - thrown if the ANS1 structrue is incorrectpublic byte[] getEncoded()
public void decode(ASN1Object asn) throws CodingException
asn - the ASN.1 type as ASN1ObjectCodingException - if there is an error parsing the EntrustPolicyCertificatepublic Name getIssuerDN()
Namepublic Name getOwnerDN()
Namepublic java.util.Date getNotBefore()
public java.util.Date getNotAfter()
public X509Extensions getExtensions()
public ASN1Object toASN1Object()
public java.lang.String toString()
toString in class java.lang.Objectpublic byte[] getSigned()
public AlgorithmID getSignatureAlgorithm()
AlgorithmIDpublic byte[] getSignature()