java.lang.Object
io.helidon.security.jwt.jwk.JwkKeys
A representation of the JSON web keys document - a map of key ids to corresponding web keys.
The keys may be of different types and algorithms.
Example (as used in unit test):
JwkKeys keys = JwkKeys.builder() .resource("jwk_data.json") .build(); Optional<Jwk> key = keys .forKeyId("cc34c0a0-bd5a-4a3c-a50d-a2a7db7643df");
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic JwkKeys.Builder
builder()
Create a new builder for this class.static JwkKeys
create
(JsonObject json) Create Jwk keys from its JSON representation.Get a JWK for defined key id if present.keys()
List of keys in this instance.
-
Method Details
-
builder
Create a new builder for this class.- Returns:
- builder instance
-
create
Create Jwk keys from its JSON representation.- Parameters:
json
- json with jwk keys- Returns:
- keys set up from the provided json
-
forKeyId
Get a JWK for defined key id if present.- Parameters:
keyId
- keyId of the key to obtain from this keys- Returns:
- Jwk if present
-
keys
List of keys in this instance.- Returns:
- all keys configured
-