OpenCard  
 
OCF, the OpenCard Framework is a standard Java framework for working with Smart Cards.  
 

opencard.tests.service
Class DecipherData

java.lang.Object
  |
  +--opencard.tests.testframe.TestCase
        |
        +--opencard.tests.service.DecipherData

public class DecipherData
extends TestCase
implements java.lang.Runnable

This test tries to decrypt a given message with a key


Constructor Summary
DecipherData()
           
DecipherData(byte[] Data, byte[] Key)
          initalizes the data to be decrypt and the key to be used.
 
Method Summary
 byte[] decipher(byte[] inData, byte[] Key)
          Decipher Data.
static int getRetCode()
           
static void main(java.lang.String[] args)
          Starts the program instantiates the test.
 void run()
          calls the method dechiper and evaluates the return value.
static void setRetCode(int rc)
           
 int start(java.lang.String[] args)
           
 
Methods inherited from class opencard.tests.testframe.TestCase
getTestFrameReference, setTestFrameReference, showActionRequired, showError, showInfo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DecipherData

public DecipherData(byte[] Data,
                    byte[] Key)
initalizes the data to be decrypt and the key to be used.
Parameters:
Data - Data to be deciphered
Key - Key to use

DecipherData

public DecipherData()
Method Detail

main

public static void main(java.lang.String[] args)
Starts the program instantiates the test.

start

public int start(java.lang.String[] args)
Overrides:
start in class TestCase

run

public void run()
calls the method dechiper and evaluates the return value.
Specified by:
run in interface java.lang.Runnable

decipher

public byte[] decipher(byte[] inData,
                       byte[] Key)
Decipher Data.

Parameters:
Data - Data to be deciphered
Key - Key to use

setRetCode

public static void setRetCode(int rc)

getRetCode

public static int getRetCode()