类 RsaKey


  • public class RsaKey
    extends Object
    rasKey
    作者:
    guer
    • 构造器详细资料

      • RsaKey

        public RsaKey()
    • 方法详细资料

      • getPublicKey

        public byte[] getPublicKey()
        获取公钥
        返回:
        公钥
      • setPublicKey

        public RsaKey setPublicKey​(String publicKey)
        设置公钥
        参数:
        publicKey - 公钥
        返回:
        rasKey
      • getPrivateKey

        public byte[] getPrivateKey()
        获取私钥
        返回:
        私钥
      • setPrivateKey

        public RsaKey setPrivateKey​(String privateKey)
        设置私钥
        参数:
        privateKey - 私钥
        返回:
        rasKey