Added utility test to decrypt a secret

migrating_to_smartgears_4 r5.7.0
Luca Frosini 2 years ago
parent f47891949d
commit 5ac1039d60

@ -1,5 +1,6 @@
package org.gcube.gcat.utils;
import org.gcube.common.encryption.encrypter.StringEncrypter;
import org.gcube.gcat.ContextTest;
import org.junit.Test;
import org.slf4j.Logger;
@ -15,4 +16,12 @@ public class URIResolverTest extends ContextTest {
logger.debug("Item URL is {}", catalogueItemURL);
}
@Test
public void decrypt() throws Exception {
ContextTest.setContextByName("/gcube/devsec/devVRE");
String encrypted = "";
String pwd = StringEncrypter.getEncrypter().decrypt(encrypted);
logger.info(pwd);
}
}

Loading…
Cancel
Save