mirror of
https://github.com/corda/corda.git
synced 2025-06-23 01:19:00 +00:00
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:
committed by
Roger Willis
parent
cd0d5c7724
commit
c2057e0893
@ -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?
|
||||
}
|
Reference in New Issue
Block a user