类 KeyUtils

java.lang.Object
com.cdkjframework.util.encrypts.china.KeyUtils

public class KeyUtils extends Object
  • 构造器详细资料

    • KeyUtils

      public KeyUtils()
  • 方法详细资料

    • generateSmKey

      public static String[] generateSmKey() throws Exception
      生成国密公私钥对
      返回:
      返回结果
      抛出:
      Exception - 异常信息
    • createPublicKey

      public static PublicKey createPublicKey(String publicKey)
      将Base64转码的公钥串,转化为公钥对象
      参数:
      publicKey - 公钥匙
      返回:
      返回结果
    • createPrivateKey

      public static PrivateKey createPrivateKey(String privateKey)
      将Base64转码的私钥串,转化为私钥对象
      参数:
      privateKey - 私钥匙
      返回:
      返回结果