All Packages Class Hierarchy This Package Previous Next Index
Class Authentication.ODD.Data
java.lang.Object
|
+----Authentication.ODD.Data
- public class Data
- extends Object
Data class
This is a wrapper class for both encrypted and unencrypted class
- Version:
- 1.0
- Author:
- Authentication Subgroup
-
Data()
- Default Constructor
-
Data(byte[], byte[])
- Constructor
-
decrypt(byte[])
- decrypt the data comtained in this object
The type of decryption is default to be RSA
-
decrypt(byte[], int)
- decrypt the data comtained in this object
-
encrypt(byte[])
- encrypt the data comtained in this object
The type of encryption is default to be RSA
-
encrypt(byte[], int)
- encrypt the data comtained in this object
-
getData()
- Get the data in this object
Data
public Data()
- Default Constructor
Data
public Data(byte data[],
byte key[])
- Constructor
- Parameters:
- data - The unencrypted data
- key - A key to use for encrypting and decrypting data
decrypt
public void decrypt(byte key[])
- decrypt the data comtained in this object
The type of decryption is default to be RSA
- Parameters:
- key - A key is passed in to authenticate
decrypt
public void decrypt(byte key[],
int type)
- decrypt the data comtained in this object
- Parameters:
- key - A key is passed in to authenticate
- type - The type of decryption to use
encrypt
public void encrypt(byte key[])
- encrypt the data comtained in this object
The type of encryption is default to be RSA
- Parameters:
- key - A key is passed in to authenticate
encrypt
public void encrypt(byte key[],
int type)
- encrypt the data comtained in this object
- Parameters:
- key - A key is passed in to authenticate
- type - The type of encryption to use
getData
public byte[] getData()
- Get the data in this object
- Returns:
- a byte array that has the data
All Packages Class Hierarchy This Package Previous Next Index