Class JwtProvider.JwtOutboundTarget
java.lang.Object
io.helidon.security.providers.jwt.JwtProvider.JwtOutboundTarget
- Enclosing class:
JwtProvider
A custom object to configure specific handling of outbound calls.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Fluent API builder forJwtProvider.JwtOutboundTarget
. -
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Default token validity before issue time.static final long
Default token validity for an outbound target. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Get a fluent API builder to configure a new instance.create
(Config config, TokenHandler defaultHandler) Load an instance from configuration.
-
Field Details
-
DEFAULT_VALIDITY_SECONDS
public static final long DEFAULT_VALIDITY_SECONDSDefault token validity for an outbound target. Value is 1 day (86400L seconds)- See Also:
-
DEFAULT_NOT_BEFORE_SECONDS
public static final int DEFAULT_NOT_BEFORE_SECONDSDefault token validity before issue time. This is used to allow for a time difference on machines - the default value of 5 seconds means that the token is valid up to 5 seconds before it was issued.- See Also:
-
-
Method Details
-
builder
Get a fluent API builder to configure a new instance.- Returns:
- a builder instance
-
create
Load an instance from configuration. Expected keys:- jwt-kid - the key id to put into JWT
- jwk-kid - the key id to look for when signing the JWT
- jwt-audience - the audience of this JWT
- jwt-not-before-seconds - not before seconds
- jwt-validity-seconds - validity of JWT
- Parameters:
config
- configuration to load data fromdefaultHandler
- default outbound token handler- Returns:
- a new instance configured from config
- See Also:
-