IdentityService.assertOwnership - corda

corda / net.corda.core.node.services / IdentityService / assertOwnership

# assertOwnership

`open fun assertOwnership(party: Party, anonymousParty: AnonymousParty): Unit`

Asserts that an anonymous party maps to the given full party, by looking up the certificate chain associated with the anonymous party and resolving it back to the given full party.

### Exceptions

`UnknownAnonymousPartyException` - if the anonymous party is not owned by the full party.