public class RSAPublicEncrypt extends DefaultEncrypt
| 构造器和说明 |
|---|
RSAPublicEncrypt(byte[] publicKey) |
RSAPublicEncrypt(RSAPublicKey publicKey) |
RSAPublicEncrypt(String publicKey) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected EncodedKeySpec |
encodedKeySpec(byte[] keyBytes) |
String |
getKey() |
boolean |
verify(String sign,
byte[] data) |
decrypt, encryptpublic RSAPublicEncrypt(RSAPublicKey publicKey)
public RSAPublicEncrypt(String publicKey)
public RSAPublicEncrypt(byte[] publicKey)
public String getKey()
getKey 在类中 DefaultEncryptprotected EncodedKeySpec encodedKeySpec(byte[] keyBytes)
encodedKeySpec 在类中 DefaultEncryptpublic boolean verify(String sign, byte[] data)
Copyright © 2019. All rights reserved.