-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Hjort
committed
Mar 14, 2024
1 parent
e8ef295
commit 5d7a91d
Showing
6 changed files
with
138 additions
and
43 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
16 changes: 16 additions & 0 deletions
16
concordium-sdk/src/main/java/com/concordium/sdk/crypto/wallet/ErrorResult.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,16 @@ | ||
package com.concordium.sdk.crypto.wallet; | ||
|
||
import com.concordium.sdk.exceptions.JNIError; | ||
import com.fasterxml.jackson.annotation.JsonCreator; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
public class ErrorResult extends StringResult { | ||
|
||
@JsonCreator | ||
ErrorResult( | ||
@JsonProperty("Ok") String ok, | ||
@JsonProperty("Err") JNIError err | ||
) { | ||
super(ok, err); | ||
} | ||
} |
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
9 changes: 8 additions & 1 deletion
9
concordium-sdk/src/main/java/com/concordium/sdk/crypto/wallet/web3Id/AttributeCheck.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,5 +1,12 @@ | ||
package com.concordium.sdk.crypto.wallet.web3Id; | ||
|
||
|
||
public interface AttributeCheck { | ||
public String checkAttribute(String tag, CredentialAttribute value); | ||
/** | ||
* This check should throw an exception if the given attribute value is not valid. | ||
* @param tag the attribute tag for the statement | ||
* @param value the attribute value used in the statement | ||
* @throws Exception to indicate the attribute is not valid. | ||
*/ | ||
public void checkAttribute(String tag, CredentialAttribute value) throws Exception; | ||
} |
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