Package org.alfresco.encryption
Class KeyStoreParameters
java.lang.Object
org.alfresco.encryption.KeyStoreParameters
Stores Java keystore initialisation parameters.
WARNING. Storing passwords (keyMetaDataFileLocation) on the file system is not following best security practices.
- Since:
- 4.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()
getName()
getType()
void
init()
void
void
setKeyMetaDataFileLocation
(String keyMetaDataFileLocation) void
setLocation
(String location) void
void
setProvider
(String provider) void
-
Constructor Details
-
KeyStoreParameters
public KeyStoreParameters() -
KeyStoreParameters
public KeyStoreParameters(String id, String name, String type, String keyStoreProvider, String keyMetaDataFileLocation, String location) WARNING. Storing passwords (keyMetaDataFileLocation) on the file system is not following best security practices. Set the unique ID of the keystore and aliases to use Java system properties lookup instead. The property lookup format is:- [keystore-id].password - keystore password
- [keystore-id].aliases - comma separated list of aliases for the keys in the keystore
- [keystore-id].[alias].keydata - key data bytes in base64
- [keystore-id].[alias].algorithm - key algorithm
- [keystore-id].[alias].password - key password
- Parameters:
id
- unique identifier of the keystorename
- human readable name of the keystoretype
- type of the keystorekeyStoreProvider
- keystore providerkeyMetaDataFileLocation
- path to keystore metadata file on the file systemlocation
- path to keystore on the file system
-
KeyStoreParameters
@Deprecated public KeyStoreParameters(String name, String type, String keyStoreProvider, String keyMetaDataFileLocation, String location) Deprecated.
-
-
Method Details
-
init
public void init() -
getId
-
getName
-
getType
-
getProvider
-
getKeyMetaDataFileLocation
-
getLocation
-
setId
-
setName
-
setType
-
setProvider
-
setKeyMetaDataFileLocation
-
setLocation
-