public class JcePublicKeyKeyEncryptionMethodGenerator extends PublicKeyKeyEncryptionMethodGenerator
| Constructor | Description |
|---|---|
JcePublicKeyKeyEncryptionMethodGenerator(PGPPublicKey key) |
Create a public key encryption method generator with the method to be based on the passed in key.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected byte[] |
encryptSessionInfo(PGPPublicKey pubKey,
byte[] sessionInfo) |
|
JcePublicKeyKeyEncryptionMethodGenerator |
setProvider(java.lang.String providerName) |
|
JcePublicKeyKeyEncryptionMethodGenerator |
setProvider(java.security.Provider provider) |
|
JcePublicKeyKeyEncryptionMethodGenerator |
setSecureRandom(java.security.SecureRandom random) |
Provide a user defined source of randomness.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgenerate, processSessionInfopublic JcePublicKeyKeyEncryptionMethodGenerator(PGPPublicKey key)
key - the public key to use for encryption.public JcePublicKeyKeyEncryptionMethodGenerator setProvider(java.security.Provider provider)
public JcePublicKeyKeyEncryptionMethodGenerator setProvider(java.lang.String providerName)
public JcePublicKeyKeyEncryptionMethodGenerator setSecureRandom(java.security.SecureRandom random)
random - the secure random to be used.protected byte[] encryptSessionInfo(PGPPublicKey pubKey, byte[] sessionInfo) throws PGPException
encryptSessionInfo in class PublicKeyKeyEncryptionMethodGeneratorPGPException