Commit f0f70931 authored by yanzg's avatar yanzg

表结构修改

parent f8ba3bf6
...@@ -114,7 +114,7 @@ public final class RsaHelper { ...@@ -114,7 +114,7 @@ public final class RsaHelper {
* *
* @return 公钥 * @return 公钥
*/ */
private static PublicKey getPublicKey(String publicKey) { public static PublicKey getPublicKey(String publicKey) {
try { try {
X509EncodedKeySpec publicKeySpec = new X509EncodedKeySpec(decodeBase64(publicKey)); X509EncodedKeySpec publicKeySpec = new X509EncodedKeySpec(decodeBase64(publicKey));
KeyFactory keyFactory = KeyFactory.getInstance(ALGORITHM_RSA); KeyFactory keyFactory = KeyFactory.getInstance(ALGORITHM_RSA);
...@@ -129,7 +129,7 @@ public final class RsaHelper { ...@@ -129,7 +129,7 @@ public final class RsaHelper {
* *
* @return 私钥 * @return 私钥
*/ */
private static PrivateKey getPrivateKey(String privateKey) { public static PrivateKey getPrivateKey(String privateKey) {
try { try {
PKCS8EncodedKeySpec privateKeySpec = new PKCS8EncodedKeySpec(decodeBase64(privateKey)); PKCS8EncodedKeySpec privateKeySpec = new PKCS8EncodedKeySpec(decodeBase64(privateKey));
KeyFactory keyFactory = KeyFactory.getInstance(ALGORITHM_RSA); KeyFactory keyFactory = KeyFactory.getInstance(ALGORITHM_RSA);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment