Class OAuthClientService

java.lang.Object
io.meeds.oauth2.server.service.OAuthClientService

@Service public class OAuthClientService extends Object
  • Field Details

  • 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)
    • 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.ObjectNotFoundException
      IllegalAccessException
    • 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.ObjectNotFoundException
      IllegalAccessException
    • updateClientName

      public void updateClientName(String clientId, String name) throws org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
      IllegalAccessException
    • updateClientUrl

      public void updateClientUrl(String clientId, String url) throws org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
      IllegalAccessException
    • updateClientLogoUrl

      public void updateClientLogoUrl(String clientId, String logoUrl) throws org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
      IllegalAccessException
    • updateClientRedirectUris

      public void updateClientRedirectUris(String clientId, Set<String> redirectUris) throws org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
      IllegalAccessException
    • updateClientScopes

      public void updateClientScopes(String clientId, Set<String> scopes) throws org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
      IllegalAccessException
    • updateClientVisibility

      public void updateClientVisibility(String clientId, boolean displayed) throws org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
      IllegalAccessException
    • updateClientActivation

      public void updateClientActivation(String clientId, boolean enabled) throws org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
      IllegalAccessException
    • saveClient

      public void saveClient(org.springframework.security.oauth2.server.authorization.client.RegisteredClient registeredClient)