create
@JvmStatic
@JvmOverloads
Creates a new ApiKey for the provided arguments.
Parameters
private Key
the raw, unencrypted PKCS#1 or PKCS#8 encoded RSAKey.Private bytes
clear
if true, privateKey bytes will be zeroed out
Throws
General Security Exception
if privateKey is invalid
Invalid Key Exception
if privateKey is invalid
Invalid Parameter Exception
when:
keyId is blank
keyId contains whitespace
keyId contains multiple lines
keyId contains invalid UTF-8 characters or sequences
daysUntilExpiry is less than or equal to 0
extras contains a blank value
extras contains a value with multiple lines
extras contains a value with invalid UTF-8 characters or sequences