/** * Create an instance of {@link XmlSignatureScope } * */ public XmlSignatureScope createXmlSignatureScope() { return new XmlSignatureScope(); }
private void addSignatureScope(final SignatureWrapper signature, final XmlSignature xmlSignature) { List<eu.europa.esig.dss.jaxb.diagnostic.XmlSignatureScope> signatureScopes = signature.getSignatureScopes(); if (Utils.isCollectionNotEmpty(signatureScopes)) { for (eu.europa.esig.dss.jaxb.diagnostic.XmlSignatureScope scopeType : signatureScopes) { XmlSignatureScope scope = new XmlSignatureScope(); scope.setName(scopeType.getName()); scope.setScope(scopeType.getScope().name()); scope.setValue(scopeType.getValue()); xmlSignature.getSignatureScope().add(scope); } } }