@Singleton public class ClientDAO extends Object
Constructor and Description |
---|
ClientDAO(AMIdentityRepositoryFactory idRepoFactory) |
Modifier and Type | Method and Description |
---|---|
void |
create(Client client,
OAuth2Request request)
Stores a client to a storage system.
|
void |
delete(String clientId,
OAuth2Request request)
Delete a client from the storage system.
|
Client |
read(String clientId,
OAuth2Request request)
Reads a client from a storage system.
|
void |
update(Client client,
OAuth2Request request)
Updates a client already stored.
|
@Inject public ClientDAO(AMIdentityRepositoryFactory idRepoFactory)
public void create(Client client, OAuth2Request request) throws InvalidClientMetadata
client
- The client to storeInvalidClientMetadata
- If the client's registration details are invalid.public Client read(String clientId, OAuth2Request request) throws UnauthorizedClientException
clientId
- The client id of the client to retrieve.UnauthorizedClientException
- If the client's authorization fails.public void update(Client client, OAuth2Request request) throws InvalidClientMetadata, UnauthorizedClientException
client
- The updated client to use to update the storage.InvalidClientMetadata
- If the client's registration details are invalid.UnauthorizedClientException
- If the client's authorization fails.public void delete(String clientId, OAuth2Request request) throws UnauthorizedClientException
clientId
- The client id of the client to delete.UnauthorizedClientException
- If the client's authorization fails.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.