Interface OAuthStore

All Known Implementing Classes:
InMemoryOAuthStore

public interface OAuthStore
Where the authorization server keeps its clients, grants and consents. InMemoryOAuthStore unless one that survives a restart is configured.
  • Method Details

    • client

      OAuthClient client(String id)
      The client registered under id, or null.
    • save

      void save(OAuthClient client)
    • save

      void save(OAuthGrant grant)
    • find

      OAuthGrant find(String hash)
      The grant stored under hash, or null.
    • use

      OAuthGrant use(String hash)
      Marks the grant used and returns it as it was before: a non-null OAuthGrant.usedAt() means it had been used already. null for an unknown hash. Atomic — two concurrent uses must not both see it unused.
    • revoke

      void revoke(String family)
      Every grant of family stops working.
    • consent

      String consent(String subject, String clientId)
      The scope subject granted clientId at its last consent, or null for none.
    • consent

      void consent(String subject, String clientId, String scope)