Class InMemoryOAuthStore
java.lang.Object
dev.relism.flash.ext.security.oauthserver.InMemoryOAuthStore
- All Implemented Interfaces:
OAuthStore
One instance's clients, grants and consents, lost on restart. Expired grants are swept whenever one is saved.
-
Constructor Summary
Constructors -
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.
-
Constructor Details
-
InMemoryOAuthStore
public InMemoryOAuthStore()
-
-
Method Details
-
client
Description copied from interface:OAuthStoreThe client registered underid, ornull.- Specified by:
clientin interfaceOAuthStore
-
save
- Specified by:
savein interfaceOAuthStore
-
save
- Specified by:
savein interfaceOAuthStore
-
find
Description copied from interface:OAuthStoreThe grant stored underhash, ornull.- Specified by:
findin interfaceOAuthStore
-
use
Description copied from interface:OAuthStoreMarks 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.- Specified by:
usein interfaceOAuthStore
-
revoke
Description copied from interface:OAuthStoreEvery grant offamilystops working.- Specified by:
revokein interfaceOAuthStore
-
consent
Description copied from interface:OAuthStoreThe scopesubjectgrantedclientIdat its last consent, ornullfor none.- Specified by:
consentin interfaceOAuthStore
-
consent
- Specified by:
consentin interfaceOAuthStore
-