Skip to content

Commit

Permalink
chore: adjust license header
Browse files Browse the repository at this point in the history
Signed-off-by: Josef Andersson <[email protected]>
  • Loading branch information
janderssonse committed Feb 26, 2025
1 parent 584891e commit e076f13
Show file tree
Hide file tree
Showing 80 changed files with 223 additions and 232 deletions.
2 changes: 1 addition & 1 deletion .conform.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2024 Digg - Agency for Digital Government
# SPDX-FileCopyrightText: 2024 diggsweden/eudiw-wallet-token-lib
#
# SPDX-License-Identifier: CC0-1.0

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/openssf-scorecard.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2024 Digg - Agency for Digital Government
# SPDX-FileCopyrightText: 2024 diggsweden/eudiw-wallet-token-lib
#
# SPDX-License-Identifier: CC0-1.0

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pullrequest-workflow.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2024 Digg - Agency for Digital Government
# SPDX-FileCopyrightText: 2024 diggsweden/eudiw-wallet-token-lib
#
# SPDX-License-Identifier: CC0-1.0

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-lib.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2024 Digg - Agency for Digital Government
# SPDX-FileCopyrightText: 2024 diggsweden/eudiw-wallet-token-lib
#
# SPDX-License-Identifier: CC0-1.0
---
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-workflow.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2024 Digg - Agency for Digital Government
# SPDX-FileCopyrightText: 2024 diggsweden/eudiw-wallet-token-lib
#
# SPDX-License-Identifier: CC0-1.0

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2024 Digg - Agency for Digital Government
# SPDX-FileCopyrightText: 2024 diggsweden/eudiw-wallet-token-lib
#
# SPDX-License-Identifier: CC0-1.0

Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2024 Digg - Agency for Digital Government
# SPDX-FileCopyrightText: 2024 diggsweden/eudiw-wallet-token-lib
#
# SPDX-License-Identifier: CC0-1.0

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
SPDX-FileCopyrightText: 2024 Digg - Agency for Digital Government
SPDX-FileCopyrightText: 2024 diggsweden/eudiw-wallet-token-lib
SPDX-License-Identifier: CC0-1.0
-->
Expand Down
4 changes: 2 additions & 2 deletions REUSE.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2024 Digg
# SPDX-FileCopyrightText: 2024 eudiw-wallet-token-lib
#
# SPDX-License-Identifier: CC0-1.0

Expand All @@ -16,7 +16,7 @@ path = [
"README.md",
]
precedence = "aggregate"
SPDX-FileCopyrightText = "diggsweden. <https://github.com/diggsweden>"
SPDX-FileCopyrightText = "2025 diggsweden/eudiw-wallet-token-lib"
SPDX-License-Identifier = "CC0-1.0"

[[annotations]]
Expand Down
2 changes: 1 addition & 1 deletion development/code_quality.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

# SPDX-FileCopyrightText: 2024 Digg - Agency for Digital Government
# SPDX-FileCopyrightText: 2024 diggsweden/eudiw-wallet-token-lib
#
# SPDX-License-Identifier: CC0-1.0

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>

<!--
SPDX-FileCopyrightText: 2024 Digg - Agency for Digital Government
SPDX-FileCopyrightText: 2024 diggsweden/eudiw-wallet-token-lib
SPDX-License-Identifier: CC0-1.0
-->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2025 Digg - Agency for Digital Government
// SPDX-FileCopyrightText: 2025 diggsweden/eudiw-wallet-token-lib
//
// SPDX-License-Identifier: EUPL-1.2

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2025 Digg - Agency for Digital Government
// SPDX-FileCopyrightText: 2025 diggsweden/eudiw-wallet-token-lib
//
// SPDX-License-Identifier: EUPL-1.2

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2025 Digg - Agency for Digital Government
// SPDX-FileCopyrightText: 2025 diggsweden/eudiw-wallet-token-lib
//
// SPDX-License-Identifier: EUPL-1.2

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2024 Digg - Agency for Digital Government
// SPDX-FileCopyrightText: 2024 diggsweden/eudiw-wallet-token-lib
//
// SPDX-License-Identifier: EUPL-1.2

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2025 Digg - Agency for Digital Government
// SPDX-FileCopyrightText: 2025 diggsweden/eudiw-wallet-token-lib
//
// SPDX-License-Identifier: EUPL-1.2

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2025 Digg - Agency for Digital Government
// SPDX-FileCopyrightText: 2025 diggsweden/eudiw-wallet-token-lib
//
// SPDX-License-Identifier: EUPL-1.2

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2024 Digg - Agency for Digital Government
// SPDX-FileCopyrightText: 2024 diggsweden/eudiw-wallet-token-lib
//
// SPDX-License-Identifier: EUPL-1.2

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2024 Digg - Agency for Digital Government
// SPDX-FileCopyrightText: 2024 diggsweden/eudiw-wallet-token-lib
//
// SPDX-License-Identifier: EUPL-1.2

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2024 Digg - Agency for Digital Government
// SPDX-FileCopyrightText: 2024 diggsweden/eudiw-wallet-token-lib
//
// SPDX-License-Identifier: EUPL-1.2

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2024 Digg - Agency for Digital Government
// SPDX-FileCopyrightText: 2024 diggsweden/eudiw-wallet-token-lib
//
// SPDX-License-Identifier: EUPL-1.2

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2025 Digg - Agency for Digital Government
// SPDX-FileCopyrightText: 2025 diggsweden/eudiw-wallet-token-lib
//
// SPDX-License-Identifier: EUPL-1.2

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2025 Digg - Agency for Digital Government
// SPDX-FileCopyrightText: 2025 diggsweden/eudiw-wallet-token-lib
//
// SPDX-License-Identifier: EUPL-1.2

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2025 Digg - Agency for Digital Government
// SPDX-FileCopyrightText: 2025 diggsweden/eudiw-wallet-token-lib
//
// SPDX-License-Identifier: EUPL-1.2

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2024 Digg - Agency for Digital Government
// SPDX-FileCopyrightText: 2024 diggsweden/eudiw-wallet-token-lib
//
// SPDX-License-Identifier: EUPL-1.2

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2024 Digg - Agency for Digital Government
// SPDX-FileCopyrightText: 2024 diggsweden/eudiw-wallet-token-lib
//
// SPDX-License-Identifier: EUPL-1.2

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2024 Digg - Agency for Digital Government
// SPDX-FileCopyrightText: 2024 diggsweden/eudiw-wallet-token-lib
//
// SPDX-License-Identifier: EUPL-1.2

Expand Down Expand Up @@ -34,6 +34,8 @@ public class TokenValidationResult {
protected Instant expirationTime;
/** Nonce specified in presentation request */
protected String presentationRequestNonce;
/** A list of disclosed attribute values provided in a map with attribute type as key */
/**

Check warning

Code scanning / Checkstyle (MegaLinter JAVA_CHECKSTYLE)

First sentence of Javadoc is missing an ending period. Warning

First sentence of Javadoc is missing an ending period.
* A list of disclosed attribute values provided in a map with attribute type as key
*/
protected Map<TokenAttributeType, Object> disclosedAttributes;
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2024 Digg - Agency for Digital Government
// SPDX-FileCopyrightText: 2024 diggsweden/eudiw-wallet-token-lib
//
// SPDX-License-Identifier: EUPL-1.2

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2024 Digg - Agency for Digital Government
// SPDX-FileCopyrightText: 2024 diggsweden/eudiw-wallet-token-lib
//
// SPDX-License-Identifier: EUPL-1.2

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/se/digg/wallet/datatypes/common/Utils.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2025 Digg - Agency for Digital Government
// SPDX-FileCopyrightText: 2025 diggsweden/eudiw-wallet-token-lib
//
// SPDX-License-Identifier: EUPL-1.2

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2024 Digg - Agency for Digital Government
// SPDX-FileCopyrightText: 2024 diggsweden/eudiw-wallet-token-lib
//
// SPDX-License-Identifier: EUPL-1.2

Expand Down Expand Up @@ -70,8 +70,9 @@ private CBORUtils() {}
DateTimeFormatter.ofPattern("yyyy-MM-dd");
/** Time formatter for time */
public static final DateTimeFormatter INSTANT_FORMATTER =
DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss'Z'").withZone(
ZoneOffset.UTC);
DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss'Z'")
.withZone(
ZoneOffset.UTC);

static {
CBOR_MAPPER = new ObjectMapper(new CBORFactory())
Expand Down Expand Up @@ -308,8 +309,6 @@ private static byte[] hash(SHA256Digest digest, byte[] input) {
return output;
}



/**
* Derives a shared secret using Diffie-Hellman (DH) key derivation.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2025 Digg - Agency for Digital Government
// SPDX-FileCopyrightText: 2025 diggsweden/eudiw-wallet-token-lib
//
// SPDX-License-Identifier: EUPL-1.2

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2025 Digg - Agency for Digital Government
// SPDX-FileCopyrightText: 2025 diggsweden/eudiw-wallet-token-lib
//
// SPDX-License-Identifier: EUPL-1.2

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2024 Digg - Agency for Digital Government
// SPDX-FileCopyrightText: 2024 diggsweden/eudiw-wallet-token-lib
//
// SPDX-License-Identifier: EUPL-1.2

Expand Down Expand Up @@ -46,7 +46,9 @@
@JsonSerialize(using = IssuerSigned.Serializer.class)
public class IssuerSigned {

/** Map of name spaces. Each name space lists a set of attributes under that name space */
/**
* Map of name spaces. Each name space lists a set of attributes under that name space
*/
Map<String, List<IssuerSignedItem>> nameSpaces;
/**
* Utagged Sign1 COSE signature where payload is CBOR encoding of @{@link MobileSecurityObject}
Expand Down Expand Up @@ -233,8 +235,7 @@ public IssuerSignedBuilder protectedKid(boolean protectedKid) {
*/
public IssuerSigned build()
throws CoseException, IOException, CertificateEncodingException {
Map<String, List<IssuerSignedItem>> nameSpaces =
this.issuerSigned.getNameSpaces();
Map<String, List<IssuerSignedItem>> nameSpaces = this.issuerSigned.getNameSpaces();
if (nameSpaces == null) {
throw new IllegalStateException(
"NameSpaces must be set before building IssuerSigned");
Expand All @@ -244,8 +245,7 @@ public IssuerSigned build()
COSEKey signingKey = new COSEKey(
issuerCredential.getPublicKey(),
issuerCredential.getPrivateKey());
Map<String, Map<Integer, byte[]>> attributeEntryHashMap =
new HashMap<>();
Map<String, Map<Integer, byte[]>> attributeEntryHashMap = new HashMap<>();
for (Map.Entry<String, List<IssuerSignedItem>> nameSpaceEntry : nameSpaces.entrySet()) {
String nameSpace = nameSpaceEntry.getKey();
attributeEntryHashMap.put(nameSpace, new HashMap<>());
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2024 Digg - Agency for Digital Government
// SPDX-FileCopyrightText: 2024 diggsweden/eudiw-wallet-token-lib
//
// SPDX-License-Identifier: EUPL-1.2

Expand Down Expand Up @@ -58,7 +58,9 @@
@JsonDeserialize(using = IssuerSignedItem.Deserializer.class)
public class IssuerSignedItem {

/** An integer identifier for the digest provided in the Mobile Security Object (MSO) */
/**

Check warning

Code scanning / Checkstyle (MegaLinter JAVA_CHECKSTYLE)

First sentence of Javadoc is missing an ending period. Warning

First sentence of Javadoc is missing an ending period.
* An integer identifier for the digest provided in the Mobile Security Object (MSO)
*/
int digestID;
/** A random salt mixed with attribute data during hashing */
byte[] random;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2025 Digg - Agency for Digital Government
// SPDX-FileCopyrightText: 2025 diggsweden/eudiw-wallet-token-lib
//
// SPDX-License-Identifier: EUPL-1.2

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2025 Digg - Agency for Digital Government
// SPDX-FileCopyrightText: 2025 diggsweden/eudiw-wallet-token-lib
//
// SPDX-License-Identifier: EUPL-1.2

Expand Down Expand Up @@ -32,7 +32,9 @@ public class MdlPresentationInput
private String responseUri;
/** Client MAC key derivation key **/
private PublicKey clientPublicKey;
/** Set to true to use MAC device authentication. If set to true clientPublicKey MUST be set */
/**
* Set to true to use MAC device authentication. If set to true clientPublicKey MUST be set
*/
boolean macDeviceAuthentication = false;

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2025 Digg - Agency for Digital Government
// SPDX-FileCopyrightText: 2025 diggsweden/eudiw-wallet-token-lib
//
// SPDX-License-Identifier: EUPL-1.2

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2024 Digg - Agency for Digital Government
// SPDX-FileCopyrightText: 2024 diggsweden/eudiw-wallet-token-lib
//
// SPDX-License-Identifier: EUPL-1.2

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2025 Digg - Agency for Digital Government
// SPDX-FileCopyrightText: 2025 diggsweden/eudiw-wallet-token-lib
//
// SPDX-License-Identifier: EUPL-1.2

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2024 Digg - Agency for Digital Government
// SPDX-FileCopyrightText: 2024 diggsweden/eudiw-wallet-token-lib
//
// SPDX-License-Identifier: EUPL-1.2
/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2024 Digg - Agency for Digital Government
// SPDX-FileCopyrightText: 2024 diggsweden/eudiw-wallet-token-lib
//
// SPDX-License-Identifier: EUPL-1.2

Expand All @@ -24,7 +24,9 @@
@NoArgsConstructor
public class MdlIssuerSignedValidationResult extends TokenValidationResult {

/** Represents the token or data structure containing information signed by the issuer */
/**

Check warning

Code scanning / Checkstyle (MegaLinter JAVA_CHECKSTYLE)

First sentence of Javadoc is missing an ending period. Warning

First sentence of Javadoc is missing an ending period.
* Represents the token or data structure containing information signed by the issuer
*/
protected IssuerSigned issuerSigned;
/**
* Represents the Mobile Security Object, which encapsulates relevant signed data used in token
Expand Down
Loading

0 comments on commit e076f13

Please sign in to comment.