Class InMemoryRegisteredClientRepository
java.lang.Object
com.codename1.backend.security.oauth2.server.authorization.InMemoryRegisteredClientRepository
- All Implemented Interfaces:
RegisteredClientRepository
public final class InMemoryRegisteredClientRepository
extends Object
implements RegisteredClientRepository
Clients given when the server starts, and kept in this process.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindAll()Every client there is, when that is known as the server starts and does not change behind it; null otherwise, which is what a repository answers unless it says more.findByClientId(String clientId) The client that calls itself this, or null.The client stored under this id, or null.voidsave(RegisteredClient registeredClient) StoresregisteredClient, in place of the one with its id if there is one.
-
Constructor Details
-
InMemoryRegisteredClientRepository
-
-
Method Details
-
save
Description copied from interface:RegisteredClientRepositoryStoresregisteredClient, in place of the one with its id if there is one.- Specified by:
savein interfaceRegisteredClientRepository
-
findAll
Description copied from interface:RegisteredClientRepositoryEvery client there is, when that is known as the server starts and does not change behind it; null otherwise, which is what a repository answers unless it says more.
The authorization server reads it once, to refuse to start over a mistake that every request would otherwise meet one at a time: a client with a secret, and nothing to check a secret with. A repository over a table that is written to while the server runs answers null, and such a mistake is then found when the client calls.
- Specified by:
findAllin interfaceRegisteredClientRepository
-
findById
Description copied from interface:RegisteredClientRepositoryThe client stored under this id, or null.- Specified by:
findByIdin interfaceRegisteredClientRepository
-
findByClientId
Description copied from interface:RegisteredClientRepositoryThe client that calls itself this, or null.- Specified by:
findByClientIdin interfaceRegisteredClientRepository
-