Added utility test to decrypt a secret
This commit is contained in:
parent
f47891949d
commit
5ac1039d60
|
@ -1,5 +1,6 @@
|
||||||
package org.gcube.gcat.utils;
|
package org.gcube.gcat.utils;
|
||||||
|
|
||||||
|
import org.gcube.common.encryption.encrypter.StringEncrypter;
|
||||||
import org.gcube.gcat.ContextTest;
|
import org.gcube.gcat.ContextTest;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
|
@ -15,4 +16,12 @@ public class URIResolverTest extends ContextTest {
|
||||||
logger.debug("Item URL is {}", catalogueItemURL);
|
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…
Reference in New Issue