Skip to content

Instantly share code, notes, and snippets.

@mebubo
Created September 6, 2012 09:08
Show Gist options
  • Save mebubo/3653438 to your computer and use it in GitHub Desktop.
Save mebubo/3653438 to your computer and use it in GitHub Desktop.
Decrypt proactive credentials
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