public interface X509AttributeCertificate extends X509Extension
Modifier and Type | Method and Description |
---|---|
X509Attribute[] |
getAttributes()
Return the attributes contained in the attribute block in the certificate.
|
X509Attribute[] |
getAttributes(String oid)
Return the attributes with the same type as the passed in oid.
|
byte[] |
getEncoded()
Return an ASN.1 encoded byte array representing the attribute certificate.
|
AttributeCertificateHolder |
getHolder()
Return the holder of the certificate.
|
AttributeCertificateIssuer |
getIssuer()
Return the issuer details for the certificate.
|
boolean[] |
getIssuerUniqueID() |
Date |
getNotAfter()
Return the date after which the certificate is not valid.
|
Date |
getNotBefore()
Return the date before which the certificate is not valid.
|
BigInteger |
getSerialNumber()
Return the serial number for the certificate.
|
byte[] |
getSignature() |
int |
getVersion()
Return the version number for the certificate.
|
void |
checkValidity() |
void |
checkValidity(Date date) |
void |
verify(PublicKey key,
String provider) |
getCriticalExtensionOIDs, getExtensionValue, getNonCriticalExtensionOIDs, hasUnsupportedCriticalExtension
int getVersion()
BigInteger getSerialNumber()
Date getNotBefore()
Date getNotAfter()
AttributeCertificateHolder getHolder()
AttributeCertificateIssuer getIssuer()
X509Attribute[] getAttributes()
X509Attribute[] getAttributes(String oid)
oid
- the object identifier we wish to match.boolean[] getIssuerUniqueID()
void checkValidity() throws CertificateExpiredException, CertificateNotYetValidException
void checkValidity(Date date) throws CertificateExpiredException, CertificateNotYetValidException
byte[] getSignature()
void verify(PublicKey key, String provider) throws CertificateException, NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException, SignatureException
byte[] getEncoded() throws IOException
IOException
- if the certificate cannot be encoded.Copyright © 2015. All rights reserved.