/** * Builds a new {@link TokenSchema} from builder values. * * @return TokenSchema from this builder */ public TokenSchema build() { return new TokenSchema(this); } }
/** * Builds a new {@link TokenSchema} from builder values. * * @return TokenSchema from this builder */ public TokenSchema build() { return new TokenSchema(this); } }
/** * Builds a new {@link TokenSchema} from builder values. * * @return TokenSchema from this builder */ public TokenSchema build() { return new TokenSchema(this); } }
/** * Initialize the JpaTokenStore with given resources. The given {@code claimTimeout} is used to 'steal' any claim * that has not been updated since that amount of time. The token is serialized to a byte array. * * @param connectionProvider The provider of connections to the underlying database * @param serializer The serializer to serialize tokens with */ public JdbcTokenStore(ConnectionProvider connectionProvider, Serializer serializer) { this(connectionProvider, serializer, new TokenSchema(), Duration.ofSeconds(10), ManagementFactory.getRuntimeMXBean().getName(), byte[].class); }