Renamed method

This commit is contained in:
Xavi Aracil 2023-01-09 13:52:08 +01:00
parent be6891e857
commit 6f2b840fc4
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ public class W3CVCHolder {
* returns a list of all proofs defined in the credential.
* @return proofs defined in the credential
*/
public List<LdProof> getLdProofs() {
public List<LdProof> getProofs() {
return JsonLDObjectUtils.getListFromJsonLDObject(LdProof.class, credential);
}

View File

@ -43,7 +43,7 @@ public class EmbeddedProofProbe extends Probe<VerifiableCredential> {
W3CVCHolder credentiaHolder = new W3CVCHolder(com.danubetech.verifiablecredentials.VerifiableCredential.fromJson(new StringReader(crd.getJson().toString())));
List<LdProof> proofs = credentiaHolder.getLdProofs();
List<LdProof> proofs = credentiaHolder.getProofs();
if (proofs == null || proofs.size() == 0) {
return error("The verifiable credential is missing a proof.", ctx);
}