Package org.bouncycastle.x509
Class X509V2AttributeCertificate
java.lang.Object
org.bouncycastle.x509.X509V2AttributeCertificate
- All Implemented Interfaces:
X509Extension
,X509AttributeCertificate
Deprecated.
use org.bouncycastle.cert.X509AttributeCertificateHolder
An implementation of a version 2 X.509 Attribute Certificate.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.void
checkValidity
(Date date) Deprecated.boolean
Deprecated.Deprecated.Return the attributes contained in the attribute block in the certificate.getAttributes
(String oid) Deprecated.Return the attributes with the same type as the passed in oid.Deprecated.byte[]
Deprecated.Return an ASN.1 encoded byte array representing the attribute certificate.byte[]
getExtensionValue
(String oid) Deprecated.Deprecated.Return the holder of the certificate.Deprecated.Return the issuer details for the certificate.boolean[]
Deprecated.Deprecated.Deprecated.Return the date after which the certificate is not valid.Deprecated.Return the date before which the certificate is not valid.Deprecated.Return the serial number for the certificate.byte[]
Deprecated.int
Deprecated.Return the version number for the certificate.int
hashCode()
Deprecated.boolean
Deprecated.final void
Deprecated.
-
Constructor Details
-
X509V2AttributeCertificate
Deprecated.- Throws:
IOException
-
X509V2AttributeCertificate
Deprecated.- Throws:
IOException
-
-
Method Details
-
getVersion
public int getVersion()Deprecated.Description copied from interface:X509AttributeCertificate
Return the version number for the certificate.- Specified by:
getVersion
in interfaceX509AttributeCertificate
- Returns:
- the version number.
-
getSerialNumber
Deprecated.Description copied from interface:X509AttributeCertificate
Return the serial number for the certificate.- Specified by:
getSerialNumber
in interfaceX509AttributeCertificate
- Returns:
- the serial number.
-
getHolder
Deprecated.Description copied from interface:X509AttributeCertificate
Return the holder of the certificate.- Specified by:
getHolder
in interfaceX509AttributeCertificate
- Returns:
- the holder.
-
getIssuer
Deprecated.Description copied from interface:X509AttributeCertificate
Return the issuer details for the certificate.- Specified by:
getIssuer
in interfaceX509AttributeCertificate
- Returns:
- the issuer details.
-
getNotBefore
Deprecated.Description copied from interface:X509AttributeCertificate
Return the date before which the certificate is not valid.- Specified by:
getNotBefore
in interfaceX509AttributeCertificate
- Returns:
- the "not valid before" date.
-
getNotAfter
Deprecated.Description copied from interface:X509AttributeCertificate
Return the date after which the certificate is not valid.- Specified by:
getNotAfter
in interfaceX509AttributeCertificate
- Returns:
- the "not valid afer" date.
-
getIssuerUniqueID
public boolean[] getIssuerUniqueID()Deprecated.- Specified by:
getIssuerUniqueID
in interfaceX509AttributeCertificate
-
checkValidity
Deprecated.- Specified by:
checkValidity
in interfaceX509AttributeCertificate
- Throws:
CertificateExpiredException
CertificateNotYetValidException
-
checkValidity
public void checkValidity(Date date) throws CertificateExpiredException, CertificateNotYetValidException Deprecated.- Specified by:
checkValidity
in interfaceX509AttributeCertificate
- Throws:
CertificateExpiredException
CertificateNotYetValidException
-
getSignature
public byte[] getSignature()Deprecated.- Specified by:
getSignature
in interfaceX509AttributeCertificate
-
verify
public final void verify(PublicKey key, String provider) throws CertificateException, NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException, SignatureException Deprecated.- Specified by:
verify
in interfaceX509AttributeCertificate
- Throws:
CertificateException
NoSuchAlgorithmException
InvalidKeyException
NoSuchProviderException
SignatureException
-
getEncoded
Deprecated.Description copied from interface:X509AttributeCertificate
Return an ASN.1 encoded byte array representing the attribute certificate.- Specified by:
getEncoded
in interfaceX509AttributeCertificate
- Returns:
- an ASN.1 encoded byte array.
- Throws:
IOException
- if the certificate cannot be encoded.
-
getExtensionValue
Deprecated.- Specified by:
getExtensionValue
in interfaceX509Extension
-
getNonCriticalExtensionOIDs
Deprecated.- Specified by:
getNonCriticalExtensionOIDs
in interfaceX509Extension
-
getCriticalExtensionOIDs
Deprecated.- Specified by:
getCriticalExtensionOIDs
in interfaceX509Extension
-
hasUnsupportedCriticalExtension
public boolean hasUnsupportedCriticalExtension()Deprecated.- Specified by:
hasUnsupportedCriticalExtension
in interfaceX509Extension
-
getAttributes
Deprecated.Description copied from interface:X509AttributeCertificate
Return the attributes contained in the attribute block in the certificate.- Specified by:
getAttributes
in interfaceX509AttributeCertificate
- Returns:
- an array of attributes.
-
getAttributes
Deprecated.Description copied from interface:X509AttributeCertificate
Return the attributes with the same type as the passed in oid.- Specified by:
getAttributes
in interfaceX509AttributeCertificate
- Parameters:
oid
- the object identifier we wish to match.- Returns:
- an array of matched attributes, null if there is no match.
-
equals
Deprecated. -
hashCode
public int hashCode()Deprecated.
-