FilteredTransaction.checkCommandVisibility - corda

corda / net.corda.core.transactions / FilteredTransaction / checkCommandVisibility

# checkCommandVisibility

`fun checkCommandVisibility(publicKey: PublicKey): Unit`

Function that checks if all of the commands that should be signed by the input public key are visible. This functionality is required from Oracles to check that all of the commands they should sign are visible. This algorithm uses the ComponentGroupEnum.SIGNERS_GROUP to count how many commands should be signed by the input PublicKey and it then matches it with the size of received commands. Note that this method does not throw if there are no commands for this key to sign in the original WireTransaction.

### Parameters

`publicKey` - signer's PublicKey

### Exceptions

`ComponentVisibilityException` - if not all of the related commands are visible.