eu.europa.esig.dss.asic.ASiCWithCAdESContainerExtractor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dss-asic-cades Show documentation
Show all versions of dss-asic-cades Show documentation
DSS ASiC with CAdES contains the code for the creation and validation of ASiC containers with CAdES signature(s).
package eu.europa.esig.dss.asic;
import eu.europa.esig.dss.DSSDocument;
public class ASiCWithCAdESContainerExtractor extends AbstractASiCContainerExtractor {
public ASiCWithCAdESContainerExtractor(DSSDocument archive) {
super(archive);
}
@Override
boolean isAllowedManifest(String entryName) {
return entryName.startsWith(META_INF_FOLDER + "ASiCManifest") && entryName.endsWith(".xml");
}
@Override
boolean isAllowedSignature(String entryName) {
return ASiCUtils.isCAdES(entryName);
}
}