T
- the type for the parameters used by this generator.public interface EncapsulatingSecretGenerator<T extends Parameters> extends OperatorUsingSecureRandom<EncapsulatingSecretGenerator<T>>
Modifier and Type | Method and Description |
---|---|
SecretWithEncapsulation |
generate()
Generate an encapsulated secret, returning the encapsulation of the key material,
and the key material, or secret, as well.
|
T |
getParameters()
Return the parameters being used by this extractor.
|
EncapsulatingSecretGenerator<T> |
withSecureRandom(java.security.SecureRandom random)
Return a new generator which will use the passed in SecureRandom for generating the
key material, or secret, to be encapsulated.
|
T getParameters()
SecretWithEncapsulation generate() throws PlainInputProcessingException
PlainInputProcessingException
- if an exception occurs on encapsulation.EncapsulatingSecretGenerator<T> withSecureRandom(java.security.SecureRandom random)
withSecureRandom
in interface OperatorUsingSecureRandom<EncapsulatingSecretGenerator<T extends Parameters>>
random
- the SecureRandom to use.