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 TypeMethodDescriptionvoidDeprecated.voidcheckValidity(Date date) Deprecated.booleanDeprecated.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.intDeprecated.Return the version number for the certificate.inthashCode()Deprecated.booleanDeprecated.final voidDeprecated.
-
Constructor Details
-
X509V2AttributeCertificate
Deprecated.- Throws:
IOException
-
X509V2AttributeCertificate
Deprecated.- Throws:
IOException
-
-
Method Details
-
getVersion
public int getVersion()Deprecated.Description copied from interface:X509AttributeCertificateReturn the version number for the certificate.- Specified by:
getVersionin interfaceX509AttributeCertificate- Returns:
- the version number.
-
getSerialNumber
Deprecated.Description copied from interface:X509AttributeCertificateReturn the serial number for the certificate.- Specified by:
getSerialNumberin interfaceX509AttributeCertificate- Returns:
- the serial number.
-
getHolder
Deprecated.Description copied from interface:X509AttributeCertificateReturn the holder of the certificate.- Specified by:
getHolderin interfaceX509AttributeCertificate- Returns:
- the holder.
-
getIssuer
Deprecated.Description copied from interface:X509AttributeCertificateReturn the issuer details for the certificate.- Specified by:
getIssuerin interfaceX509AttributeCertificate- Returns:
- the issuer details.
-
getNotBefore
Deprecated.Description copied from interface:X509AttributeCertificateReturn the date before which the certificate is not valid.- Specified by:
getNotBeforein interfaceX509AttributeCertificate- Returns:
- the "not valid before" date.
-
getNotAfter
Deprecated.Description copied from interface:X509AttributeCertificateReturn the date after which the certificate is not valid.- Specified by:
getNotAfterin interfaceX509AttributeCertificate- Returns:
- the "not valid afer" date.
-
getIssuerUniqueID
public boolean[] getIssuerUniqueID()Deprecated.- Specified by:
getIssuerUniqueIDin interfaceX509AttributeCertificate
-
checkValidity
Deprecated.- Specified by:
checkValidityin interfaceX509AttributeCertificate- Throws:
CertificateExpiredExceptionCertificateNotYetValidException
-
checkValidity
public void checkValidity(Date date) throws CertificateExpiredException, CertificateNotYetValidException Deprecated.- Specified by:
checkValidityin interfaceX509AttributeCertificate- Throws:
CertificateExpiredExceptionCertificateNotYetValidException
-
getSignature
public byte[] getSignature()Deprecated.- Specified by:
getSignaturein interfaceX509AttributeCertificate
-
verify
public final void verify(PublicKey key, String provider) throws CertificateException, NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException, SignatureException Deprecated.- Specified by:
verifyin interfaceX509AttributeCertificate- Throws:
CertificateExceptionNoSuchAlgorithmExceptionInvalidKeyExceptionNoSuchProviderExceptionSignatureException
-
getEncoded
Deprecated.Description copied from interface:X509AttributeCertificateReturn an ASN.1 encoded byte array representing the attribute certificate.- Specified by:
getEncodedin interfaceX509AttributeCertificate- Returns:
- an ASN.1 encoded byte array.
- Throws:
IOException- if the certificate cannot be encoded.
-
getExtensionValue
Deprecated.- Specified by:
getExtensionValuein interfaceX509Extension
-
getNonCriticalExtensionOIDs
Deprecated.- Specified by:
getNonCriticalExtensionOIDsin interfaceX509Extension
-
getCriticalExtensionOIDs
Deprecated.- Specified by:
getCriticalExtensionOIDsin interfaceX509Extension
-
hasUnsupportedCriticalExtension
public boolean hasUnsupportedCriticalExtension()Deprecated.- Specified by:
hasUnsupportedCriticalExtensionin interfaceX509Extension
-
getAttributes
Deprecated.Description copied from interface:X509AttributeCertificateReturn the attributes contained in the attribute block in the certificate.- Specified by:
getAttributesin interfaceX509AttributeCertificate- Returns:
- an array of attributes.
-
getAttributes
Deprecated.Description copied from interface:X509AttributeCertificateReturn the attributes with the same type as the passed in oid.- Specified by:
getAttributesin 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.
-