Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.
public final class JdbcRegisteredClientRepository
- Object
- JdbcRegisteredClientRepository
ImplementsRegisteredClientRepository
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);
}Constructors
public JdbcRegisteredClientRepository(DataSource dataSource) |
Methods
public void setClock(Clock clock) | The clock a client’s creation time is read from; for tests. |
public void save(RegisteredClient client) | Stores registeredClient, in place of the one with its id if there is one. |
public RegisteredClient findById(String id) | The client stored under this id, or null. |
public RegisteredClient findByClientId(String clientId) | The client that calls itself this, or null. |
Inherited methods
Constructor details
JdbcRegisteredClientRepository
public JdbcRegisteredClientRepository(DataSource dataSource)Method details
setClock
public void setClock(Clock clock)The clock a client’s creation time is read from; for tests.
save
public void save(RegisteredClient client)Stores
registeredClient, in place of the one with its id if there is
one.findById
public RegisteredClient findById(String id)The client stored under this id, or null.
findByClientId
public RegisteredClient findByClientId(String clientId)The client that calls itself this, or null.