Renamed method
This commit is contained in:
		
							parent
							
								
									be6891e857
								
							
						
					
					
						commit
						6f2b840fc4
					
				@ -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);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -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);
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user