Search in sources :

Example 1 with ValidationDataException

use of xades4j.providers.ValidationDataException in project xades4j by luisgoncalves.

the class SignerC method getFormatSpecificSignatureProperties.

@Override
protected void getFormatSpecificSignatureProperties(Collection<SignedSignatureProperty> formatSpecificSignedSigProps, Collection<UnsignedSignatureProperty> formatSpecificUnsignedSigProps, List<X509Certificate> signingCertificateChain) throws XAdES4jException {
    super.getFormatSpecificSignatureProperties(formatSpecificSignedSigProps, formatSpecificUnsignedSigProps, signingCertificateChain);
    ValidationData vData = this.validationDataProvider.getValidationData(signingCertificateChain);
    if (null == vData)
        throw new ValidationDataException("Validation data not provided");
    PropertiesUtils.addXadesCProperties(formatSpecificUnsignedSigProps, vData);
}
Also used : ValidationData(xades4j.providers.ValidationData) ValidationDataException(xades4j.providers.ValidationDataException)

Aggregations

ValidationData (xades4j.providers.ValidationData)1 ValidationDataException (xades4j.providers.ValidationDataException)1