Key Property
The key to employ for the crypto operation.
Syntax
public CryptoKey getKey(); public void setKey(CryptoKey key);
Remarks
Use this property to specify the key to perform the crypto operation with.
Please note that the key assigned should be of a proper type (a public key, not a symmetric key),have a proper set of capabilities (signing and/or encryption), and include its private partfor signing and decryption operations.
This property is not available at design time.