Fetching Key Version using ID
To fetch a key version using ID:
Call the
GetKeyVersionById
method from theNaeKeyManagement
class.Pass
ID
andKeyIdType
as parameters.
This API supports UUID only, therefore KeyIdType
can only be KeyIdType.UUID
as shown below.
The return type of a GetKeyVersionById
is VersionInfo
. The VersionInfo
class consists of the following properties.
For non-versioned keys, the returned version will be -1
with Null header bytes.
Note
Irrespective of caching enabled or disabled in the Properties file, the GetKeyVersionById
API will always fetch information from the CipherTrust Manager.