Class RSA
- java.lang.Object
-
- com.mastercard.developer.encryption.rsa.RSA
-
public class RSA extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Key
unwrapSecretKey(PrivateKey decryptionKey, byte[] keyBytes, String oaepDigestAlgorithm)
static byte[]
wrapSecretKey(PublicKey publicKey, Key privateKey, String oaepDigestAlgorithm)
-
-
-
Method Detail
-
wrapSecretKey
public static byte[] wrapSecretKey(PublicKey publicKey, Key privateKey, String oaepDigestAlgorithm) throws EncryptionException
- Throws:
EncryptionException
-
unwrapSecretKey
public static Key unwrapSecretKey(PrivateKey decryptionKey, byte[] keyBytes, String oaepDigestAlgorithm) throws EncryptionException
- Throws:
EncryptionException
-
-