IdentityService.wellKnownPartyFromAnonymous - corda

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

# wellKnownPartyFromAnonymous

`open fun wellKnownPartyFromAnonymous(party: AbstractParty): Party?`

Resolves a (optionally) confidential identity to the corresponding well known identity Party. It transparently handles returning the well known identity back if a well known identity is passed in.

### Parameters

`party` - identity to determine well known identity for.

Return
well known identity, if found.

`open fun wellKnownPartyFromAnonymous(partyRef: PartyAndReference): Party?`

Resolves a (optionally) confidential identity to the corresponding well known identity Party. Convenience method which unwraps the Party from the PartyAndReference and then resolves the well known identity as normal. It transparently handles returning the well known identity back if a well known identity is passed in.

### Parameters

`partyRef` - identity (and reference, which is unused) to determine well known identity for.

Return
the well known identity, or null if unknown.