public final class Tools
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.security.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 java.security.PublicKey generatePublicKeyFromByteArray(byte[] modulus, byte[] publicExponent)
modulus
- public key modulus.publicExponent
- public key exponent.public static long getUtc()