Package org.bouncycastle.x509
Class X509V2AttributeCertificate
- java.lang.Object
-
- org.bouncycastle.x509.X509V2AttributeCertificate
-
- All Implemented Interfaces:
java.security.cert.X509Extension,X509AttributeCertificate
public class X509V2AttributeCertificate extends java.lang.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(java.io.InputStream encIn)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidcheckValidity()Deprecated.voidcheckValidity(java.util.Date date)Deprecated.booleanequals(java.lang.Object o)Deprecated.X509Attribute[]getAttributes()Deprecated.Return the attributes contained in the attribute block in the certificate.X509Attribute[]getAttributes(java.lang.String oid)Deprecated.Return the attributes with the same type as the passed in oid.java.util.SetgetCriticalExtensionOIDs()Deprecated.byte[]getEncoded()Deprecated.Return an ASN.1 encoded byte array representing the attribute certificate.byte[]getExtensionValue(java.lang.String oid)Deprecated.AttributeCertificateHoldergetHolder()Deprecated.Return the holder of the certificate.AttributeCertificateIssuergetIssuer()Deprecated.Return the issuer details for the certificate.boolean[]getIssuerUniqueID()Deprecated.java.util.SetgetNonCriticalExtensionOIDs()Deprecated.java.util.DategetNotAfter()Deprecated.Return the date after which the certificate is not valid.java.util.DategetNotBefore()Deprecated.Return the date before which the certificate is not valid.java.math.BigIntegergetSerialNumber()Deprecated.Return the serial number for the certificate.byte[]getSignature()Deprecated.intgetVersion()Deprecated.Return the version number for the certificate.inthashCode()Deprecated.booleanhasUnsupportedCriticalExtension()Deprecated.voidverify(java.security.PublicKey key, java.lang.String provider)Deprecated.
-
-
-
Constructor Detail
-
X509V2AttributeCertificate
public X509V2AttributeCertificate(java.io.InputStream encIn) throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException
-
X509V2AttributeCertificate
public X509V2AttributeCertificate(byte[] encoded) throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException
-
-
Method Detail
-
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
public java.math.BigInteger getSerialNumber()
Deprecated.Description copied from interface:X509AttributeCertificateReturn the serial number for the certificate.- Specified by:
getSerialNumberin interfaceX509AttributeCertificate- Returns:
- the serial number.
-
getHolder
public AttributeCertificateHolder getHolder()
Deprecated.Description copied from interface:X509AttributeCertificateReturn the holder of the certificate.- Specified by:
getHolderin interfaceX509AttributeCertificate- Returns:
- the holder.
-
getIssuer
public AttributeCertificateIssuer getIssuer()
Deprecated.Description copied from interface:X509AttributeCertificateReturn the issuer details for the certificate.- Specified by:
getIssuerin interfaceX509AttributeCertificate- Returns:
- the issuer details.
-
getNotBefore
public java.util.Date 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
public java.util.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
public void checkValidity() throws java.security.cert.CertificateExpiredException, java.security.cert.CertificateNotYetValidExceptionDeprecated.- Specified by:
checkValidityin interfaceX509AttributeCertificate- Throws:
java.security.cert.CertificateExpiredExceptionjava.security.cert.CertificateNotYetValidException
-
checkValidity
public void checkValidity(java.util.Date date) throws java.security.cert.CertificateExpiredException, java.security.cert.CertificateNotYetValidExceptionDeprecated.- Specified by:
checkValidityin interfaceX509AttributeCertificate- Throws:
java.security.cert.CertificateExpiredExceptionjava.security.cert.CertificateNotYetValidException
-
getSignature
public byte[] getSignature()
Deprecated.- Specified by:
getSignaturein interfaceX509AttributeCertificate
-
verify
public final void verify(java.security.PublicKey key, java.lang.String provider) throws java.security.cert.CertificateException, java.security.NoSuchAlgorithmException, java.security.InvalidKeyException, java.security.NoSuchProviderException, java.security.SignatureExceptionDeprecated.- Specified by:
verifyin interfaceX509AttributeCertificate- Throws:
java.security.cert.CertificateExceptionjava.security.NoSuchAlgorithmExceptionjava.security.InvalidKeyExceptionjava.security.NoSuchProviderExceptionjava.security.SignatureException
-
getEncoded
public byte[] getEncoded() throws java.io.IOExceptionDeprecated.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:
java.io.IOException- if the certificate cannot be encoded.
-
getExtensionValue
public byte[] getExtensionValue(java.lang.String oid)
Deprecated.- Specified by:
getExtensionValuein interfacejava.security.cert.X509Extension
-
getNonCriticalExtensionOIDs
public java.util.Set getNonCriticalExtensionOIDs()
Deprecated.- Specified by:
getNonCriticalExtensionOIDsin interfacejava.security.cert.X509Extension
-
getCriticalExtensionOIDs
public java.util.Set getCriticalExtensionOIDs()
Deprecated.- Specified by:
getCriticalExtensionOIDsin interfacejava.security.cert.X509Extension
-
hasUnsupportedCriticalExtension
public boolean hasUnsupportedCriticalExtension()
Deprecated.- Specified by:
hasUnsupportedCriticalExtensionin interfacejava.security.cert.X509Extension
-
getAttributes
public X509Attribute[] 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
public X509Attribute[] getAttributes(java.lang.String oid)
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
public boolean equals(java.lang.Object o)
Deprecated.- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
Deprecated.- Overrides:
hashCodein classjava.lang.Object
-
-