Interface RegisteredClientRepository
- All Known Implementing Classes:
InMemoryRegisteredClientRepository, JdbcRegisteredClientRepository
public interface RegisteredClientRepository
A repository for OAuth 2.0
RegisteredClient(s).- Since:
- 7.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescription@Nullable RegisteredClientfindByClientId(String clientId) Returns the registered client identified by the providedclientId, ornullif not found.@Nullable RegisteredClientReturns the registered client identified by the providedid, ornullif not found.voidsave(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, ornullif not found.- Parameters:
id- the registration identifier- Returns:
- the
RegisteredClientif found, otherwisenull
-
findByClientId
Returns the registered client identified by the providedclientId, ornullif not found.- Parameters:
clientId- the client identifier- Returns:
- the
RegisteredClientif found, otherwisenull
-