Package io.vertx.ext.auth.jwt
Class JWTAuthOptions
- java.lang.Object
-
- io.vertx.ext.auth.jwt.JWTAuthOptions
-
public class JWTAuthOptions extends Object
Options describing how an JWT Auth should behave.- Author:
- Paulo Lopes
-
-
Constructor Summary
Constructors Constructor Description JWTAuthOptions()Default constructorJWTAuthOptions(JsonObject json)Constructor to create an options from JSONJWTAuthOptions(JWTAuthOptions other)Copy constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JWTAuthOptionsaddJwk(JsonObject jwk)JWTAuthOptionsaddPubSecKey(PubSecKeyOptions pubSecKey)List<JsonObject>getJwks()JWTOptionsgetJWTOptions()KeyStoreOptionsgetKeyStore()List<PubSecKeyOptions>getPubSecKeys()JWTAuthOptionssetJwks(List<JsonObject> jwks)JWTAuthOptionssetJWTOptions(JWTOptions jwtOptions)JWTAuthOptionssetKeyStore(KeyStoreOptions keyStore)JWTAuthOptionssetPubSecKeys(List<PubSecKeyOptions> pubSecKeys)
-
-
-
Constructor Detail
-
JWTAuthOptions
public JWTAuthOptions()
Default constructor
-
JWTAuthOptions
public JWTAuthOptions(JWTAuthOptions other)
Copy constructor- Parameters:
other- the options to copy
-
JWTAuthOptions
public JWTAuthOptions(JsonObject json)
Constructor to create an options from JSON- Parameters:
json- the JSON
-
-
Method Detail
-
getKeyStore
public KeyStoreOptions getKeyStore()
-
setKeyStore
public JWTAuthOptions setKeyStore(KeyStoreOptions keyStore)
-
getPubSecKeys
public List<PubSecKeyOptions> getPubSecKeys()
-
setPubSecKeys
public JWTAuthOptions setPubSecKeys(List<PubSecKeyOptions> pubSecKeys)
-
addPubSecKey
public JWTAuthOptions addPubSecKey(PubSecKeyOptions pubSecKey)
-
getJWTOptions
public JWTOptions getJWTOptions()
-
setJWTOptions
public JWTAuthOptions setJWTOptions(JWTOptions jwtOptions)
-
getJwks
public List<JsonObject> getJwks()
-
setJwks
public JWTAuthOptions setJwks(List<JsonObject> jwks)
-
addJwk
public JWTAuthOptions addJwk(JsonObject jwk)
-
-