public final class AttributeCertificate extends PolicyCertificate
EntrustPolicyCertificate,
PolicyCertificate,
ClientSettings| Constructor and Description |
|---|
AttributeCertificate(ASN1Object obj)
Creates a AttributeCertificate from an ASN1 structure.
|
AttributeCertificate(byte[] array)
Creates a AttributeCertificate from a DER byte array.
|
| Modifier and Type | Method and Description |
|---|---|
void |
decode(ASN1Object asn)
Decode an AttributeCertificate from an ASN1Object.
|
byte[] |
getEncoded()
Returns this attribute 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.
|
java.math.BigInteger |
getSerialNumber()
Returns the serial number of this certificate.
|
byte[] |
getSignature()
Returns the signature on this attribute certificate.
|
AlgorithmID |
getSignatureAlgorithm()
Returns the signature algorithm of this attribute certificate.
|
java.lang.String |
getSignatureAlgorithmName()
Return the name of the signature algorithm that the issuer
used to sign this certificate.
|
byte[] |
getSigned()
Return the part of the attribute certificate over which the
the signature is applied.
|
int |
getVersion()
Returns the version number of this certificate.
|
ASN1Object |
toASN1Object()
Returns the certificate as an ASN1Object.
|
java.lang.String |
toString()
Returns the certificate as an String.
|
getAttributepublic AttributeCertificate(byte[] array)
throws java.security.cert.CertificateException
array - the byte array containing the DER encoded certificatejava.security.cert.CertificateException - if the format of the cert is wrongpublic AttributeCertificate(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 a problem when parsing the certificatepublic int getVersion()
public java.math.BigInteger getSerialNumber()
BigIntegerpublic Name getIssuerDN()
Namepublic Name getOwnerDN()
Namepublic java.util.Date getNotBefore()
public java.util.Date getNotAfter()
public X509Extensions getExtensions()
public java.lang.String getSignatureAlgorithmName()
public ASN1Object toASN1Object()
public java.lang.String toString()
toString in class java.lang.Objectpublic AlgorithmID getSignatureAlgorithm()
AlgorithmIDpublic byte[] getSigned()
public byte[] getSignature()