vertx / io.vertx.ext.jwt / JWK / <init>

<init>

JWK(algorithm: String, pemPub: String, pemSec: String)

Creates a Key(Pair) from pem formatted strings.

Parameters

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.

Parameters

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.

Parameters

algorithm - the algorithm e.g.: HS256

hmac - the symmetric key

JWK(json: JsonObject)