public class Random
extends org.eclipse.californium.elements.util.Bytes
ClientHello respectively in the ServerHello used later in the
protocol to compute the premaster secret. See RFC 5246 for the
message format.| Constructor and Description |
|---|
Random() |
Random(byte[] randomBytes)
Sets the random bytes explicitly.
|
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
createBytes()
Create byte array of 32 bytes initialized with random bytes and time
stamp in the first 4 bytes.
|
String |
toString() |
public Random()
public Random(byte[] randomBytes)
randomBytes - the bytes to useNullPointerException - if the given array is nullIllegalArgumentException - if the given array's length is not 32public String toString()
toString in class org.eclipse.californium.elements.util.Bytespublic static byte[] createBytes()
SecureRandom.nextBytes(byte[])Copyright © 2023 Eclipse Foundation. All rights reserved.