P - Generally AuthorizedClientpublic interface AuthorizedClientService<P extends AuthorizedClient>
AuthorizedClient.| Modifier and Type | Method and Description |
|---|---|
P |
create(P authorizedClient)
Create a new authorized client.
|
void |
delete(P authorizedClient)
Delete an authorized client.
|
void |
deleteById(String id)
Delete an authorized client by ID.
|
boolean |
existsById(String id)
Check if an authorized client exists by its ID.
|
Optional<P> |
findAdminClient(String tenantId)
Finds the authorized client for the admin within the given context.
|
org.springframework.data.domain.Page<P> |
findAll(org.springframework.data.domain.Pageable pageable)
Find all authorized clients.
|
org.springframework.data.domain.Page<P> |
findAllByServerId(String serverId,
org.springframework.data.domain.Pageable pageable)
Finds all authorized clients within an authorization server.
|
Optional<P> |
findApplicationClient(String applicationId)
Finds the authorized client for the application within the given context.
|
Optional<P> |
findApplicationClient(String applicationId,
String tenantId)
Finds the authorized client for the application within the given context.
|
Optional<P> |
findByClientId(String clientId)
Find an authorized client by its client ID.
|
Optional<P> |
findById(String id)
Find an authorized client by its ID.
|
P |
replace(String id,
P authorizedClient)
Replace an authorized client.
|
Optional<String> |
resolveAbsolutePathForUri(String uri,
AuthorizedClient client)
Resolves the absolute path for the string uri provided
|
Optional<String> |
resolveAbsolutePathsForRelativeDefaultRedirectUri(AuthorizedClient client)
Resolves the absolute path for the default redirect uri on the provided
AuthorizedClient |
Set<String> |
resolveAbsolutePathsForRelativeRedirectUris(AuthorizedClient client)
Resolves the absolute path for the redirect uris on the provided
AuthorizedClient |
Set<String> |
resolveAbsolutePathsForUris(Set<String> uris,
AuthorizedClient client)
Resolves the absolute path for the string uris provided
|
P |
save(P authorizedClient)
Save an authorized client.
|
org.springframework.data.domain.Page<P> findAll(org.springframework.data.domain.Pageable pageable)
pageable - the pageableorg.springframework.data.domain.Page<P> findAllByServerId(String serverId, org.springframework.data.domain.Pageable pageable)
serverId - the server IDpageable - the pageableOptional<P> findAdminClient(@Nullable String tenantId)
tenantId@return - an optional of authorized clientOptional<P> findApplicationClient(String applicationId, String tenantId)
applicationId - tenantId - Optional<P> findApplicationClient(String applicationId)
applicationId - boolean existsById(String id)
id - the authorized client IDOptional<P> findById(String id)
id - the authorized client IDOptional<P> findByClientId(String clientId)
clientId - the client ID of the authorization clientP create(P authorizedClient)
AuthorizedClient#getServer() must not be null.authorizedClient - the authorized client to createP save(P authorizedClient)
authorizedClient - the authorized client to saveP replace(String id, P authorizedClient)
id - the authorized client ID to replaceauthorizedClient - the authorized client replacementvoid delete(P authorizedClient)
authorizedClient - the authorized client to deletevoid deleteById(String id)
id - the ID of the authorized client to deleteOptional<String> resolveAbsolutePathsForRelativeDefaultRedirectUri(AuthorizedClient client)
AuthorizedClientclient - The AuthorizedClient to resolve the default redirect uri forAuthorizedClient if one is resolved else an empty OptionalSet<String> resolveAbsolutePathsForRelativeRedirectUris(AuthorizedClient client)
AuthorizedClientclient - The AuthorizedClient to resolve the redirect uris forAuthorizedClient
that could be resolvedSet<String> resolveAbsolutePathsForUris(Set<String> uris, AuthorizedClient client)
uris - The uris to resolve absolute paths forclient - The AuthorizedClient to use for finding the domain, host, etc.Optional<String> resolveAbsolutePathForUri(String uri, AuthorizedClient client)
uri - The uri to resolve the absolute path forclient - The AuthorizedClient to use for finding the domain, host, etc.OptionalCopyright © 2021. All rights reserved.