|
Bouncy Castle Cryptography Library 1.47 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.openpgp.operator.PGPKeyEncryptionMethodGenerator
org.bouncycastle.openpgp.operator.PublicKeyKeyEncryptionMethodGenerator
org.bouncycastle.openpgp.operator.bc.BcPublicKeyKeyEncryptionMethodGenerator
public class BcPublicKeyKeyEncryptionMethodGenerator
A method generator for supporting public key based encryption operations.
Constructor Summary | |
---|---|
BcPublicKeyKeyEncryptionMethodGenerator(PGPPublicKey key)
Create a public key encryption method generator with the method to be based on the passed in key. |
Method Summary | |
---|---|
protected byte[] |
encryptSessionInfo(PGPPublicKey pubKey,
byte[] sessionInfo)
|
BcPublicKeyKeyEncryptionMethodGenerator |
setSecureRandom(java.security.SecureRandom random)
Provide a user defined source of randomness. |
Methods inherited from class org.bouncycastle.openpgp.operator.PublicKeyKeyEncryptionMethodGenerator |
---|
generate, processSessionInfo |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BcPublicKeyKeyEncryptionMethodGenerator(PGPPublicKey key)
key
- the public key to use for encryption.Method Detail |
---|
public BcPublicKeyKeyEncryptionMethodGenerator setSecureRandom(java.security.SecureRandom random)
random
- the secure random to be used.
protected byte[] encryptSessionInfo(PGPPublicKey pubKey, byte[] sessionInfo) throws PGPException
encryptSessionInfo
in class PublicKeyKeyEncryptionMethodGenerator
PGPException
|
Bouncy Castle Cryptography Library 1.47 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |