Top Fields Constructors Methods
org.bouncycastle.tls.crypto.impl.bc

pack-priv final Class BcTlsNonceGenerator

extends Object
implements TlsNonceGenerator
Class Inheritance
All Implemented Interfaces
org.bouncycastle.tls.crypto.TlsNonceGenerator
Imports
org.bouncycastle.crypto.prng.RandomGenerator, org.bouncycastle.tls.crypto.TlsNonceGenerator

Field Summary

Modifier and TypeField and Description
private final RandomGenerator

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public byte[]
generateNonce(int
the length, in bytes, of the nonce to generate.
size
)

Implements org.bouncycastle.tls.crypto.TlsNonceGenerator.generateNonce.

Generate a nonce byte[] string.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

randomGeneratorback to summary
private final RandomGenerator randomGenerator

Constructor Detail

BcTlsNonceGeneratorback to summary
pack-priv BcTlsNonceGenerator(RandomGenerator randomGenerator)

Method Detail

generateNonceback to summary
public byte[] generateNonce(int size)

Implements org.bouncycastle.tls.crypto.TlsNonceGenerator.generateNonce.

Doc from org.bouncycastle.tls.crypto.TlsNonceGenerator.generateNonce.

Generate a nonce byte[] string.

Parameters
size:int

the length, in bytes, of the nonce to generate.

Returns:byte[]

the nonce value.