mirror of
https://github.com/corda/corda.git
synced 2025-06-18 23:28:21 +00:00
Remove deregisterIdentity()
Remove the ability to remove registered identities. Once registered, identities are part of a permanent record (for example you would want to ensure parties to contracts cannot "disappear" by removing themselves from the identity service).
This commit is contained in:
@ -10,7 +10,11 @@ import java.security.PublicKey
|
||||
*/
|
||||
interface IdentityService {
|
||||
fun registerIdentity(party: Party)
|
||||
fun deregisterIdentity(party: Party)
|
||||
|
||||
// There is no method for removing identities, as once we are made aware of a Party we want to keep track of them
|
||||
// indefinitely. It may be that in the long term we need to drop or archive very old Party information for space,
|
||||
// but for now this is not supported.
|
||||
|
||||
fun partyFromKey(key: PublicKey): Party?
|
||||
fun partyFromName(name: String): Party?
|
||||
}
|
||||
|
Reference in New Issue
Block a user