public class ConvertDES2AES
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected java.io.PrintStream |
ivLog
The stream where processing status messages are logged.
|
private static long |
serialVersionUID
The class' serialization version id.
|
Constructor and Description |
---|
ConvertDES2AES(java.io.PrintStream log)
Constructs a new DES to AES conversion class.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
columnToString(java.sql.ResultSet rs,
java.lang.String colname)
Returns a
String object from the given result set of database
records for the specified column name. |
void |
execute()
Controls the processing for the request parameters.
|
static void |
main(java.lang.String[] args)
The main entry point for when the class is started from a command line.
|
protected boolean |
processCreditCards(JDBCConnectionInfo cninf)
Process credit card data.
|
protected boolean |
processPasswords(JDBCConnectionInfo cninf)
Process password data.
|
private static final long serialVersionUID
protected java.io.PrintStream ivLog
public ConvertDES2AES(java.io.PrintStream log)
log
- (PrintStream) The stream where processing status messages
are logged.public static void main(java.lang.String[] args)
args
- (String[]) A string array of startup parameters.public void execute()
protected boolean processCreditCards(JDBCConnectionInfo cninf) throws java.lang.Exception
cninf
- (JDBCConnectionInfo) The JDBC connection to use.true
if processing is successful,
otherwise false
.java.lang.Exception
protected boolean processPasswords(JDBCConnectionInfo cninf) throws java.lang.Exception
cninf
- (JDBCConnectionInfo) The JDBC connection to use.true
if processing is successful,
otherwise false
.java.lang.Exception
protected java.lang.String columnToString(java.sql.ResultSet rs, java.lang.String colname) throws java.sql.SQLException
String
object from the given result set of database
records for the specified column name.rs
- (ResultSet) The result set containing the database record
from which a column's string value is to be retrieved.colname
- (String) The name of the column from which a string
is to be retrieved and returned.String
.
A null column value is returned as an empty string.java.sql.SQLException
- if an error occurs while processing the
result set.