Class JwtProvider.JwtOutboundTarget
- java.lang.Object
-
- io.helidon.security.providers.jwt.JwtProvider.JwtOutboundTarget
-
- Enclosing class:
- JwtProvider
public static class JwtProvider.JwtOutboundTarget extends Object
A custom object to configure specific handling of outbound calls.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JwtProvider.JwtOutboundTarget.Builder
Fluent API builder forJwtProvider.JwtOutboundTarget
.
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_NOT_BEFORE_SECONDS
Default token validity before issue time.static long
DEFAULT_VALIDITY_SECONDS
Default token validity for an outbound target.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JwtProvider.JwtOutboundTarget.Builder
builder()
Get a fluent API builder to configure a new instance.static JwtProvider.JwtOutboundTarget
create(Config config, TokenHandler defaultHandler)
Load an instance from configuration.
-
-
-
Field Detail
-
DEFAULT_VALIDITY_SECONDS
public static final long DEFAULT_VALIDITY_SECONDS
Default token validity for an outbound target. Value is 1 day (86400L seconds)- See Also:
- Constant Field Values
-
DEFAULT_NOT_BEFORE_SECONDS
public static final int DEFAULT_NOT_BEFORE_SECONDS
Default 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:
- Constant Field Values
-
-
Method Detail
-
builder
public static JwtProvider.JwtOutboundTarget.Builder builder()
Get a fluent API builder to configure a new instance.- Returns:
- a builder instance
-
create
public static JwtProvider.JwtOutboundTarget create(Config config, TokenHandler defaultHandler)
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:
JwtProvider.JwtOutboundTarget.Builder
-
-