-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a validation method to check the revocation during the verifiab…
…le presentation validation.
- Loading branch information
1 parent
d661296
commit 5579acb
Showing
21 changed files
with
402 additions
and
369 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ plugins { | |
} | ||
|
||
group = 'es.in2' | ||
version = '1.0.2' | ||
version = '1.0.3' | ||
|
||
java { | ||
toolchain { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,5 +30,4 @@ public static void main(String[] args) { | |
public ObjectMapper objectMapper() { | ||
return OBJECT_MAPPER; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 0 additions & 7 deletions
7
src/main/java/es/in2/vcverifier/config/properties/ClientRepositoryProperties.java
This file was deleted.
Oops, something went wrong.
34 changes: 34 additions & 0 deletions
34
src/main/java/es/in2/vcverifier/config/properties/TrustFrameworkProperties.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package es.in2.vcverifier.config.properties; | ||
|
||
import org.springframework.boot.context.properties.ConfigurationProperties; | ||
import org.springframework.boot.context.properties.NestedConfigurationProperty; | ||
import org.springframework.boot.context.properties.bind.ConstructorBinding; | ||
|
||
import java.util.Optional; | ||
|
||
@ConfigurationProperties(prefix = "trust-framework") | ||
public record TrustFrameworkProperties( | ||
@NestedConfigurationProperty TrustedIssuerListProperties trustedIssuerList, | ||
@NestedConfigurationProperty ClientsRepositoryProperties clientsRepository, | ||
@NestedConfigurationProperty RevocationListProperties revocationList) { | ||
|
||
@ConstructorBinding | ||
public TrustFrameworkProperties( | ||
TrustedIssuerListProperties trustedIssuerList, | ||
ClientsRepositoryProperties clientsRepository, | ||
RevocationListProperties revocationList) { | ||
this.trustedIssuerList = Optional.ofNullable(trustedIssuerList).orElse(new TrustedIssuerListProperties("")); | ||
this.clientsRepository = Optional.ofNullable(clientsRepository).orElse(new ClientsRepositoryProperties("")); | ||
this.revocationList = Optional.ofNullable(revocationList).orElse(new RevocationListProperties("")); | ||
} | ||
|
||
public record TrustedIssuerListProperties(String uri) { | ||
} | ||
|
||
public record ClientsRepositoryProperties(String uri) { | ||
} | ||
|
||
public record RevocationListProperties(String uri) { | ||
} | ||
} | ||
|
7 changes: 0 additions & 7 deletions
7
src/main/java/es/in2/vcverifier/config/properties/TrustedIssuerListProperties.java
This file was deleted.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
src/main/java/es/in2/vcverifier/exception/CredentialRevokedException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package es.in2.vcverifier.exception; | ||
|
||
public class CredentialRevokedException extends RuntimeException { | ||
public CredentialRevokedException(String message) { | ||
super(message); | ||
} | ||
} | ||
|
13 changes: 13 additions & 0 deletions
13
src/main/java/es/in2/vcverifier/model/RevokedCredentialIds.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package es.in2.vcverifier.model; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
import java.util.List; | ||
|
||
@JsonIgnoreProperties | ||
public record RevokedCredentialIds ( | ||
@JsonProperty("revoked_credentials") | ||
List<String> revokedCredentials | ||
){ | ||
} |
5 changes: 0 additions & 5 deletions
5
src/main/java/es/in2/vcverifier/service/AllowedClientsService.java
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
src/main/java/es/in2/vcverifier/service/TrustFrameworkService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
package es.in2.vcverifier.service; | ||
|
||
import es.in2.vcverifier.model.ExternalTrustedListYamlData; | ||
import es.in2.vcverifier.model.issuer.IssuerCredentialsCapabilities; | ||
|
||
import java.util.List; | ||
|
||
public interface TrustFrameworkService { | ||
List<IssuerCredentialsCapabilities> getTrustedIssuerListData(String id); | ||
List<String> getRevokedCredentialIds(); | ||
ExternalTrustedListYamlData fetchAllowedClient(); | ||
} |
47 changes: 0 additions & 47 deletions
47
src/main/java/es/in2/vcverifier/service/impl/AllowedClientsServiceImpl.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.