Package io.meeds.oauth2.server.service
Class OAuthClientService
java.lang.Object
io.meeds.oauth2.server.service.OAuthClientService
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.oauth2.server.authorization.client.RegisteredClientcreateClient(org.springframework.security.oauth2.server.authorization.client.RegisteredClient client) voiddeleteClient(String clientId) List<org.springframework.security.oauth2.server.authorization.client.RegisteredClient> org.springframework.security.oauth2.server.authorization.client.RegisteredClientorg.springframework.security.oauth2.server.authorization.client.RegisteredClientorg.springframework.security.oauth2.server.authorization.client.RegisteredClientList<org.springframework.security.oauth2.server.authorization.client.RegisteredClient> getClients(boolean includeDisabled) List<org.springframework.security.oauth2.server.authorization.client.RegisteredClient> getClients(String username, boolean includeDisabled) org.springframework.security.oauth2.server.authorization.client.RegisteredClientregister(org.springframework.security.oauth2.server.authorization.client.RegisteredClient publicClient) voidsaveClient(org.springframework.security.oauth2.server.authorization.client.RegisteredClient registeredClient) voidupdateClient(org.springframework.security.oauth2.server.authorization.client.RegisteredClient client) voidupdateClientActivation(String clientId, boolean enabled) voidupdateClientLogoUrl(String clientId, String logoUrl) voidupdateClientName(String clientId, String name) voidupdateClientRedirectUris(String clientId, Set<String> redirectUris) voidupdateClientScopes(String clientId, Set<String> scopes) voidupdateClientUrl(String clientId, String url) voidupdateClientVisibility(String clientId, boolean displayed)
-
Field Details
-
ATTACHMENT_URL_PATTERN
- See Also:
-
-
Constructor Details
-
OAuthClientService
public OAuthClientService()
-
-
Method Details
-
getAllClients
public List<org.springframework.security.oauth2.server.authorization.client.RegisteredClient> getAllClients() -
getClients
public List<org.springframework.security.oauth2.server.authorization.client.RegisteredClient> getClients(boolean includeDisabled) -
getClients
public List<org.springframework.security.oauth2.server.authorization.client.RegisteredClient> getClients(String username, boolean includeDisabled) throws IllegalAccessException - Throws:
IllegalAccessException
-
getClient
public org.springframework.security.oauth2.server.authorization.client.RegisteredClient getClient(String clientId, boolean includeDisabled, String username) throws IllegalAccessException - Throws:
IllegalAccessException
-
getClient
public org.springframework.security.oauth2.server.authorization.client.RegisteredClient getClient(String clientId, boolean includeDisabled) -
getClient
public org.springframework.security.oauth2.server.authorization.client.RegisteredClient getClient(String clientId) -
register
public org.springframework.security.oauth2.server.authorization.client.RegisteredClient register(org.springframework.security.oauth2.server.authorization.client.RegisteredClient publicClient) throws ClientRegistrationRateLimitException, IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException - Throws:
ClientRegistrationRateLimitExceptionIllegalAccessExceptionorg.exoplatform.commons.exception.ObjectNotFoundException
-
createClient
public org.springframework.security.oauth2.server.authorization.client.RegisteredClient createClient(org.springframework.security.oauth2.server.authorization.client.RegisteredClient client) throws org.exoplatform.commons.ObjectAlreadyExistsException - Throws:
org.exoplatform.commons.ObjectAlreadyExistsException
-
deleteClient
public void deleteClient(String clientId) throws org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException - Throws:
org.exoplatform.commons.exception.ObjectNotFoundExceptionIllegalAccessException
-
updateClient
public void updateClient(org.springframework.security.oauth2.server.authorization.client.RegisteredClient client) throws org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException - Throws:
org.exoplatform.commons.exception.ObjectNotFoundExceptionIllegalAccessException
-
updateClientName
public void updateClientName(String clientId, String name) throws org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException - Throws:
org.exoplatform.commons.exception.ObjectNotFoundExceptionIllegalAccessException
-
updateClientUrl
public void updateClientUrl(String clientId, String url) throws org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException - Throws:
org.exoplatform.commons.exception.ObjectNotFoundExceptionIllegalAccessException
-
updateClientLogoUrl
public void updateClientLogoUrl(String clientId, String logoUrl) throws org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException - Throws:
org.exoplatform.commons.exception.ObjectNotFoundExceptionIllegalAccessException
-
updateClientRedirectUris
public void updateClientRedirectUris(String clientId, Set<String> redirectUris) throws org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException - Throws:
org.exoplatform.commons.exception.ObjectNotFoundExceptionIllegalAccessException
-
updateClientScopes
public void updateClientScopes(String clientId, Set<String> scopes) throws org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException - Throws:
org.exoplatform.commons.exception.ObjectNotFoundExceptionIllegalAccessException
-
updateClientVisibility
public void updateClientVisibility(String clientId, boolean displayed) throws org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException - Throws:
org.exoplatform.commons.exception.ObjectNotFoundExceptionIllegalAccessException
-
updateClientActivation
public void updateClientActivation(String clientId, boolean enabled) throws org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException - Throws:
org.exoplatform.commons.exception.ObjectNotFoundExceptionIllegalAccessException
-
saveClient
public void saveClient(org.springframework.security.oauth2.server.authorization.client.RegisteredClient registeredClient)
-