Welcome!

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

Reply
Developer
Posts: 264
Registered: ‎06-04-2009
My Device: Not Specified

Database backup functionality issue due to security options

Dear all,

 

I am installing an application in which the database needs to be backed up to the server and it can be restored t oanother device. In this implementation when I use the following code the backup functionality is not working

 

DatabaseSecurityOptions dbso = new DatabaseSecurityOptions(codeSigningKey);

 

The codeSigningKey is as follows

codeSigningKey = CodeSigningKey.get(SignatureClass.getKey());

 

final public class SignatureClass {
private static final SignatureClass INSTANCE = new SignatureClass();

private SignatureClass(){}

public static CodeSigningKey getKey(){
return CodeSigningKey.get(INSTANCE);
}
}

I am not able to open the database after restoring it. Is there any problem with the above code ??

Developer
Posts: 264
Registered: ‎06-04-2009
My Device: Not Specified

Re: Database backup functionality issue due to security options

Dear all,

 

Is the DatabaseSecurityOptions not suggested for such applications. Is the database encrypted based on the device pin ?