public interface ClientService
| Modifier and Type | Method and Description |
|---|---|
Client |
create(String name,
Scope scope,
List<String> redirectUris)
Creates a
Client |
List<String> |
findRedirectUrisByClientId(String clientId)
Gets an existing redirect uri
|
Optional<Client> |
getByClientId(String clientId)
Gets an existing
Client |
Optional<Client> |
getById(String id)
Gets an existing
Client |
boolean |
isClientNameUnique(String clientId,
String clientName)
Checks if client name is unique
|
boolean |
isClientSecretValid(String clientId,
String clientSecret)
Checks if the provided client secret is a match for the client secret stored against
the client ID provided
|
List<Client> |
list()
Gets all Client
|
Optional<Client> |
removeById(String id)
Deletes a
Client |
Optional<Client> |
resetClientSecret(String clientId) |
Optional<Client> |
updateClient(String id,
String name,
String scope,
List<String> redirectUris)
Updates an existing
Client |
@Nonnull Client create(@Nonnull String name, Scope scope, @Nonnull List<String> redirectUris)
Clientname - the name of the clientscope - optional scope for client. If not specified then this will be saved as ALLredirectUris - the redirect uris of the clientOptional<Client> updateClient(@Nonnull String id, String name, String scope, @Nonnull List<String> redirectUris)
Clientid - the id of the entity to updatename - the new name. Null means no update will occurredirectUris - the new redirectUri nameOptional<Client> getById(@Nonnull String id)
Clientid - of the entity to returnClient matching the id or nullOptional<Client> getByClientId(@Nonnull String clientId)
ClientclientId - of the entity to returnClient matching the id or nullList<String> findRedirectUrisByClientId(@Nonnull String clientId)
clientId - matching the entity to returnOptional<Client> removeById(@Nonnull String id)
Clientid - of the entity to deleteboolean isClientNameUnique(@Nullable String clientId, @Nonnull String clientName)
clientId - id of the clientclientName - name of the clientboolean isClientSecretValid(@Nonnull String clientId, @Nonnull String clientSecret)
clientId - id of the clientclientSecret - secret of the clientCopyright © 2020–2023 Atlassian. All rights reserved.