setY

Sets the value of the key. When the base, prime and subprime parameters are initialized
and the key value is set, the key is ready for use.
The plain text data format is big-endian and right-aligned (the least significant bit is the least significant
bit of last byte). Input key data is copied into the internal representation.

Note:

If the key object implements the javacardx.crypto.KeyEncryption
interface and the Cipher object specified via setKeyCipher()
is not null, the key value is decrypted using the Cipher object.

isInitialized

Reports the initialized state of the key. Keys must be initialized before
being used.

A Key object sets its initialized state to true only when all the associated
Key object parameters have been set at least once since the time the initialized state was set to false.

A newly created Key object sets its initialized state to false. Invocation of the
clearKey() method sets the initialized state to false. A key with transient key data
sets its initialized state to false on the associated clear events.