Get Size of Global Key
Obtain an instance of the key using the
getSecretKey
method of theNAEKey
class.Call the
getKeySize
method of the key object.
Code sample
The following code sample returns the size of mykey:
NAESecretKey key = NAEKey.getSecretKey("mykey");
int size = key.getKeySize();