Skip to content

Commit

Permalink
Upgrade signature-api-specification (#320)
Browse files Browse the repository at this point in the history
  • Loading branch information
runeflobakk authored Nov 2, 2023
1 parent a9c5800 commit 1a328ab
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<name>Posten signering - Java API Client BOM</name>

<properties>
<signature.api.version>3.0.0</signature.api.version>
<signature.api.version>3.1.0</signature.api.version>
</properties>

<dependencyManagement>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;

import static java.util.Collections.singleton;
import static java.util.stream.IntStream.range;

final class XAdESArtifacts {

private static JaxbMarshaller marshaller = new JaxbMarshaller(singleton(QualifyingProperties.class));
private static JaxbMarshaller marshaller = new JaxbMarshaller(QualifyingProperties.class);


public static XAdESArtifacts from(QualifyingProperties qualifyingProperties) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import java.time.ZoneId;
import java.time.ZonedDateTime;
import java.util.Base64;
import java.util.HashSet;
import java.util.List;

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

private static final JaxbMarshaller unmarshaller = new JaxbMarshaller(new HashSet<>(asList(XAdESSignatures.class, QualifyingProperties.class)));
private static final JaxbMarshaller unmarshaller = new JaxbMarshaller(XAdESSignatures.class, QualifyingProperties.class);

@BeforeEach
void setUp() {
Expand Down

0 comments on commit 1a328ab

Please sign in to comment.