Api Key
protected constructor(encodedApiKey: String, publicKey: String, decoder: ApiKey.Property.Decoder<P>)(source)
Instantiates a new ApiKey instance, verifying the associated RSASignature within provided encodedApiKey, using the provided RSAKey.Public. Data is subsequently reconstructed from encodedApiKey.
Parameters
encoded Api Key
the resultant text output by ApiKey.encoded
public Key
the base64 encoded RSAKey.Public
decoder
the Property.Decoder associated with this ApiKey
Throws
Illegal Argument Exception
if Property.Decoder.decode fails
if encodedApiKey is not valid, or base64 decoding fails
General Security Exception
if publicKey or the RSASignature is invalid