Class RegisteredClientTokenLifetimes

java.lang.Object
com.irurueta.authserver.authorization.infrastructure.persistence.keys.RegisteredClientTokenLifetimes
All Implemented Interfaces:
SignedTokenLifetimes

@Component public class RegisteredClientTokenLifetimes extends Object implements SignedTokenLifetimes
SignedTokenLifetimes over the registered clients: the longest of the ID-token lifetime and the access-token lifetimes of the clients that receive self-contained (signed) access tokens. Reference access tokens are opaque and never signed, so they do not count.
  • Field Details

    • ID_TOKEN_TTL

      static final Duration ID_TOKEN_TTL
      Lifetime of an ID token. Spring Authorization Server's JwtGenerator fixes it at 30 minutes whatever the client settings say, so it is a fact of the framework rather than a setting.
    • clientRegistrationRepository

      private final ClientRegistrationRepository clientRegistrationRepository
      Port that stores the registered clients.
  • Constructor Details

    • RegisteredClientTokenLifetimes

      public RegisteredClientTokenLifetimes()
  • Method Details

    • longest

      public Duration longest()
      Description copied from interface: SignedTokenLifetimes
      Finds the longest lifetime of a signed token (an access or ID token) that any registered client can obtain.
      Specified by:
      longest in interface SignedTokenLifetimes
      Returns:
      the longest lifetime; never null and never negative.