Class ActiveSigningKeyUseCase

java.lang.Object
com.irurueta.authserver.authorization.application.keys.ActiveSigningKeyUseCase

@Service @Transactional(readOnly=true) public class ActiveSigningKeyUseCase extends Object
Use case that finds the one key that signs new tokens.
  • Field Details

    • signingKeyRepository

      private final SigningKeyRepository signingKeyRepository
      Port that stores the keys.
  • Constructor Details

    • ActiveSigningKeyUseCase

      public ActiveSigningKeyUseCase()
  • Method Details

    • execute

      public Optional<SigningKey> execute()
      Finds the active key.
      Returns:
      the active key, or an empty optional before the first rotation has run.