defaultCriteria = newCriteria;
}
/** {@inheritDoc} */
public void doFilter(XMLObject metadata) throws FilterException {
SignableXMLObject signableMetadata = (SignableXMLObject) metadata;
if (!signableMetadata.isSigned()){
if (getRequireSignature()) {
throw new FilterException("Metadata was unsigned and signatures are required.");
} else {
if (signableMetadata instanceof EntityDescriptor) {
log.trace("Root EntityDescriptor was not signed, filter processing terminated");