By the way, the only workaround I have for this is to use the System 
Properties.  Set them before creating or opening the graph.  It's a global 
setting

System.setProperty("storage.encryptionMethod", method);
System.setProperty("storage.encryptionKey",    key);
OrientGraphFactory oGF = new OrientGraphFactory(url, username, password);
OrientGraph tx = oGF.getTx();


I tried using the following constructor of OrientGraphFactory:

public OrientGraphFactory(String <https://groups.google.com/forum/*1> iURL, 
String <https://groups.google.com/forum/*2> iUser, String 
<https://groups.google.com/forum/*3> iPassword, OPartitionedDatabasePool 
<https://groups.google.com/forum/*4> pool)

creating my own OPartitionedDatabasePool and overriding:
  protected void openDatabase(final DatabaseDocumentTxPolled db)

but unforunately DatabaseDocumentTxPolled is private in 
OPartitionedDatabasePool 
otherwise it would be possible to set the encryption properties on db and 
call super.openDatabase.

On Wednesday, April 27, 2016 at 3:31:41 AM UTC-4, odbuser wrote:
>
> Bump.  Will this be addressed in 2.2.0?
>
> On Wednesday, April 6, 2016 at 7:29:33 PM UTC-4, odbuser wrote:
>>
>> v 2.2.0-beta2
>>
>> How do you use encryption at rest when using OrientGraphFactory? I don't 
>> see any means to create the database or to open it using the factory.
>>
>> http://orientdb.com/docs/last/Database-Encryption.html
>>
>> Sorry for the double post but I buried the initial one in the 2.2.0-beta 
>> announcement thread and it probably got lost.
>> Edit : Just found the same question on StackOverflow w/o an answer:
>>
>> <http://stackoverflow.com/questions/33501229/creating-a-java-api-graph-connection-with-encrypted-orientdb-2-2-database>
>> http://stackoverflow.com/questions/33501229/creating-a-java-api-graph-connection-with-encrypted-orientdb-2-2-database
>>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to