Package uk.co.spudsoft.jwtvalidatorvertx
Interface JsonWebKeySetStaticHandler
- All Superinterfaces:
JsonWebKeySetHandler
- All Known Implementing Classes:
JWKSStaticSetHandlerImpl
Manage JWKs manually.
It is not usually necessary to use this interface for anything other than the Factory methods.
- Author:
- jtalbut
-
Method Summary
Modifier and TypeMethodDescriptionAdd a JWK to the known set.static JsonWebKeySetStaticHandler
create()
Construct an instance of the implementation class that will accept any issuer.static JsonWebKeySetStaticHandler
create
(Collection<String> acceptableIssuerRegexes) Construct an instance of the implementation class.Remove a JWK from the known set.Methods inherited from interface uk.co.spudsoft.jwtvalidatorvertx.JsonWebKeySetHandler
findJwk, validateIssuer
-
Method Details
-
create
Construct an instance of the implementation class that will accept any issuer. With a static map of JWKs the security of the system is not compromised by allowing any issuer, though you should question why this is necessary.- Returns:
- a newly created instance of the implementation class.
-
create
Construct an instance of the implementation class. With a static map of JWKs the security of the system is not compromised by allowing any issuer, though you should question why this is necessary.- Parameters:
acceptableIssuerRegexes
- Collection of regular expressions that any issues will be checked against.- Returns:
- a newly created instance of the implementation class.
-
addKey
Add a JWK to the known set.- Parameters:
issuer
- The issuer of the key being added.key
- The key being added.- Returns:
- this for fluent configuration.
-
removeKey
Remove a JWK from the known set.- Parameters:
issuer
- The issuer of the key being removed.kid
- The ID of the key being removed.- Returns:
- this for fluent configuration.
-