create Api Key
@JvmStatic
@JvmOverloads
Creates a new ApiKey for provided arguments.
NOTE: This extension function requires a dependency.
See: https://github.com/toxicity-io/crypto
Throws
Destroyed State Exception
if the RSAKey.Private is destroyed
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