public final class Tools extends Object
Modifier and Type | Method and Description |
---|---|
static PublicKey |
generatePublicKeyFromByteArray(byte[] modulus,
byte[] publicExponent)
Generate RSA public key from given modulus and exponent.
|
static long |
getUtc()
Get the UTC time in milliseconds.
|
public static PublicKey generatePublicKeyFromByteArray(byte[] modulus, byte[] publicExponent)
modulus
- public key modulus.publicExponent
- public key exponent.public static long getUtc()