src/main/java/com/hedera/hashgraph/identity/hcs/vc/HcsVcTopicListener.java
/**
   * Checks if the signature on the envelope is accepted by any public key supplied for the credential hash.
   *
   * @param envelope The message envelope.
   * @return True if signature is accepted, false otherwise.
   */
Checks if the signature on the envelope is accepted by any public key supplied for the credential hash.
@param envelope The message envelope.
@return True if signature is accepted, false otherwise.
Checks if the signature on the envelope is accepted by any public key supplied for the credential hash . @param envelope The message envelope . @return True if signature is accepted false otherwise .
private boolean isSignatureAccepted(final MessageEnvelope<HcsVcMessage> envelope) {
    if (publicKeysProvider == null) {
      return false;
    }
    Collection<PublicKey> acceptedKeys = publicKeysProvider.apply(envelope.open().getCredentialHash());
    if (acceptedKeys == null || acceptedKeys.isEmpty()) {
      return false;
    }
    for (PublicKey publicKey : acceptedKeys) {
      if (envelope.isSignatureValid(e -> publicKey)) {
        return true;
      }
    }
    return false;
  }
private boolean isSignatureAccepted ( final MessageEnvelope < HcsVcMessage > envelope ) { if ( publicKeysProvider == null ) { return false ; } Collection < PublicKey > acceptedKeys = publicKeysProvider . apply ( envelope . open ( ) . getCredentialHash ( ) ) ; if ( acceptedKeys == null || acceptedKeys . isEmpty ( ) ) { return false ; } for ( PublicKey publicKey : acceptedKeys ) { if ( envelope . isSignatureValid ( e -> publicKey ) ) { return true ; } } return false ; }
Checks if the signature on the envelope is accepted by any public key supplied for the credential hash.
Checks if the signature on the envelope is accepted by any public key supplied for the credential hash .