public class CertificateRevocationList extends java.lang.Object implements IXMLEncodable
http://tools.ietf.org/html/rfc5280FIELD_XML_ELEMENT_CONTAINER_NAME, FIELD_XML_ELEMENT_NAME, XML_ATTR_ID, XML_ATTR_LANGUAGE, XML_ATTR_VERSION| Constructor and Description |
|---|
CertificateRevocationList(mybouncycastle.org.bouncycastle.asn1.x509.CertificateList a_crl)
Creates a new instance of CertificateRevocationList from a BC CertificateList
|
CertificateRevocationList(PKCS12 a_issuerCertificate,
java.util.Vector a_certList,
java.util.Date a_nextUpdate,
MyX509Extensions a_extensions)
Creates a new crl.
|
| Modifier and Type | Method and Description |
|---|---|
MyX509Extensions |
getExtensions() |
static CertificateRevocationList |
getInstance(byte[] a_rawCRL)
Creates a crl from a byte array
|
static CertificateRevocationList |
getInstance(java.io.File a_file)
Create a crl from a file.
|
static CertificateRevocationList |
getInstance(java.io.InputStream a_in)
Creates a crl by using an input stream.
|
static java.util.Hashtable |
getInstance(java.lang.String a_strResourceSearchPath,
boolean a_bRecursive,
java.lang.String a_ignoreCertMark)
Method to get instances of CertificateRevocationList from files in the specified path
|
X509DistinguishedName |
getIssuer() |
java.util.Date |
getNextUpdate() |
java.util.Vector |
getRevokedCertificates()
Creates a vector of RevokedCertificates from the CRLEntries on this crl.
|
java.util.Date |
getThisUpdate() |
boolean |
isIndirectCRL() |
byte[] |
toByteArray()
Convertes the crl to a byte array.
|
byte[] |
toByteArray(boolean a_Base64Encoded)
Converts the crl to a byte array.
|
org.w3c.dom.Element |
toXmlElement(org.w3c.dom.Document a_doc)
Creates XML element of crl consisting of:
|
boolean |
verifiy(JAPCertificate a_cert)
Verifiy the crl with the given cert
|
public CertificateRevocationList(PKCS12 a_issuerCertificate, java.util.Vector a_certList, java.util.Date a_nextUpdate, MyX509Extensions a_extensions)
a_issuerCertificate - the crl's issuera_certList - the vector of certificates to revokea_nextUpdate - the date when the next crl will be publisheda_extensions - the extensions for the crlpublic CertificateRevocationList(mybouncycastle.org.bouncycastle.asn1.x509.CertificateList a_crl)
a_crl - a BC CertificateListpublic static CertificateRevocationList getInstance(byte[] a_rawCRL)
a_rawCRL - the byte array holding the crlnull if an error occuredpublic static CertificateRevocationList getInstance(java.io.File a_file)
a_file - a file containing a crlnull if an error occuredpublic static CertificateRevocationList getInstance(java.io.InputStream a_in)
a_in - Inputstream that holds the crlnull if an error occuredpublic static java.util.Hashtable getInstance(java.lang.String a_strResourceSearchPath,
boolean a_bRecursive,
java.lang.String a_ignoreCertMark)
a_strResourceSearchPath - a_bRecursive - a_ignoreCertMark - public X509DistinguishedName getIssuer()
public boolean isIndirectCRL()
public java.util.Date getThisUpdate()
public java.util.Date getNextUpdate()
public MyX509Extensions getExtensions()
public java.util.Vector getRevokedCertificates()
public byte[] toByteArray()
public byte[] toByteArray(boolean a_Base64Encoded)
a_Base64Encoded - if the crl is converted to a Base64 encoded form.java.io.IOExceptionpublic boolean verifiy(JAPCertificate a_cert)
a_cert - the cert for the verificationtrue if the signature on the crl could be verified
with the cert's public key or false otherwise.public org.w3c.dom.Element toXmlElement(org.w3c.dom.Document a_doc)
toXmlElement in interface IXMLEncodablea_doc - The XML document, which is the environment for the created XML element.Copyright © 2023. All rights reserved.