JWK(algorithm: String, pemPub: String, pemSec: String)
Creates a Key(Pair) from pem formatted strings.
algorithm - the algorithm e.g.: RS256
pemPub - the public key in PEM format
pemSec - the private key in PEM format
JWK(algorithm: String, isCertificate: Boolean, pemPub: String, pemSec: String)
Creates a Key(Pair) from pem formatted strings.
algorithm - the algorithm e.g.: RS256
isCertificate - when true the public PEM is assumed to be a X509 Certificate
pemPub - the public key in PEM format
pemSec - the private key in PEM format
JWK(algorithm: String, hmac: String)
Creates a Symmetric Key from a base64 encoded string.
algorithm - the algorithm e.g.: HS256
JWK(json: JsonObject)