Interface RegisteredClientRepository
- All Known Implementing Classes:
InMemoryRegisteredClientRepository
,JdbcRegisteredClientRepository
public interface RegisteredClientRepository
A repository for OAuth 2.0
RegisteredClient
(s).- Since:
- 0.0.1
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionfindByClientId
(String clientId) Returns the registered client identified by the providedclientId
, ornull
if not found.Returns the registered client identified by the providedid
, ornull
if not found.void
save
(RegisteredClient registeredClient) Saves the registered client.
-
Method Details
-
save
Saves the registered client.IMPORTANT: Sensitive information should be encoded externally from the implementation, e.g.
RegisteredClient.getClientSecret()
- Parameters:
registeredClient
- theRegisteredClient
-
findById
Returns the registered client identified by the providedid
, ornull
if not found.- Parameters:
id
- the registration identifier- Returns:
- the
RegisteredClient
if found, otherwisenull
-
findByClientId
Returns the registered client identified by the providedclientId
, ornull
if not found.- Parameters:
clientId
- the client identifier- Returns:
- the
RegisteredClient
if found, otherwisenull
-