Interface for an X.509 Attribute Certificate.
checkValidity
public void checkValidity()
throws CertificateExpiredException,
CertificateNotYetValidException
checkValidity
public void checkValidity(Date date)
throws CertificateExpiredException,
CertificateNotYetValidException
getAttributes
public X509Attribute[] getAttributes()
Return the attributes contained in the attribute block in the certificate.
- an array of attributes.
getAttributes
public X509Attribute[] getAttributes(String oid)
Return the attributes with the same type as the passed in oid.
oid
- the object identifier we wish to match.
- an array of matched attributes, null if there is no match.
getCriticalExtensionOIDs
public Set getCriticalExtensionOIDs()
getEncoded
public byte[] getEncoded()
throws IOException
Return an ASN.1 encoded byte array representing the attribute certificate.
- an ASN.1 encoded byte array.
getIssuerUniqueID
public boolean[] getIssuerUniqueID()
getNonCriticalExtensionOIDs
public Set getNonCriticalExtensionOIDs()
getNotAfter
public Date getNotAfter()
Return the date after which the certificate is not valid.
- the "not valid afer" date.
getNotBefore
public Date getNotBefore()
Return the date before which the certificate is not valid.
- the "not valid before" date.
getSerialNumber
public BigInteger getSerialNumber()
Return the serial number for the certificate.
- the serial number.
getSignature
public byte[] getSignature()
getVersion
public int getVersion()
Return the version number for the certificate.
- the version number.
verify
public void verify(PublicKey key,
String provider)
throws CertificateException,
NoSuchAlgorithmException,
InvalidKeyException,
NoSuchProviderException,
SignatureException