db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Van Couvering <da...@vancouvering.com>
Subject securityMechanism for network client - can't make it work
Date Fri, 15 Jun 2007 19:12:38 GMT
OK, I'm completely flummoxed.  I am trying to use strong password 
mechanism instead of password in the clear, in an attempt to try and 
write up how to do basic security in Derby.

I read the docs, and they talk about setting the securityMechanism 
property on the URL.  But it doesn't actually have an example.  I have 
tried:

"jdbc:derby://localhost:1527;securityMechanism=STRONG_PASSWORD_SUBSTITUTE_SECURITY"
java.lang.NumberFormatException: For input string: 
"STRONG_PASSWORD_SUBSTITUTE_SECURITY"
	at 
java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
	at java.lang.Integer.parseInt(Integer.java:456)
	at java.lang.Short.parseShort(Short.java:120)
	at java.lang.Short.parseShort(Short.java:78)
	at org.apache.derby.jdbc.ClientBaseDataSource.parseShort(Unknown Source)
	at 
org.apache.derby.jdbc.ClientBaseDataSource.getSecurityMechanism(Unknown 
Source)
=> NumberFormatException

"jdbc:derby://localhost:1527;securityMechanism=0x08"

java.lang.NumberFormatException: For input string: "0x08"
	at 
java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
	at java.lang.Integer.parseInt(Integer.java:456)
	at java.lang.Short.parseShort(Short.java:120)
	at java.lang.Short.parseShort(Short.java:78)
	at org.apache.derby.jdbc.ClientBaseDataSource.parseShort(Unknown Source)
	at 
org.apache.derby.jdbc.ClientBaseDataSource.getSecurityMechanism(Unknown 
Source)
"jdbc:derby://localhost:1527;securityMechanism=8"

=> security mechanism '8' not supported

So, can someone tell me what I'm actually supposed to do here?

Thanks,

David

Mime
View raw message