java.lang.Object
net.guerlab.smart.license.service.utils.RsaKey

public class RsaKey
extends java.lang.Object
rasKey
作者:
guer
  • 构造器概要

    构造器 
    构造器 说明
    RsaKey()  
  • 方法概要

    修饰符和类型 方法 说明
    byte[] getPrivateKey()
    获取私钥
    byte[] getPublicKey()
    获取公钥
    RsaKey setPrivateKey​(java.lang.String privateKey)
    设置私钥
    RsaKey setPublicKey​(java.lang.String publicKey)
    设置公钥

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

  • 方法详细资料

    • getPublicKey

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

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

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

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