Java Card 2.1 Platform
Final Revision 1.0

javacardx.crypto
Interface KeyEncryption


public abstract interface KeyEncryption

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

See Also:
KeyBuilder, Cipher

Method Summary
 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.
 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.
 

Method Detail

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. null parameter indicates that no decryption is required.

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. null return indicates that no decryption is performed.

Submit a bug or feature

Java and Java Card are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1999 Sun Microsystems, Inc.
901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
All Rights Reserved.