Top Description Methods
org.bouncycastle.crypto

public Interface SingleBlockEncryptorUsingSecureRandom<T extends Parameters>

extends SingleBlockEncryptor<T extends Parameters>, OperatorUsingSecureRandom<SingleBlockEncryptorUsingSecureRandom<T extends Parameters>>
Known Direct Implementers
org.bouncycastle.crypto.general.GuardedAsymmetricOperatorFactory.BlockEncryptor
Type Parameters
<T>
the parameters type for the encryptor's cipher.
Imports
java.security.SecureRandom

Interface for a encryptor only able to encrypt a single block of data that makes use of a SecureRandom in the process.

Method Summary

Modifier and TypeMethod and Description
public SingleBlockEncryptorUsingSecureRandom<T>

Returns:

a new encryptor which will use random where random data is required.
withSecureRandom
(SecureRandom
the SecureRandom to use.
random
)

Redeclares org.bouncycastle.crypto.OperatorUsingSecureRandom.withSecureRandom.

Return a variant of this encryptor using the passed in random as its source of randomness.
Inherited from org.bouncycastle.crypto.SingleBlockEncryptor:
encryptBlock

Method Detail

withSecureRandomback to summary
public SingleBlockEncryptorUsingSecureRandom<T> withSecureRandom(SecureRandom random)

Redeclares org.bouncycastle.crypto.OperatorUsingSecureRandom.withSecureRandom.

Return a variant of this encryptor using the passed in random as its source of randomness.

Parameters
random:SecureRandom

the SecureRandom to use.

Returns:SingleBlockEncryptorUsingSecureRandom<T>

a new encryptor which will use random where random data is required.