Interface ApiKeyRepository

All Known Implementing Classes:
InMemoryApiKeyRepository, JdbcApiKeyRepository

public interface ApiKeyRepository
Where API keys are kept. An application declares a bean of this type, and http.apiKey(...) looks presented keys up in it.
  • Method Summary

    Modifier and Type
    Method
    Description
    The key with this hash, or null.
  • Method Details

    • findByHash

      ApiKey findByHash(String hash)
      The key with this hash, or null. A revoked key is returned like any other; refusing it is the caller's.
      Parameters:
      hash - the lowercase hexadecimal SHA-256 of a presented key