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
IOException
public X509V2AttributeCertificate(byte[] encoded) throws IOException
IOException
public int getVersion()
X509AttributeCertificate
getVersion
in interface X509AttributeCertificate
public BigInteger getSerialNumber()
X509AttributeCertificate
getSerialNumber
in interface X509AttributeCertificate
public AttributeCertificateHolder getHolder()
X509AttributeCertificate
getHolder
in interface X509AttributeCertificate
public AttributeCertificateIssuer getIssuer()
X509AttributeCertificate
getIssuer
in interface X509AttributeCertificate
public Date getNotBefore()
X509AttributeCertificate
getNotBefore
in interface X509AttributeCertificate
public Date getNotAfter()
X509AttributeCertificate
getNotAfter
in interface X509AttributeCertificate
public boolean[] getIssuerUniqueID()
getIssuerUniqueID
in interface X509AttributeCertificate
public void checkValidity() throws CertificateExpiredException, CertificateNotYetValidException
checkValidity
in interface X509AttributeCertificate
CertificateExpiredException
CertificateNotYetValidException
public void checkValidity(Date date) throws CertificateExpiredException, CertificateNotYetValidException
checkValidity
in interface X509AttributeCertificate
CertificateExpiredException
CertificateNotYetValidException
public byte[] getSignature()
getSignature
in interface X509AttributeCertificate
public final void verify(PublicKey key, String provider) throws CertificateException, NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException, SignatureException
verify
in interface X509AttributeCertificate
CertificateException
NoSuchAlgorithmException
InvalidKeyException
NoSuchProviderException
SignatureException
public byte[] getEncoded() throws IOException
X509AttributeCertificate
getEncoded
in interface X509AttributeCertificate
IOException
- if the certificate cannot be encoded.public byte[] getExtensionValue(String oid)
getExtensionValue
in interface X509Extension
public Set getNonCriticalExtensionOIDs()
getNonCriticalExtensionOIDs
in interface X509Extension
public Set getCriticalExtensionOIDs()
getCriticalExtensionOIDs
in interface X509Extension
public boolean hasUnsupportedCriticalExtension()
hasUnsupportedCriticalExtension
in interface X509Extension
public X509Attribute[] getAttributes()
X509AttributeCertificate
getAttributes
in interface X509AttributeCertificate
public X509Attribute[] getAttributes(String oid)
X509AttributeCertificate
getAttributes
in interface X509AttributeCertificate
oid
- the object identifier we wish to match.Copyright © 2015. All rights reserved.