public interface IPublicKeySource
IndexedECPublicKey
. You can get keys by index or latest active.Modifier and Type | Method and Description |
---|---|
IndexedECPublicKey |
getByIndex(UUID userId,
KeyType type,
int index)
This gets the public key that match the user ID, type and inde.
|
IndexedECPublicKey |
getLatestActive(UUID userId,
KeyType type)
This gets the latest active public key that match the user ID and type.
|
IndexedECPublicKey getByIndex(UUID userId, KeyType type, int index) throws Exception
userId
- the user id of the key ownertype
- the KeyType
of the keyindex
- the index of the keyIndexedECPublicKey
for the user of the specified KeyType
and indexException
- left open ended to allow the implementer to be less restrictiveIndexedECPublicKey getLatestActive(UUID userId, KeyType type) throws Exception
NOTE: if there is not an active key null will be returned.
Copyright © 2021. All rights reserved.