public static java.security.KeyFactory | getInstance(java.lang.String algorithm)Generates a KeyFactory object that implements the specified
algorithm.
if (algorithm.toUpperCase().equals("RSA")) {
return new KeyFactory();
}
throw new NoSuchAlgorithmException();
|