Package org.bouncycastle.x509
Interface X509AttributeCertificate
- All Superinterfaces:
X509Extension
- All Known Implementing Classes:
X509V2AttributeCertificate
Deprecated.
use X509CertificateHolder class in the PKIX package.
Interface for an X.509 Attribute Certificate.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.void
checkValidity
(Date date) 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.byte[]
Deprecated.Return an ASN.1 encoded byte array representing the attribute certificate.Deprecated.Return the holder of the certificate.Deprecated.Return the issuer details for the certificate.boolean[]
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.void
Deprecated.Methods inherited from interface java.security.cert.X509Extension
getCriticalExtensionOIDs, getExtensionValue, getNonCriticalExtensionOIDs, hasUnsupportedCriticalExtension
-
Method Details
-
getVersion
int getVersion()Deprecated.Return the version number for the certificate.- Returns:
- the version number.
-
getSerialNumber
BigInteger getSerialNumber()Deprecated.Return the serial number for the certificate.- Returns:
- the serial number.
-
getNotBefore
Date getNotBefore()Deprecated.Return the date before which the certificate is not valid.- Returns:
- the "not valid before" date.
-
getNotAfter
Date getNotAfter()Deprecated.Return the date after which the certificate is not valid.- Returns:
- the "not valid afer" date.
-
getHolder
AttributeCertificateHolder getHolder()Deprecated.Return the holder of the certificate.- Returns:
- the holder.
-
getIssuer
AttributeCertificateIssuer getIssuer()Deprecated.Return the issuer details for the certificate.- Returns:
- the issuer details.
-
getAttributes
X509Attribute[] getAttributes()Deprecated.Return the attributes contained in the attribute block in the certificate.- Returns:
- an array of attributes.
-
getAttributes
Deprecated.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.
-
getIssuerUniqueID
boolean[] getIssuerUniqueID()Deprecated. -
checkValidity
Deprecated. -
checkValidity
Deprecated. -
getSignature
byte[] getSignature()Deprecated. -
verify
void verify(PublicKey key, String provider) throws CertificateException, NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException, SignatureException Deprecated. -
getEncoded
Deprecated.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.
-