|
|
|
@ -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);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|