public class RsaCryptoUtil
extends java.lang.Object
| Constructor and Description |
|---|
RsaCryptoUtil() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
decryptOAEP(java.lang.String ciphertext,
java.security.PrivateKey privateKey) |
static java.lang.String |
encryptOAEP(java.lang.String message,
java.security.cert.X509Certificate certificate) |
public static java.lang.String encryptOAEP(java.lang.String message,
java.security.cert.X509Certificate certificate)
throws javax.crypto.IllegalBlockSizeException
javax.crypto.IllegalBlockSizeExceptionpublic static java.lang.String decryptOAEP(java.lang.String ciphertext,
java.security.PrivateKey privateKey)
throws javax.crypto.BadPaddingException
javax.crypto.BadPaddingException