Created
September 6, 2012 09:08
-
-
Save mebubo/3653438 to your computer and use it in GitHub Desktop.
Decrypt proactive credentials
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package credentials; | |
import java.security.KeyException; | |
import org.ow2.proactive.authentication.crypto.CredData; | |
import org.ow2.proactive.authentication.crypto.Credentials; | |
public class Decrypt { | |
static String CRED_PATH = "config/authentication/rm.cred"; | |
static String KEY_PATH = "config/authentication/keys/priv.key"; | |
public static void main(String[] args) throws KeyException { | |
Credentials credentials = Credentials.getCredentials(CRED_PATH); | |
CredData credData; | |
credData = credentials.decrypt(KEY_PATH); | |
System.out.println(credData.getLogin() + " " + credData.getPassword()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment