public class RSA extends Object
| Modifier and Type | Method and Description |
|---|---|
static Key |
unwrapSecretKey(PrivateKey decryptionKey,
byte[] keyBytes,
String oaepDigestAlgorithm) |
static byte[] |
wrapSecretKey(PublicKey publicKey,
Key privateKey,
String oaepDigestAlgorithm) |
public static Key unwrapSecretKey(PrivateKey decryptionKey, byte[] keyBytes, String oaepDigestAlgorithm) throws EncryptionException
EncryptionExceptionpublic static byte[] wrapSecretKey(PublicKey publicKey, Key privateKey, String oaepDigestAlgorithm) throws EncryptionException
EncryptionExceptionCopyright © 2021. All rights reserved.