/** * Returns <code>true</code> if this revocation data is not empty. * * @return <code>true</code> if this revocation data is not empty. */ public boolean hasRevocationDataEntries() { return hasOCSPs() || hasCRLs(); } }
private void createRevocationValues( RevocationValuesType revocationValues, RevocationData revocationData) { if (revocationData.hasCRLs()) { CRLValuesType crlValues = revocationValues.addNewCRLValues(); for (byte[] crl : revocationData.getCRLs()) { EncapsulatedPKIDataType encapsulatedCrlValue = crlValues.addNewEncapsulatedCRLValue(); encapsulatedCrlValue.setByteArrayValue(crl); } } if (revocationData.hasOCSPs()) { OCSPValuesType ocspValues = revocationValues.addNewOCSPValues(); for (byte[] ocsp : revocationData.getOCSPs()) { EncapsulatedPKIDataType encapsulatedOcspValue = ocspValues.addNewEncapsulatedOCSPValue(); encapsulatedOcspValue.setByteArrayValue(ocsp); } } } }
if (revocationData.hasOCSPs()) { OCSPRefsType ocspRefs = completeRevocationRefs.addNewOCSPRefs(); for (byte[] ocsp : revocationData.getOCSPs()) {
/** * Returns <code>true</code> if this revocation data is not empty. * * @return <code>true</code> if this revocation data is not empty. */ public boolean hasRevocationDataEntries() { return hasOCSPs() || hasCRLs(); } }
private void createRevocationValues( RevocationValuesType revocationValues, RevocationData revocationData) { if (revocationData.hasCRLs()) { CRLValuesType crlValues = revocationValues.addNewCRLValues(); for (byte[] crl : revocationData.getCRLs()) { EncapsulatedPKIDataType encapsulatedCrlValue = crlValues.addNewEncapsulatedCRLValue(); encapsulatedCrlValue.setByteArrayValue(crl); } } if (revocationData.hasOCSPs()) { OCSPValuesType ocspValues = revocationValues.addNewOCSPValues(); for (byte[] ocsp : revocationData.getOCSPs()) { EncapsulatedPKIDataType encapsulatedOcspValue = ocspValues.addNewEncapsulatedOCSPValue(); encapsulatedOcspValue.setByteArrayValue(ocsp); } } } }
if (revocationData.hasOCSPs()) { OCSPRefsType ocspRefs = completeRevocationRefs.addNewOCSPRefs(); for (byte[] ocsp : revocationData.getOCSPs()) {