forked from keycloak/keycloak
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
25 changed files
with
629 additions
and
180 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
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
13 changes: 0 additions & 13 deletions
13
services/src/main/java/org/keycloak/protocol/oidc4vp/model/DIDCreate.java
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
services/src/main/java/org/keycloak/protocol/oidc4vp/model/DIDKey.java
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
services/src/main/java/org/keycloak/protocol/oidc4vp/model/JwtProofToken.java
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
services/src/main/java/org/keycloak/protocol/oidc4vp/model/KeyId.java
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
services/src/main/java/org/keycloak/protocol/oidc4vp/model/VerifiableCredential.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
24 changes: 24 additions & 0 deletions
24
services/src/main/java/org/keycloak/protocol/oidc4vp/model/sdjwt/ArrayDigest.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,24 @@ | ||
package org.keycloak.protocol.oidc4vp.model.sdjwt; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
public class ArrayDigest { | ||
|
||
@JsonProperty("...") | ||
private String digest; | ||
|
||
public ArrayDigest() { | ||
} | ||
|
||
public ArrayDigest(String digest) { | ||
this.digest = digest; | ||
} | ||
|
||
public String getDigest() { | ||
return digest; | ||
} | ||
|
||
public void setDigest(String digest) { | ||
this.digest = digest; | ||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
services/src/main/java/org/keycloak/protocol/oidc4vp/model/sdjwt/ArrayDisclosureClaim.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,39 @@ | ||
package org.keycloak.protocol.oidc4vp.model.sdjwt; | ||
|
||
import com.fasterxml.jackson.databind.annotation.JsonSerialize; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
public class ArrayDisclosureClaim { | ||
|
||
private String key; | ||
private List<ArrayElement> values = new ArrayList<>(); | ||
|
||
public ArrayDisclosureClaim() { | ||
} | ||
|
||
public ArrayDisclosureClaim(String key) { | ||
this.key = key; | ||
} | ||
|
||
public String getKey() { | ||
return key; | ||
} | ||
|
||
public void setKey(String key) { | ||
this.key = key; | ||
} | ||
|
||
public List<ArrayElement> getValues() { | ||
return values; | ||
} | ||
|
||
public void setValues(List<ArrayElement> values) { | ||
this.values = values; | ||
} | ||
|
||
public void addValue(ArrayElement value) { | ||
this.values.add(value); | ||
} | ||
} |
52 changes: 52 additions & 0 deletions
52
services/src/main/java/org/keycloak/protocol/oidc4vp/model/sdjwt/ArrayElement.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,52 @@ | ||
package org.keycloak.protocol.oidc4vp.model.sdjwt; | ||
|
||
import java.util.Map; | ||
|
||
public class ArrayElement { | ||
|
||
private String disclosure; | ||
private String digest; | ||
private String salt; | ||
private Object value; | ||
|
||
public ArrayElement(String salt, Object value) { | ||
this.salt = salt; | ||
this.value = value; | ||
} | ||
|
||
public String getSalt() { | ||
return salt; | ||
} | ||
|
||
public void setSalt(String salt) { | ||
this.salt = salt; | ||
} | ||
|
||
public Object getValue() { | ||
return value; | ||
} | ||
|
||
public void setValue(Object value) { | ||
this.value = value; | ||
} | ||
|
||
public String getDisclosure() { | ||
return disclosure; | ||
} | ||
|
||
public void setDisclosure(String disclosure) { | ||
this.disclosure = disclosure; | ||
} | ||
|
||
public String getDigest() { | ||
return digest; | ||
} | ||
|
||
public void setDigest(String digest) { | ||
this.digest = digest; | ||
} | ||
|
||
public ArrayDigest asDigest() { | ||
return new ArrayDigest(this.digest); | ||
} | ||
} |
Oops, something went wrong.