Top Description Methods
org.bouncycastle.x509

public Interface X509AttributeCertificate

extends X509Extension
Known Direct Implementers
org.bouncycastle.x509.X509V2AttributeCertificate
Imports
java.io.IOException, java.math.BigInteger, java.security.InvalidKeyException, .NoSuchAlgorithmException, .NoSuchProviderException, .PublicKey, .SignatureException, java.security.cert.CertificateException, .CertificateExpiredException, .CertificateNotYetValidException, .X509Extension, java.util.Date

Deprecated

use X509CertificateHolder class in the PKIX package.

Interface for an X.509 Attribute Certificate.

Method Summary

Modifier and TypeMethod and Description
public void
public void
public X509Attribute[]

Returns:

an array of attributes.
getAttributes
()

Deprecated as a consequence of X509Attribute being deprecated.
Return the attributes contained in the attribute block in the certificate.
public X509Attribute[]

Returns:

an array of matched attributes, null if there is no match.
getAttributes
(String
the object identifier we wish to match.
oid
)

Deprecated as a consequence of X509Attribute being deprecated.
Return the attributes with the same type as the passed in oid.
public byte[]

Returns:

an ASN.1 encoded byte array.
getEncoded
()

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

public AttributeCertificateHolder

Returns:

the holder.
getHolder
()

Deprecated as a consequence of AttributeCertificateHolder being deprecated.
Return the holder of the certificate.
public AttributeCertificateIssuer

Returns:

the issuer details.
getIssuer
()

Deprecated as a consequence of AttributeCertificateIssuer being deprecated.
Return the issuer details for the certificate.
public boolean[]
public Date

Returns:

the "not valid afer" date.
getNotAfter
()

Return the date after which the certificate is not valid.

public Date

Returns:

the "not valid before" date.
getNotBefore
()

Return the date before which the certificate is not valid.

public BigInteger

Returns:

the serial number.
getSerialNumber
()

Return the serial number for the certificate.

public byte[]
public int

Returns:

the version number.
getVersion
()

Return the version number for the certificate.

public void
verify(PublicKey key, String provider)

Inherited from java.security.cert.X509Extension:
getCriticalExtensionOIDsgetExtensionValuegetNonCriticalExtensionOIDshasUnsupportedCriticalExtension

Method Detail

checkValidityback to summary
public void checkValidity() throws CertificateExpiredException, CertificateNotYetValidException
checkValidityback to summary
public void checkValidity(Date date) throws CertificateExpiredException, CertificateNotYetValidException
getAttributesback to summary
public X509Attribute[] getAttributes()

Deprecated

as a consequence of X509Attribute being deprecated. See corresponding docs for further information.

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

Returns:X509Attribute[]

an array of attributes.

getAttributesback to summary
public X509Attribute[] getAttributes(String oid)

Deprecated

as a consequence of X509Attribute being deprecated. See corresponding docs for further information.

Return the attributes with the same type as the passed in oid.

Parameters
oid:String

the object identifier we wish to match.

Returns:X509Attribute[]

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

getEncodedback to summary
public byte[] getEncoded() throws IOException

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

Returns:byte[]

an ASN.1 encoded byte array.

Exceptions
IOException:
if the certificate cannot be encoded.
getHolderback to summary
public AttributeCertificateHolder getHolder()

Deprecated

as a consequence of AttributeCertificateHolder being deprecated. See corresponding docs for further information.

Return the holder of the certificate.

Returns:AttributeCertificateHolder

the holder.

getIssuerback to summary
public AttributeCertificateIssuer getIssuer()

Deprecated

as a consequence of AttributeCertificateIssuer being deprecated. See corresponding docs for further information.

Return the issuer details for the certificate.

Returns:AttributeCertificateIssuer

the issuer details.

getIssuerUniqueIDback to summary
public boolean[] getIssuerUniqueID()
getNotAfterback to summary
public Date getNotAfter()

Return the date after which the certificate is not valid.

Returns:Date

the "not valid afer" date.

getNotBeforeback to summary
public Date getNotBefore()

Return the date before which the certificate is not valid.

Returns:Date

the "not valid before" date.

getSerialNumberback to summary
public BigInteger getSerialNumber()

Return the serial number for the certificate.

Returns:BigInteger

the serial number.

getSignatureback to summary
public byte[] getSignature()
getVersionback to summary
public int getVersion()

Return the version number for the certificate.

Returns:int

the version number.

verifyback to summary
public void verify(PublicKey key, String provider) throws CertificateException, NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException, SignatureException