Make ProofType a string instead of enum (#31000)
fixes #30999 Signed-off-by: Pascal Knüppel <pascal.knueppel@governikus.de>
This commit is contained in:
parent
479e2132fc
commit
8485bc38ef
2 changed files with 9 additions and 18 deletions
|
@ -30,15 +30,15 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
|||
public class Proof {
|
||||
|
||||
@JsonProperty("proof_type")
|
||||
private ProofType proofType;
|
||||
private String proofType;
|
||||
|
||||
private Object proofObject;
|
||||
|
||||
public ProofType getProofType() {
|
||||
public String getProofType() {
|
||||
return proofType;
|
||||
}
|
||||
|
||||
public Proof setProofType(ProofType proofType) {
|
||||
public Proof setProofType(String proofType) {
|
||||
this.proofType = proofType;
|
||||
return this;
|
||||
}
|
||||
|
@ -51,4 +51,4 @@ public class Proof {
|
|||
this.proofObject = proofObject;
|
||||
return this;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -23,19 +23,10 @@ package org.keycloak.protocol.oid4vc.model;
|
|||
*
|
||||
* @author <a href="https://github.com/wistefan">Stefan Wiedemann</a>
|
||||
*/
|
||||
public enum ProofType {
|
||||
public final class ProofType {
|
||||
|
||||
JWT("jwt"),
|
||||
LD_PROOF("ldp_vp"),
|
||||
CWT("cwt");
|
||||
public static final String JWT = "jwt";
|
||||
public static final String LD_PROOF = "ldp_vp";
|
||||
public static final String CWT = "cwt";
|
||||
|
||||
private final String value;
|
||||
|
||||
ProofType(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue