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

Constructor Index

 o Data()
Default Constructor
 o Data(byte[], byte[])
Constructor

Method Index

 o decrypt(byte[])
decrypt the data comtained in this object The type of decryption is default to be RSA
 o decrypt(byte[], int)
decrypt the data comtained in this object
 o encrypt(byte[])
encrypt the data comtained in this object The type of encryption is default to be RSA
 o encrypt(byte[], int)
encrypt the data comtained in this object
 o getData()
Get the data in this object

Constructors

 o Data
 public Data()
Default Constructor

 o Data
 public Data(byte data[],
             byte key[])
Constructor

Parameters:
data - The unencrypted data
key - A key to use for encrypting and decrypting data

Methods

 o 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
 o 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
 o 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
 o 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
 o 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