Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@
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;
}
Expand All @@ -51,4 +51,4 @@ public Proof setProofObject(Object proofObject) {
this.proofObject = proofObject;
return this;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,10 @@
*
* @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;
}
}
}