Class JwtProvider.JwtOutboundTarget.Builder
java.lang.Object
io.helidon.security.providers.jwt.JwtProvider.JwtOutboundTarget.Builder
- All Implemented Interfaces:
Builder<JwtProvider.JwtOutboundTarget.Builder,
,JwtProvider.JwtOutboundTarget> Supplier<JwtProvider.JwtOutboundTarget>
- Enclosing class:
- JwtProvider.JwtOutboundTarget
public static final class JwtProvider.JwtOutboundTarget.Builder
extends Object
implements Builder<JwtProvider.JwtOutboundTarget.Builder,JwtProvider.JwtOutboundTarget>
Fluent API builder for
JwtProvider.JwtOutboundTarget
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the instance from this builder.Update builder from configuration.JWK key id to locate JWK to sign our request.jwtAudience
(String jwtAudience) JWT Audience.JWT key id of the outbound token, used by target service to map to configuration to validate our signature.notBeforeSeconds
(int notBeforeSeconds) Allowed validity before issue time.tokenHandler
(TokenHandler outboundHandler) Outbound token hanlder to insert the token into outbound request headers.validitySeconds
(long validitySeconds) Validity of the token.
-
Method Details
-
build
Description copied from interface:Builder
Build the instance from this builder.- Specified by:
build
in interfaceBuilder<JwtProvider.JwtOutboundTarget.Builder,
JwtProvider.JwtOutboundTarget> - Returns:
- instance of the built type
-
config
Update builder from configuration. SeeJwtProvider.JwtOutboundTarget.create(Config, TokenHandler)
for configuration options description.- Parameters:
config
- to update builder from- Returns:
- updated builder instance
-
tokenHandler
Outbound token hanlder to insert the token into outbound request headers.- Parameters:
outboundHandler
- handler to use- Returns:
- updated builder instance
-
jwtKid
JWT key id of the outbound token, used by target service to map to configuration to validate our signature.- Parameters:
jwtKid
- key id to be written to the JWT.- Returns:
- updated builder instance
-
jwkKid
JWK key id to locate JWK to sign our request.- Parameters:
jwkKid
- key id of JWK- Returns:
- updated builder instance
-
jwtAudience
JWT Audience.- Parameters:
jwtAudience
- audience to be written to the outbound token- Returns:
- updated builder instance
-
notBeforeSeconds
Allowed validity before issue time.- Parameters:
notBeforeSeconds
- seconds the outbound token is valid before issue time- Returns:
- updated builder instance
-
validitySeconds
Validity of the token.- Parameters:
validitySeconds
- seconds the token is valid for- Returns:
- updated builder instance
-