org.eclipse.higgins.icard.provider.cardspace.common.utils
Class EncryptedMasterKey

java.lang.Object
  extended by org.eclipse.higgins.icard.provider.cardspace.common.utils.EncryptedMasterKey

public class EncryptedMasterKey
extends Object

This class helps to generate symmethric key used to encrypt/decrypt masterkey and claim values (the salt and initVector bytes of key are stored within encrypted masterkey bytes)


Constructor Summary
EncryptedMasterKey(byte[] encryptedMasterKey, byte[] pinCode)
           
EncryptedMasterKey(byte[] decryptedMasterKey, byte[] salt, byte[] initVector, byte[] pinCode)
           
 
Method Summary
 byte[] getDecryptedMasterKey()
           
 byte[] getEncryptedMasterKey()
           
 byte[] getInitVector()
           
 Key getKey()
           
 byte[] getPinCode()
           
 byte[] getSalt()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EncryptedMasterKey

public EncryptedMasterKey(byte[] encryptedMasterKey,
                          byte[] pinCode)
                   throws org.eclipse.higgins.icard.CardException
Throws:
org.eclipse.higgins.icard.CardException

EncryptedMasterKey

public EncryptedMasterKey(byte[] decryptedMasterKey,
                          byte[] salt,
                          byte[] initVector,
                          byte[] pinCode)
                   throws org.eclipse.higgins.icard.CardException
Throws:
org.eclipse.higgins.icard.CardException
Method Detail

getKey

public Key getKey()

getInitVector

public byte[] getInitVector()

getSalt

public byte[] getSalt()

getPinCode

public byte[] getPinCode()

getDecryptedMasterKey

public byte[] getDecryptedMasterKey()
                             throws org.eclipse.higgins.icard.CardException
Throws:
org.eclipse.higgins.icard.CardException

getEncryptedMasterKey

public byte[] getEncryptedMasterKey()
                             throws org.eclipse.higgins.icard.CardException
Throws:
org.eclipse.higgins.icard.CardException