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, ornullif not found.Returns 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
-