CORDA-3180: Added ability to lookup the associated UUID for a public key to KeyManagementService (#5411)

* expose identity cache to KMSinternal

* apply shams comments

* Addressed review comments.
This commit is contained in:
Stefano Franz
2019-09-01 06:57:46 +00:00
committed by Roger Willis
parent cd0d5c7724
commit c2057e0893
5 changed files with 27 additions and 0 deletions

View File

@ -90,4 +90,13 @@ interface KeyManagementService {
*/
@Suspendable
fun sign(signableData: SignableData, publicKey: PublicKey): TransactionSignature
/**
* This method allows lookups of [PublicKey]s to an associated "external ID" / [UUID]. Providing a [PublicKey] that is unknown by the node
* or is not mapped to an external ID will return null. Otherwise, if the [PublicKey] has been mapped to an external ID, then the [UUID]
* for that external ID will be returned.
* @param publicKey the [PublicKey] used to perform the lookup to external ID
*/
@Suspendable
fun externalIdForPublicKey(publicKey: PublicKey): UUID?
}