Package org.forgerock.oauth2.core
Interface ClientRegistrationStore
-
- All Known Subinterfaces:
OpenIdConnectClientRegistrationStore
- All Known Implementing Classes:
OpenAMClientRegistrationStore
public interface ClientRegistrationStoreThe OAuth2 providers store for all client registrations.- Since:
- 12.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ClientRegistrationget(String clientId, String realm, org.forgerock.services.context.Context context)Gets the client registration for the given client id.ClientRegistrationget(String clientId, OAuth2Request request)Gets the client registration for the given client id.
-
-
-
Method Detail
-
get
ClientRegistration get(String clientId, OAuth2Request request) throws InvalidClientException, NotFoundException
Gets the client registration for the given client id.- Parameters:
clientId- The client idrequest- The OAuth2 request.- Returns:
- The ClientRegistration.
- Throws:
InvalidClientException- If client cannot be retrieved from the store.NotFoundException- If requested realm doesn't exist
-
get
ClientRegistration get(String clientId, String realm, org.forgerock.services.context.Context context) throws InvalidClientException, NotFoundException
Gets the client registration for the given client id.- Parameters:
clientId- The client idrealm- The realm- Returns:
- The ClientRegistration.
- Throws:
InvalidClientException- If client cannot be retrieved from the store.NotFoundException- If requested realm doesn't exist
-
-