javacard.security
Class XORKey

java.lang.Object
  |
  +--javacard.security.XORKey
All Implemented Interfaces:
DESKey, Key, SecretKey

public class XORKey
extends java.lang.Object
implements DESKey


Field Summary
private  boolean initialized
           
private  byte[] key
           
static byte KEYLENGTH
           
 
Constructor Summary
XORKey()
           
 
Method Summary
 void clearKey()
           
 byte getKey(byte[] keyData, short offset)
           
 short getSize()
           
 byte getType()
           
 boolean isInitialized()
           
 void setKey(byte[] keyData, short offset)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KEYLENGTH

public static final byte KEYLENGTH
See Also:
Constant Field Values

key

private byte[] key

initialized

private boolean initialized
Constructor Detail

XORKey

public XORKey()
Method Detail

setKey

public void setKey(byte[] keyData,
                   short offset)
            throws CryptoException,
                   java.lang.NullPointerException,
                   java.lang.ArrayIndexOutOfBoundsException
Specified by:
setKey in interface DESKey
CryptoException
java.lang.NullPointerException
java.lang.ArrayIndexOutOfBoundsException

getKey

public byte getKey(byte[] keyData,
                   short offset)
Specified by:
getKey in interface DESKey

isInitialized

public boolean isInitialized()
Specified by:
isInitialized in interface Key

clearKey

public void clearKey()
Specified by:
clearKey in interface Key

getType

public byte getType()
Specified by:
getType in interface Key

getSize

public short getSize()
Specified by:
getSize in interface Key