类 RsaKey
java.lang.Object
net.guerlab.smart.license.service.utils.RsaKey
public class RsaKey
extends java.lang.Object
rasKey
- 作者:
- guer
-
构造器概要
构造器 构造器 说明 RsaKey() -
方法概要
修饰符和类型 方法 说明 byte[]getPrivateKey()获取私钥byte[]getPublicKey()获取公钥RsaKeysetPrivateKey(java.lang.String privateKey)设置私钥RsaKeysetPublicKey(java.lang.String publicKey)设置公钥
-
构造器详细资料
-
RsaKey
public RsaKey()
-
-
方法详细资料
-
getPublicKey
public byte[] getPublicKey()获取公钥- 返回:
- 公钥
-
setPublicKey
设置公钥- 参数:
publicKey- 公钥- 返回:
- rasKey
-
getPrivateKey
public byte[] getPrivateKey()获取私钥- 返回:
- 私钥
-
setPrivateKey
设置私钥- 参数:
privateKey- 私钥- 返回:
- rasKey
-