Class RevocationData
- java.lang.Object
-
- org.apache.poi.poifs.crypt.dsig.services.RevocationData
-
public class RevocationData extends Object
Container class for PKI revocation data.
-
-
Constructor Summary
Constructors Constructor Description RevocationData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCertificate(X509Certificate x509)voidaddCRL(byte[] encodedCrl)Adds a CRL to this revocation data set.voidaddCRL(X509CRL crl)Adds a CRL to this revocation data set.voidaddOCSP(byte[] encodedOcsp)Adds an OCSP response to this revocation data set.List<byte[]>getCRLs()Gives back a list of all CRLs.List<byte[]>getOCSPs()Gives back a list of all OCSP responses.List<X509Certificate>getX509chain()booleanhasCRLs()Returnstrueif this revocation data set holds CRLs.booleanhasOCSPs()Returnstrueif this revocation data set holds OCSP responses.booleanhasRevocationDataEntries()Returnstrueif this revocation data is not empty.
-
-
-
Method Detail
-
addCRL
public void addCRL(byte[] encodedCrl)
Adds a CRL to this revocation data set.
-
addCRL
public void addCRL(X509CRL crl)
Adds a CRL to this revocation data set.
-
addOCSP
public void addOCSP(byte[] encodedOcsp)
Adds an OCSP response to this revocation data set.
-
addCertificate
public void addCertificate(X509Certificate x509)
-
getCRLs
public List<byte[]> getCRLs()
Gives back a list of all CRLs.- Returns:
- a list of all CRLs
-
getOCSPs
public List<byte[]> getOCSPs()
Gives back a list of all OCSP responses.- Returns:
- a list of all OCSP response
-
hasOCSPs
public boolean hasOCSPs()
Returnstrueif this revocation data set holds OCSP responses.- Returns:
trueif this revocation data set holds OCSP responses.
-
hasCRLs
public boolean hasCRLs()
Returnstrueif this revocation data set holds CRLs.- Returns:
trueif this revocation data set holds CRLs.
-
hasRevocationDataEntries
public boolean hasRevocationDataEntries()
Returnstrueif this revocation data is not empty.- Returns:
trueif this revocation data is not empty.
-
getX509chain
public List<X509Certificate> getX509chain()
-
-