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