public class

X509V2AttributeCertificate

extends Object
implements X509AttributeCertificate
java.lang.Object
   ↳ org.bouncycastle.x509.X509V2AttributeCertificate

This class is deprecated.
use org.bouncycastle.cert.X509AttributeCertificateHolder

Class Overview

An implementation of a version 2 X.509 Attribute Certificate.

Summary

Public Constructors
X509V2AttributeCertificate(InputStream encIn)
X509V2AttributeCertificate(byte[] encoded)
Public Methods
void checkValidity()
void checkValidity(Date date)
boolean equals(Object o)
X509Attribute[] getAttributes(String oid)
Return the attributes with the same type as the passed in oid.
X509Attribute[] getAttributes()
Return the attributes contained in the attribute block in the certificate.
Set getCriticalExtensionOIDs()
byte[] getEncoded()
Return an ASN.1 encoded byte array representing the attribute certificate.
byte[] getExtensionValue(String oid)
AttributeCertificateHolder getHolder()
Return the holder of the certificate.
AttributeCertificateIssuer getIssuer()
Return the issuer details for the certificate.
boolean[] getIssuerUniqueID()
Set getNonCriticalExtensionOIDs()
Date getNotAfter()
Return the date after which the certificate is not valid.
Date getNotBefore()
Return the date before which the certificate is not valid.
BigInteger getSerialNumber()
Return the serial number for the certificate.
byte[] getSignature()
int getVersion()
Return the version number for the certificate.
boolean hasUnsupportedCriticalExtension()
int hashCode()
final void verify(PublicKey key, String provider)
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.security.cert.X509Extension
From interface org.bouncycastle.x509.X509AttributeCertificate

Public Constructors

public X509V2AttributeCertificate (InputStream encIn)

Throws
IOException

public X509V2AttributeCertificate (byte[] encoded)

Throws
IOException

Public Methods

public void checkValidity ()

public void checkValidity (Date date)

public boolean equals (Object o)

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.

public X509Attribute[] getAttributes ()

Return the attributes contained in the attribute block in the certificate.

Returns
  • an array of attributes.

public Set getCriticalExtensionOIDs ()

public byte[] getEncoded ()

Return an ASN.1 encoded byte array representing the attribute certificate.

Returns
  • an ASN.1 encoded byte array.
Throws
IOException

public byte[] getExtensionValue (String oid)

public AttributeCertificateHolder getHolder ()

Return the holder of the certificate.

Returns
  • the holder.

public AttributeCertificateIssuer getIssuer ()

Return the issuer details for the certificate.

Returns
  • the issuer details.

public boolean[] getIssuerUniqueID ()

public Set getNonCriticalExtensionOIDs ()

public Date getNotAfter ()

Return the date after which the certificate is not valid.

Returns
  • the "not valid afer" date.

public Date getNotBefore ()

Return the date before which the certificate is not valid.

Returns
  • the "not valid before" date.

public BigInteger getSerialNumber ()

Return the serial number for the certificate.

Returns
  • the serial number.

public byte[] getSignature ()

public int getVersion ()

Return the version number for the certificate.

Returns
  • the version number.

public boolean hasUnsupportedCriticalExtension ()

public int hashCode ()