Class RevocationData
- java.lang.Object
-
- org.apache.poi.poifs.crypt.dsig.services.RevocationData
-
public class RevocationData extends java.lang.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 void
addCertificate(java.security.cert.X509Certificate x509)
void
addCRL(byte[] encodedCrl)
Adds a CRL to this revocation data set.void
addCRL(java.security.cert.X509CRL crl)
Adds a CRL to this revocation data set.void
addOCSP(byte[] encodedOcsp)
Adds an OCSP response to this revocation data set.java.util.List<byte[]>
getCRLs()
Gives back a list of all CRLs.java.util.List<byte[]>
getOCSPs()
Gives back a list of all OCSP responses.java.util.List<java.security.cert.X509Certificate>
getX509chain()
boolean
hasCRLs()
Returnstrue
if this revocation data set holds CRLs.boolean
hasOCSPs()
Returnstrue
if this revocation data set holds OCSP responses.boolean
hasRevocationDataEntries()
Returnstrue
if 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(java.security.cert.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(java.security.cert.X509Certificate x509)
-
getCRLs
public java.util.List<byte[]> getCRLs()
Gives back a list of all CRLs.- Returns:
- a list of all CRLs
-
getOCSPs
public java.util.List<byte[]> getOCSPs()
Gives back a list of all OCSP responses.- Returns:
- a list of all OCSP response
-
hasOCSPs
public boolean hasOCSPs()
Returnstrue
if this revocation data set holds OCSP responses.- Returns:
true
if this revocation data set holds OCSP responses.
-
hasCRLs
public boolean hasCRLs()
Returnstrue
if this revocation data set holds CRLs.- Returns:
true
if this revocation data set holds CRLs.
-
hasRevocationDataEntries
public boolean hasRevocationDataEntries()
Returnstrue
if this revocation data is not empty.- Returns:
true
if this revocation data is not empty.
-
getX509chain
public java.util.List<java.security.cert.X509Certificate> getX509chain()
-
-