javacardx.crypto
Interface KeyEncryption


public interface KeyEncryption

KeyEncryption interface defines the methods used to enable encrypted key data access to a key implementation.

See Also:
KeyBuilder

Method Summary
 Cipher getKeyCipher()
          Returns the Cipher object to be used to decrypt the input key data and key parameters in the set methods.
 void setKeyCipher(Cipher keyCipher)
          Sets the Cipher object to be used to decrypt the input key data and key parameters in the set methods.
 

Method Detail

getKeyCipher

public 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.

setKeyCipher

public void setKeyCipher(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.


Java and all Java-based trademarks and logos are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other countries.