Class RevocationData
java.lang.Object
org.apache.poi.poifs.crypt.dsig.services.RevocationData
Container class for PKI revocation data.
- Author:
- Frank Cornelis
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCRL(byte[] encodedCrl) Adds a CRL to this revocation data set.voidAdds 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.booleanhasCRLs()Returnstrueif this revocation data set holds CRLs.booleanhasOCSPs()Returnstrueif this revocation data set holds OCSP responses.booleanReturnstrueif this revocation data is not empty.
-
Constructor Details
-
RevocationData
public RevocationData()Default constructor.
-
-
Method Details
-
addCRL
public void addCRL(byte[] encodedCrl) Adds a CRL to this revocation data set.- Parameters:
encodedCrl-
-
addCRL
Adds a CRL to this revocation data set.- Parameters:
crl-
-
addOCSP
public void addOCSP(byte[] encodedOcsp) Adds an OCSP response to this revocation data set.- Parameters:
encodedOcsp-
-
getCRLs
Gives back a list of all CRLs.- Returns:
- a list of all CRLs
-
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.
-