Class JdbcClientAssertionReplayRegistry

java.lang.Object
com.irurueta.authserver.authorization.infrastructure.persistence.clientauth.JdbcClientAssertionReplayRegistry
All Implemented Interfaces:
ClientAssertionReplayRegistry

@Repository public class JdbcClientAssertionReplayRegistry extends Object implements ClientAssertionReplayRegistry
ClientAssertionReplayRegistry over the client_assertion_jtis table. Each method is a single statement run in the caller's transaction. The primary key (client_id, jti) makes the insert atomic: of concurrent registrations of the same pair exactly one inserts a row, the others do nothing and report a replay, without a constraint violation that would abort the caller's transaction.
  • Field Details

    • INSERT

      private static final String INSERT
      Statement recording a first use; a replay inserts nothing.
      See Also:
    • DELETE_EXPIRED

      private static final String DELETE_EXPIRED
      Statement deleting the expired identifiers.
      See Also:
    • jdbcClient

      private final org.springframework.jdbc.core.simple.JdbcClient jdbcClient
      JDBC client used to run the statements.
  • Constructor Details

    • JdbcClientAssertionReplayRegistry

      public JdbcClientAssertionReplayRegistry()
  • Method Details