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 SummaryNested Classes Modifier and Type Class Description static classJwtProvider.JwtOutboundTarget.BuilderFluent API builder forJwtProvider.JwtOutboundTarget.
 - 
Field SummaryFields Modifier and Type Field Description static intDEFAULT_NOT_BEFORE_SECONDSDefault token validity before issue time.static longDEFAULT_VALIDITY_SECONDSDefault token validity for an outbound target.
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static JwtProvider.JwtOutboundTarget.Builderbuilder()Get a fluent API builder to configure a new instance.static JwtProvider.JwtOutboundTargetcreate(Config config, TokenHandler defaultHandler)Load an instance from configuration.
 
- 
- 
- 
Field Detail- 
DEFAULT_VALIDITY_SECONDSpublic 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_SECONDSpublic 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- 
builderpublic static JwtProvider.JwtOutboundTarget.Builder builder() Get a fluent API builder to configure a new instance.- Returns:
- a builder instance
 
 - 
createpublic 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 from
- defaultHandler- default outbound token handler
- Returns:
- a new instance configured from config
- See Also:
- JwtProvider.JwtOutboundTarget.Builder
 
 
- 
 
-