Package io.helidon.microprofile.jwt.auth
Class JwtAuthProvider.JwtOutboundTarget
java.lang.Object
io.helidon.microprofile.jwt.auth.JwtAuthProvider.JwtOutboundTarget
- Enclosing class:
JwtAuthProvider
A custom object to configure specific handling of outbound calls.
-
Constructor Summary
ConstructorDescriptionJwtOutboundTarget
(TokenHandler outboundHandler, String jwtKid, String jwkKid, String audience, int notBeforeSeconds, long validitySeconds) Create an instance to add toOutboundTarget
. -
Method Summary
Modifier and TypeMethodDescriptionfromConfig
(Config config, TokenHandler defaultHandler) Load an instance from configuration.
-
Constructor Details
-
JwtOutboundTarget
public JwtOutboundTarget(TokenHandler outboundHandler, String jwtKid, String jwkKid, String audience, int notBeforeSeconds, long validitySeconds) Create an instance to add toOutboundTarget
.- Parameters:
outboundHandler
- token handler to inject JWT into outbound headersjwtKid
- key id to put into a JWTjwkKid
- key id to use to sign using JWK - if not defined, existing token will be propagated if presentaudience
- audience to create a JWT fornotBeforeSeconds
- seconds before now the token is valid (e.g. now - notBeforeSeconds = JWT not before)validitySeconds
- seconds after now the token is valid (e.g. now + validitySeconds = JWT expiration time)
-
-
Method Details
-
fromConfig
public static JwtAuthProvider.JwtOutboundTarget fromConfig(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:
-