BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

custom database connector

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder DB Swing
View previous topic :: View next topic  
Author Message
tom
Guest





PostPosted: Mon Feb 06, 2006 10:03 pm    Post subject: custom database connector Reply with quote



Hi,

I want to encrypt the communication between the Java application and the
database.
I don't know if Jbuilder supports any encryption methods.

How can I take the following Jbuilder method (A) and convert to something
that can accept encryption, like method (B)?




A:
Jbuilder method.

test1dd.setConnection(new
com.borland.dx.sql.dataset.ConnectionDescriptor("jdbc:oracle:thin:@dumy.com:1521:test1,"test1",
"test1", false, "oracle.jdbc.driver.OracleDriver"));


B:
custom method.


try {

DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
Properties prop = new Properties();
prop.setProperty("user", db_username);
prop.setProperty("password", db_passwd);
prop.setProperty("oracle.net.cyrpto_seed","test1234567890");
prop.setProperty("oracle.net.encryption_client", "REQUIRED");
prop.setProperty("oracle.net.encryption_types_client", "(RC4_56)");
prop.setProperty("oracle.net.crypto_checksum_client", "REQUIRED");
prop.setProperty("oracle.net.crypto_checksum_types_client", "(
MD5 )");
Connection conn = DriverManager.getConnection(
"jdbc:oracle:thin:@" + db_server +".dump.com:1521:" +db_sid,
prop);

} catch () {

}

Tom
Back to top
tom
Guest





PostPosted: Mon Feb 06, 2006 11:03 pm    Post subject: custom database connector-correction Reply with quote



Hi,

I want to encrypt the communication between the Java application and the
database.
I don't know if Jbuilder supports any encryption methods.

How would I modify the following Jbuilder method A to have the same desired
function as method B below?




A:
Jbuilder method.

test1dd.setConnection(new
com.borland.dx.sql.dataset.ConnectionDescriptor("jdbc:oracle:thin:@dumy.com:1521:test1,"test1",
"test1", false, "oracle.jdbc.driver.OracleDriver"));


B:
custom method.


try {

DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
Properties prop = new Properties();
prop.setProperty("user", db_username);
prop.setProperty("password", db_passwd);
prop.setProperty("oracle.net.cyrpto_seed","test1234567890");
prop.setProperty("oracle.net.encryption_client", "REQUIRED");
prop.setProperty("oracle.net.encryption_types_client", "(RC4_56)");
prop.setProperty("oracle.net.crypto_checksum_client", "REQUIRED");
prop.setProperty("oracle.net.crypto_checksum_types_client", "(
MD5 )");
Connection conn = DriverManager.getConnection(
"jdbc:oracle:thin:@" + db_server +".dump.com:1521:" +db_sid,
prop);

} catch () {

}

Tom
Back to top
Paul Nichols[TeamB]
Guest





PostPosted: Tue Feb 07, 2006 5:07 am    Post subject: Re: custom database connector-correction Reply with quote



Not out of the Box that I am aware of. Basically, you would need to extend
the Borland Database component to include this additional criteria.

Personally, if I needed or desired encryption of my data streams, I would
opt for socket type programming, where the client would communicate over
encrypted streams to a server side program (like secure socket layers or
https).

"tom" <zhangx (AT) gaia (DOT) ecs.csus.edu> wrote in message
news:43e7c403 (AT) newsgroups (DOT) borland.com...
Quote:
Hi,

I want to encrypt the communication between the Java application and the
database.
I don't know if Jbuilder supports any encryption methods.

How would I modify the following Jbuilder method A to have the same
desired
function as method B below?




A:
Jbuilder method.

test1dd.setConnection(new

com.borland.dx.sql.dataset.ConnectionDescriptor("jdbc:oracle:thin:@dumy.com:

1521:test1,"test1",
Quote:
"test1", false, "oracle.jdbc.driver.OracleDriver"));


B:
custom method.


try {

DriverManager.registerDriver(new
oracle.jdbc.driver.OracleDriver());
Properties prop = new Properties();
prop.setProperty("user", db_username);
prop.setProperty("password", db_passwd);
prop.setProperty("oracle.net.cyrpto_seed","test1234567890");
prop.setProperty("oracle.net.encryption_client", "REQUIRED");
prop.setProperty("oracle.net.encryption_types_client", "(RC4_56)");
prop.setProperty("oracle.net.crypto_checksum_client", "REQUIRED");
prop.setProperty("oracle.net.crypto_checksum_types_client", "(
MD5 )");
Connection conn = DriverManager.getConnection(
"jdbc:oracle:thin:@" + db_server +".dump.com:1521:" +db_sid,
prop);

} catch () {

}

Tom

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder DB Swing All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.