public class JdbcClientDetailsService extends Object implements ClientDetailsService, ClientRegistrationService
Constructor and Description |
---|
JdbcClientDetailsService(DataSource dataSource) |
Modifier and Type | Method and Description |
---|---|
void |
addClientDetails(ClientDetails clientDetails) |
List<ClientDetails> |
listClientDetails() |
ClientDetails |
loadClientByClientId(String clientId)
Load a client by the client id.
|
void |
removeClientDetails(String clientId) |
void |
setDeleteClientDetailsSql(String deleteClientDetailsSql) |
void |
setFindClientDetailsSql(String findClientDetailsSql) |
void |
setInsertClientDetailsSql(String insertClientDetailsSql) |
void |
setListFactory(JdbcListFactory listFactory) |
void |
setPasswordEncoder(org.springframework.security.crypto.password.PasswordEncoder passwordEncoder) |
void |
setRowMapper(RowMapper<ClientDetails> rowMapper) |
void |
setSelectClientDetailsSql(String selectClientDetailsSql) |
void |
setUpdateClientDetailsSql(String updateClientDetailsSql) |
void |
setUpdateClientSecretSql(String updateClientSecretSql) |
void |
updateClientDetails(ClientDetails clientDetails) |
void |
updateClientSecret(String clientId,
String secret) |
public JdbcClientDetailsService(DataSource dataSource)
public void setPasswordEncoder(org.springframework.security.crypto.password.PasswordEncoder passwordEncoder)
passwordEncoder
- the password encoder to setpublic ClientDetails loadClientByClientId(String clientId) throws InvalidClientException
ClientDetailsService
loadClientByClientId
in interface ClientDetailsService
clientId
- The client id.InvalidClientException
public void addClientDetails(ClientDetails clientDetails) throws ClientAlreadyExistsException
addClientDetails
in interface ClientRegistrationService
ClientAlreadyExistsException
public void updateClientDetails(ClientDetails clientDetails) throws NoSuchClientException
updateClientDetails
in interface ClientRegistrationService
NoSuchClientException
public void updateClientSecret(String clientId, String secret) throws NoSuchClientException
updateClientSecret
in interface ClientRegistrationService
NoSuchClientException
public void removeClientDetails(String clientId) throws NoSuchClientException
removeClientDetails
in interface ClientRegistrationService
NoSuchClientException
public List<ClientDetails> listClientDetails()
listClientDetails
in interface ClientRegistrationService
public void setSelectClientDetailsSql(String selectClientDetailsSql)
public void setDeleteClientDetailsSql(String deleteClientDetailsSql)
public void setUpdateClientDetailsSql(String updateClientDetailsSql)
public void setUpdateClientSecretSql(String updateClientSecretSql)
public void setInsertClientDetailsSql(String insertClientDetailsSql)
public void setFindClientDetailsSql(String findClientDetailsSql)
public void setListFactory(JdbcListFactory listFactory)
listFactory
- the list factory to setpublic void setRowMapper(RowMapper<ClientDetails> rowMapper)
rowMapper
- the rowMapper to setCopyright © 2019. All rights reserved.