Class JwtProvider.JwtOutboundTarget

Enclosing class:

public static class JwtProvider.JwtOutboundTarget extends Object
A custom object to configure specific handling of outbound calls.
  • Field Details


      public static final long DEFAULT_VALIDITY_SECONDS
      Default token validity for an outbound target. Value is 1 day (86400L seconds)
      See Also:

      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:
  • Method Details

    • builder

      public static JwtProvider.JwtOutboundTarget.Builder builder()
      Get a fluent API builder to configure a new instance.
      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
      config - configuration to load data from
      defaultHandler - default outbound token handler
      a new instance configured from config
      See Also: