check issuer only if provided
This commit is contained in:
		
							parent
							
								
									e0ff4598db
								
							
						
					
					
						commit
						e1b831d251
					
				@ -259,7 +259,7 @@ public class EmbeddedProofProbe extends Probe<VerifiableCredential> {
 | 
			
		||||
      return error("Invalid public key: " + e.getMessage(), ctx);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if (controller != null) {
 | 
			
		||||
    if (controller != null && credentialHolder.getCredential().getIssuer() != null) {
 | 
			
		||||
      if (!controller.equals(credentialHolder.getCredential().getIssuer().toString())) {
 | 
			
		||||
        return error(
 | 
			
		||||
            "Key controller does not match issuer: " + credentialHolder.getCredential().getIssuer(),
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user