use of org.syncany.crypto.CipherSpec in project syncany by syncany.
the class DefaultRepoTOFactory method getCipherTransformerTO.
protected TransformerTO getCipherTransformerTO(List<CipherSpec> cipherSpec) {
String cipherSuitesIdStr = StringUtil.join(cipherSpec, ",", new StringJoinListener<CipherSpec>() {
@Override
public String getString(CipherSpec cipherSpec) {
return "" + cipherSpec.getId();
}
});
Map<String, String> cipherTransformerSettings = new HashMap<String, String>();
cipherTransformerSettings.put(CipherTransformer.PROPERTY_CIPHER_SPECS, cipherSuitesIdStr);
// Note: Property 'password' is added dynamically by CommandLineClient
TransformerTO cipherTransformerTO = new TransformerTO();
cipherTransformerTO.setType(CipherTransformer.TYPE);
cipherTransformerTO.setSettings(cipherTransformerSettings);
return cipherTransformerTO;
}
Aggregations