Package org.bouncycastle.x509
Class X509V2AttributeCertificate
- java.lang.Object
-
- org.bouncycastle.x509.X509V2AttributeCertificate
-
- All Implemented Interfaces:
X509Extension
,X509AttributeCertificate
public class X509V2AttributeCertificate extends Object implements X509AttributeCertificate
Deprecated.use org.bouncycastle.cert.X509AttributeCertificateHolderAn implementation of a version 2 X.509 Attribute Certificate.
-
-
Constructor Summary
Constructors Constructor Description X509V2AttributeCertificate(byte[] encoded)
Deprecated.X509V2AttributeCertificate(InputStream encIn)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
checkValidity()
Deprecated.void
checkValidity(Date date)
Deprecated.boolean
equals(Object o)
Deprecated.X509Attribute[]
getAttributes()
Deprecated.Return the attributes contained in the attribute block in the certificate.X509Attribute[]
getAttributes(String oid)
Deprecated.Return the attributes with the same type as the passed in oid.Set
getCriticalExtensionOIDs()
Deprecated.byte[]
getEncoded()
Deprecated.Return an ASN.1 encoded byte array representing the attribute certificate.byte[]
getExtensionValue(String oid)
Deprecated.AttributeCertificateHolder
getHolder()
Deprecated.Return the holder of the certificate.AttributeCertificateIssuer
getIssuer()
Deprecated.Return the issuer details for the certificate.boolean[]
getIssuerUniqueID()
Deprecated.Set
getNonCriticalExtensionOIDs()
Deprecated.Date
getNotAfter()
Deprecated.Return the date after which the certificate is not valid.Date
getNotBefore()
Deprecated.Return the date before which the certificate is not valid.BigInteger
getSerialNumber()
Deprecated.Return the serial number for the certificate.byte[]
getSignature()
Deprecated.int
getVersion()
Deprecated.Return the version number for the certificate.int
hashCode()
Deprecated.boolean
hasUnsupportedCriticalExtension()
Deprecated.void
verify(PublicKey key, String provider)
Deprecated.
-
-
-
Constructor Detail
-
X509V2AttributeCertificate
public X509V2AttributeCertificate(InputStream encIn) throws IOException
Deprecated.- Throws:
IOException
-
X509V2AttributeCertificate
public X509V2AttributeCertificate(byte[] encoded) throws IOException
Deprecated.- Throws:
IOException
-
-
Method Detail
-
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
public BigInteger getSerialNumber()
Deprecated.Description copied from interface:X509AttributeCertificate
Return the serial number for the certificate.- Specified by:
getSerialNumber
in interfaceX509AttributeCertificate
- Returns:
- the serial number.
-
getHolder
public AttributeCertificateHolder getHolder()
Deprecated.Description copied from interface:X509AttributeCertificate
Return the holder of the certificate.- Specified by:
getHolder
in interfaceX509AttributeCertificate
- Returns:
- the holder.
-
getIssuer
public AttributeCertificateIssuer getIssuer()
Deprecated.Description copied from interface:X509AttributeCertificate
Return the issuer details for the certificate.- Specified by:
getIssuer
in interfaceX509AttributeCertificate
- Returns:
- the issuer details.
-
getNotBefore
public Date 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
public 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
public void checkValidity() throws CertificateExpiredException, CertificateNotYetValidException
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
public byte[] getEncoded() throws IOException
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
public byte[] getExtensionValue(String oid)
Deprecated.- Specified by:
getExtensionValue
in interfaceX509Extension
-
getNonCriticalExtensionOIDs
public Set getNonCriticalExtensionOIDs()
Deprecated.- Specified by:
getNonCriticalExtensionOIDs
in interfaceX509Extension
-
getCriticalExtensionOIDs
public Set getCriticalExtensionOIDs()
Deprecated.- Specified by:
getCriticalExtensionOIDs
in interfaceX509Extension
-
hasUnsupportedCriticalExtension
public boolean hasUnsupportedCriticalExtension()
Deprecated.- Specified by:
hasUnsupportedCriticalExtension
in interfaceX509Extension
-
getAttributes
public X509Attribute[] 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
public X509Attribute[] getAttributes(String oid)
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.
-
-