Switched deprecated API to the new one.

This commit is contained in:
Luca Frosini 2019-11-13 11:33:20 +01:00
parent 42d93b5e4e
commit a6d3ec40c1
1 changed files with 2 additions and 3 deletions

View File

@ -3,12 +3,11 @@
*/
package org.gcube.accounting.persistence;
import java.security.Key;
import java.util.List;
import java.util.Map;
import org.gcube.accounting.datamodel.BasicUsageRecord;
import org.gcube.common.encryption.StringEncrypter;
import org.gcube.common.encryption.encrypter.StringEncrypter;
import org.gcube.common.resources.gcore.ServiceEndpoint;
import org.gcube.common.resources.gcore.ServiceEndpoint.AccessPoint;
import org.gcube.common.resources.gcore.ServiceEndpoint.Property;
@ -75,7 +74,7 @@ public class AccountingPersistenceConfiguration extends PersistenceBackendConfig
return serviceEndpoints.get(0);
}
private static String decrypt(String encrypted, Key... key) throws Exception {
private static String decrypt(String encrypted) throws Exception {
return StringEncrypter.getEncrypter().decrypt(encrypted);
}