Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

New Developer
Posts: 31
Registered: ‎08-02-2010
My Device: 9500
My Carrier: Developer

code signing keys at run time??




      I have got code signing keys installed in ecclipse.i signed my application by using them.

i am using jde 5.0  .i want to get codesigning keys at run time

	URI myURI = URI.create("file:///SDCard/Databases/AppPack/main.db");
			 CodeSigningKey codeSigningKey = CodeSigningKey.get( CodeModuleManager.getModuleHandle( "AppPack" ), "ACME" );

			DatabaseSecurityOptions dbso = new DatabaseSecurityOptions(codeSigningKey);
				this.db = DatabaseFactory.openOrCreate(myURI,dbso);
		} catch (Exception e) {
			System.out.println("database create err"+e);

I am getting null in the codesigning object.


Please help



Posts: 16,986
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: code signing keys at run time??

you are mixing things up. code signing for database-security (or persistant store etc) is not related to the code signing keys you get from RIM. re-read the documentation.

(you have to set up an own crypto server, create own keys etc. ACME is only a sample)

feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter