Академический Документы
Профессиональный Документы
Культура Документы
Introduction
Lockbox is a RSA library coded with C++ used
to store data
One delivery by platform (Windows, Linux)
and by architecture (32 or 64 bits)
Communication between our Java classes and
C++ libraries use JNI ( Java Native Interface )
with Java librairies provided into Lockbox RSA.
Introduction - next
Lockbox is used to
secure passwords
get encryption key to encrypt all data exchange
between D2 and JMS.
Data stored are saved in D2.lockbox file.
Before : D2FS.properties file
LoadOnStartup.password.1=<encrypted value
with hard coded key>
After : D2.lockbox
LoadOnStartup.<docbase>.password=
D2LockboxProperties.java
Main access to D2.lockbox file.
This file can be read only on the machine
where it has been generated.
For read a password :
D2LockboxProperties.getProperty(key)
Possible keys :
LoadOnStartup.<docbase>.password
D2Method.passphase
...
SetLockboxProperty.java
Used to set a protected property.
Usage :
java SetLockboxProperty <D2.lockbox path> <property>
<value> [lockbox passphrase]
setMethodReturn(code, message)
Set a message crypted automatically to return to D2.
setMethodError(exception)
Set a exception message crypted automatically to
return to D2
D2CryptoUtil.java
getEncryptionKey()
Return key to crypt D2 method parameters or D2 method
response
getDecryptionKey()
Return key to crypt D2 method parameters or D2 method
response
encryptUrlParameter()
Encrypt parameters for ReloadOptions , RefreshCache ,
LoadOnStartup servlets.
decryptUrlParameter()
Decrypt parameters for ReloadOptions , RefreshCache ,
LoadOnStartup servlets.