public class JceKTSKeyWrapper extends AsymmetricKeyWrapper
Constructor and Description |
---|
JceKTSKeyWrapper(PublicKey publicKey,
String symmetricWrappingAlg,
int keySizeInBits,
byte[] partyUInfo,
byte[] partyVInfo) |
JceKTSKeyWrapper(X509Certificate certificate,
String symmetricWrappingAlg,
int keySizeInBits,
byte[] partyUInfo,
byte[] partyVInfo) |
Modifier and Type | Method and Description |
---|---|
byte[] |
generateWrappedKey(GenericKey encryptionKey) |
JceKTSKeyWrapper |
setProvider(Provider provider) |
JceKTSKeyWrapper |
setProvider(String providerName) |
JceKTSKeyWrapper |
setSecureRandom(SecureRandom random) |
getAlgorithmIdentifier
public JceKTSKeyWrapper(PublicKey publicKey, String symmetricWrappingAlg, int keySizeInBits, byte[] partyUInfo, byte[] partyVInfo)
public JceKTSKeyWrapper(X509Certificate certificate, String symmetricWrappingAlg, int keySizeInBits, byte[] partyUInfo, byte[] partyVInfo)
public JceKTSKeyWrapper setProvider(Provider provider)
public JceKTSKeyWrapper setProvider(String providerName)
public JceKTSKeyWrapper setSecureRandom(SecureRandom random)
public byte[] generateWrappedKey(GenericKey encryptionKey) throws OperatorException
OperatorException
Copyright © 2020 BouncyCastle.org. All rights reserved.