public class X509V2AttributeCertificate extends Object implements X509AttributeCertificate
| Constructor and Description |
|---|
X509V2AttributeCertificate(byte[] encoded)
Deprecated.
|
X509V2AttributeCertificate(InputStream encIn)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
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 |
checkValidity()
Deprecated.
|
void |
checkValidity(Date date)
Deprecated.
|
void |
verify(PublicKey key,
String provider)
Deprecated.
|
public X509V2AttributeCertificate(InputStream encIn) throws IOException
IOExceptionpublic X509V2AttributeCertificate(byte[] encoded)
throws IOException
IOExceptionpublic int getVersion()
X509AttributeCertificategetVersion in interface X509AttributeCertificatepublic BigInteger getSerialNumber()
X509AttributeCertificategetSerialNumber in interface X509AttributeCertificatepublic AttributeCertificateHolder getHolder()
X509AttributeCertificategetHolder in interface X509AttributeCertificatepublic AttributeCertificateIssuer getIssuer()
X509AttributeCertificategetIssuer in interface X509AttributeCertificatepublic Date getNotBefore()
X509AttributeCertificategetNotBefore in interface X509AttributeCertificatepublic Date getNotAfter()
X509AttributeCertificategetNotAfter in interface X509AttributeCertificatepublic boolean[] getIssuerUniqueID()
getIssuerUniqueID in interface X509AttributeCertificatepublic void checkValidity()
throws CertificateExpiredException,
CertificateNotYetValidException
checkValidity in interface X509AttributeCertificateCertificateExpiredExceptionCertificateNotYetValidExceptionpublic void checkValidity(Date date) throws CertificateExpiredException, CertificateNotYetValidException
checkValidity in interface X509AttributeCertificateCertificateExpiredExceptionCertificateNotYetValidExceptionpublic byte[] getSignature()
getSignature in interface X509AttributeCertificatepublic final void verify(PublicKey key, String provider) throws CertificateException, NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException, SignatureException
verify in interface X509AttributeCertificateCertificateExceptionNoSuchAlgorithmExceptionInvalidKeyExceptionNoSuchProviderExceptionSignatureExceptionpublic byte[] getEncoded()
throws IOException
X509AttributeCertificategetEncoded in interface X509AttributeCertificateIOException - if the certificate cannot be encoded.public byte[] getExtensionValue(String oid)
getExtensionValue in interface X509Extensionpublic Set getNonCriticalExtensionOIDs()
getNonCriticalExtensionOIDs in interface X509Extensionpublic Set getCriticalExtensionOIDs()
getCriticalExtensionOIDs in interface X509Extensionpublic boolean hasUnsupportedCriticalExtension()
hasUnsupportedCriticalExtension in interface X509Extensionpublic X509Attribute[] getAttributes()
X509AttributeCertificategetAttributes in interface X509AttributeCertificatepublic X509Attribute[] getAttributes(String oid)
X509AttributeCertificategetAttributes in interface X509AttributeCertificateoid - the object identifier we wish to match.Copyright © 2015. All rights reserved.