public class RSASig extends Object
| 构造器和说明 |
|---|
RSASig() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
bytesToHexStr(byte[] bcd)
Transform the specified byte into a Hex String form.
|
boolean |
generateKeys() |
String |
generateSigature(String src) |
String |
getPrivateKey() |
String |
getPublicKey() |
static byte[] |
hexStrToBytes(String s)
Transform the specified Hex String into a byte array.
|
void |
setPrivateKey(String pkey) |
void |
setPublicKey(String pkey) |
boolean |
verifySigature(String sign,
String src) |
public boolean generateKeys()
public String getPublicKey()
public String getPrivateKey()
public void setPublicKey(String pkey)
public void setPrivateKey(String pkey)
public static final String bytesToHexStr(byte[] bcd)
public static final byte[] hexStrToBytes(String s)
Copyright © 2020. All rights reserved.