**javacardx.crypto** ====Interface KeyEncryption ==== ---- KeyEncryption interface defines the methods used to enable encrypted key data access to a key implementation. **See Also:**[[javacard:java-card-api:KeyBuilder|javacard.security.KeyBuilder]] , [[javacard:java-card-api:Cipher|Cipher]] ---- ^ Method Summary ^^ | ** [[javacard:java-card-api:Cipher|Cipher]] ** | **[[javacard:java-card-api:KeyEncryption#getKeyCipher()|getKeyCipher]] **()          Returns the Cipher object to be used to decrypt the input key data and key parameters in the set methods. | | ** void** | **[[javacard:java-card-api:KeyEncryption#setKeyCipher(javacardx.crypto.Cipher)|setKeyCipher]] **([[javacard:java-card-api:Cipher|Cipher]]  keyCipher)          Sets the Cipher object to be used to decrypt the input key data and key parameters in the set methods. |   ^ Method Detail ^ === setKeyCipher === void **setKeyCipher**([[javacard:java-card-api:Cipher|Cipher]]  keyCipher) Sets the Cipher object to be used to decrypt the input key data and key parameters in the set methods. Default Cipher object is null - no decryption performed. **Parameters:**keyCipher - the decryption Cipher object to decrypt the input key data. The null parameter indicates that no decryption is required. ---- === getKeyCipher === [[javacard:java-card-api:Cipher|Cipher]] **getKeyCipher**() Returns the Cipher object to be used to decrypt the input key data and key parameters in the set methods. Default is null - no decryption performed. **Returns:**keyCipher, the decryption Cipher object to decrypt the input key data. The null return indicates that no decryption is performed.