org.bouncycastle.x509

Interface X509AttributeCertificate

public interface X509AttributeCertificate extends X509Extension

Interface for an X.509 Attribute Certificate.
Method Summary
voidcheckValidity()
voidcheckValidity(Date date)
X509Attribute[]getAttributes()
Return the attributes contained in the attribute block in the certificate.
X509Attribute[]getAttributes(String oid)
Return the attributes with the same type as the passed in oid.
byte[]getEncoded()
Return an ASN.1 encoded byte array representing the attribute certificate.
AttributeCertificateHoldergetHolder()
Return the holder of the certificate.
AttributeCertificateIssuergetIssuer()
Return the issuer details for the certificate.
boolean[]getIssuerUniqueID()
DategetNotAfter()
Return the date after which the certificate is not valid.
DategetNotBefore()
Return the date before which the certificate is not valid.
BigIntegergetSerialNumber()
Return the serial number for the certificate.
byte[]getSignature()
intgetVersion()
Return the version number for the certificate.
voidverify(PublicKey key, String provider)

Method Detail

checkValidity

public void checkValidity()

checkValidity

public void checkValidity(Date date)

getAttributes

public X509Attribute[] getAttributes()
Return the attributes contained in the attribute block in the certificate.

Returns: an array of attributes.

getAttributes

public X509Attribute[] getAttributes(String oid)
Return the attributes with the same type as the passed in oid.

Parameters: oid the object identifier we wish to match.

Returns: an array of matched attributes, null if there is no match.

getEncoded

public byte[] getEncoded()
Return an ASN.1 encoded byte array representing the attribute certificate.

Returns: an ASN.1 encoded byte array.

Throws: IOException if the certificate cannot be encoded.

getHolder

public AttributeCertificateHolder getHolder()
Return the holder of the certificate.

Returns: the holder.

getIssuer

public AttributeCertificateIssuer getIssuer()
Return the issuer details for the certificate.

Returns: the issuer details.

getIssuerUniqueID

public boolean[] getIssuerUniqueID()

getNotAfter

public Date getNotAfter()
Return the date after which the certificate is not valid.

Returns: the "not valid afer" date.

getNotBefore

public Date getNotBefore()
Return the date before which the certificate is not valid.

Returns: the "not valid before" date.

getSerialNumber

public BigInteger getSerialNumber()
Return the serial number for the certificate.

Returns: the serial number.

getSignature

public byte[] getSignature()

getVersion

public int getVersion()
Return the version number for the certificate.

Returns: the version number.

verify

public void verify(PublicKey key, String provider)