Class JdbcRegisteredClientRepository
java.lang.Object
com.codename1.backend.security.oauth2.server.authorization.JdbcRegisteredClientRepository
- All Implemented Interfaces:
RegisteredClientRepository
public final class JdbcRegisteredClientRepository
extends Object
implements RegisteredClientRepository
Clients kept in the server's database, in the
cn1_oauth2_registered_client table of
SecuritySchema.
@Bean
RegisteredClientRepository clients(DataSource dataSource) {
return new JdbcRegisteredClientRepository(dataSource);
}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindByClientId(String clientId) The client that calls itself this, or null.The client stored under this id, or null.voidsave(RegisteredClient client) StoresregisteredClient, in place of the one with its id if there is one.voidThe clock a client's creation time is read from; for tests.Methods inherited from class Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface RegisteredClientRepository
findAll
-
Constructor Details
-
JdbcRegisteredClientRepository
-
-
Method Details
-
setClock
The clock a client's creation time is read from; for tests. -
save
Description copied from interface:RegisteredClientRepositoryStoresregisteredClient, in place of the one with its id if there is one.- Specified by:
savein 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
-