Package io.helidon.security.jwt.jwk
Class JwkKeys.Builder
- java.lang.Object
-
- io.helidon.security.jwt.jwk.JwkKeys.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JwkKeys.Builder
addKey(Jwk key)
Add a new JWK to this keys.JwkKeys
build()
Build a new keys instance.JwkKeys.Builder
resource(Resource resource)
Load keys from a resource (must point to JSON text content).
-
-
-
Method Detail
-
build
public JwkKeys build()
Build a new keys instance.
-
addKey
public JwkKeys.Builder addKey(Jwk key)
Add a new JWK to this keys.- Parameters:
key
- the JWK instance- Returns:
- updated builder instance
-
resource
public JwkKeys.Builder resource(Resource resource)
Load keys from a resource (must point to JSON text content).- Parameters:
resource
- the resource with JSON data (file, classpath, URI etc.)- Returns:
- updated builder instance
- Throws:
NullPointerException
- in case the path is null
-
-