Skip to content

Commit 4662b47

Browse files
committed
Upgrade signature-api-specification
1 parent a9c5800 commit 4662b47

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

bom/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<name>Posten signering - Java API Client BOM</name>
3131

3232
<properties>
33-
<signature.api.version>3.0.0</signature.api.version>
33+
<signature.api.version>3.1.0</signature.api.version>
3434
</properties>
3535

3636
<dependencyManagement>

lib/src/main/java/no/digipost/signature/client/asice/signature/XAdESArtifacts.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,11 @@
77
import org.w3c.dom.Node;
88
import org.w3c.dom.NodeList;
99

10-
import static java.util.Collections.singleton;
1110
import static java.util.stream.IntStream.range;
1211

1312
final class XAdESArtifacts {
1413

15-
private static JaxbMarshaller marshaller = new JaxbMarshaller(singleton(QualifyingProperties.class));
14+
private static JaxbMarshaller marshaller = new JaxbMarshaller(QualifyingProperties.class);
1615

1716

1817
public static XAdESArtifacts from(QualifyingProperties qualifyingProperties) {

lib/src/test/java/no/digipost/signature/client/asice/signature/CreateSignatureTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
import java.time.ZoneId;
2323
import java.time.ZonedDateTime;
2424
import java.util.Base64;
25-
import java.util.HashSet;
2625
import java.util.List;
2726

2827
import static java.util.Arrays.asList;
@@ -44,7 +43,7 @@ class CreateSignatureTest {
4443
private KeyStoreConfig noekkelpar;
4544
private List<ASiCEAttachable> files;
4645

47-
private static final JaxbMarshaller unmarshaller = new JaxbMarshaller(new HashSet<>(asList(XAdESSignatures.class, QualifyingProperties.class)));
46+
private static final JaxbMarshaller unmarshaller = new JaxbMarshaller(XAdESSignatures.class, QualifyingProperties.class);
4847

4948
@BeforeEach
5049
void setUp() {

0 commit comments

Comments
 (0)