public final class JWT extends Object
Constructor and Description |
---|
JWT() |
JWT(KeyStore keyStore,
char[] keyStorePassword)
Deprecated.
|
JWT(String key,
boolean keyPrivate)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
JWT |
addCertificate(String algorithm,
String cert)
Deprecated.
Replaced by
addJWK(JWK) |
JWT |
addJWK(JWK jwk)
Adds a JSON Web Key (rfc7517) to the crypto map.
|
JWT |
addKeyPair(String algorithm,
String publicKey,
String privateKey)
Deprecated.
Replaced by
addJWK(JWK) |
JWT |
addPublicKey(String algorithm,
String key)
Deprecated.
Replaced by
addJWK(JWK) |
JWT |
addSecret(String algorithm,
String key)
Deprecated.
Replaced by
addJWK(JWK) |
JWT |
addSecretKey(String algorithm,
String key)
Deprecated.
Replaced by
addJWK(JWK) |
Collection<String> |
availableAlgorithms() |
io.vertx.core.json.JsonObject |
decode(String token) |
boolean |
isExpired(io.vertx.core.json.JsonObject jwt,
JWTOptions options) |
boolean |
isUnsecure() |
String |
sign(io.vertx.core.json.JsonObject payload,
JWTOptions options) |
public JWT()
@Deprecated public JWT(KeyStore keyStore, char[] keyStorePassword)
@Deprecated public JWT(String key, boolean keyPrivate)
public JWT addJWK(JWK jwk)
jwk
- a JSON Web Key@Deprecated public JWT addPublicKey(String algorithm, String key)
addJWK(JWK)
algorithm
- the JWS algorithm, e.g.: RS256key
- the base64 DER format of the key (also known as PEM format, without the header and footer).@Deprecated public JWT addKeyPair(String algorithm, String publicKey, String privateKey)
addJWK(JWK)
algorithm
- the JWS algorithm, e.g.: RS256publicKey
- the base64 DER format of the key (also known as PEM format, without the header and footer).privateKey
- the base64 DER format of the key (also known as PEM format, without the header and footer).@Deprecated public JWT addSecretKey(String algorithm, String key)
addJWK(JWK)
algorithm
- the JWS algorithm, e.g.: RS256key
- the base64 DER format of the key (also known as PEM format, without the header and footer).@Deprecated public JWT addCertificate(String algorithm, String cert)
addJWK(JWK)
algorithm
- the JWS algorithm, e.g.: RS256cert
- the base64 DER format of the key (also known as PEM format, without the header and footer).@Deprecated public JWT addSecret(String algorithm, String key)
addJWK(JWK)
algorithm
- the JWS algorithm, e.g.: HS256key
- the base64 DER format of the key (also known as PEM format, without the header and footer).public io.vertx.core.json.JsonObject decode(String token)
public boolean isExpired(io.vertx.core.json.JsonObject jwt, JWTOptions options)
public String sign(io.vertx.core.json.JsonObject payload, JWTOptions options)
public boolean isUnsecure()
public Collection<String> availableAlgorithms()
Copyright © 2021 Eclipse. All rights reserved.