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 Summary
Modifier and TypeMethodDescriptionThe client registered underid, ornull.The scopesubjectgrantedclientIdat its last consent, ornullfor none.voidThe grant stored underhash, ornull.voidEvery grant offamilystops working.voidsave(OAuthClient client) voidsave(OAuthGrant grant) Marks the grant used and returns it as it was before: a non-nullOAuthGrant.usedAt()means it had been used already.
-
Method Details
-
client
The client registered underid, ornull. -
save
-
save
-
find
The grant stored underhash, ornull. -
use
Marks the grant used and returns it as it was before: a non-nullOAuthGrant.usedAt()means it had been used already.nullfor an unknown hash. Atomic — two concurrent uses must not both see it unused. -
revoke
Every grant offamilystops working. -
consent
The scopesubjectgrantedclientIdat its last consent, ornullfor none. -
consent
-