Examples of NoSuchClientException


Examples of org.springframework.security.oauth2.provider.NoSuchClientException

  private Map<String, ClientDetails> clientDetailsStore = new HashMap<String, ClientDetails>();

  public ClientDetails loadClientByClientId(String clientId) throws ClientRegistrationException {
    ClientDetails details = clientDetailsStore.get(clientId);
    if (details == null) {
      throw new NoSuchClientException("No client with requested id: " + clientId);
    }
    return details;
  }
View Full Code Here

Examples of org.springframework.security.oauth2.provider.NoSuchClientException

    ClientDetails details;
    try {
      details = jdbcTemplate.queryForObject(selectClientDetailsSql, new ClientDetailsRowMapper(), clientId);
    }
    catch (EmptyResultDataAccessException e) {
      throw new NoSuchClientException("No client with requested id: " + clientId);
    }

    return details;
  }
View Full Code Here

Examples of org.springframework.security.oauth2.provider.NoSuchClientException

  }

  public void updateClientDetails(ClientDetails clientDetails) throws NoSuchClientException {
    int count = jdbcTemplate.update(updateClientDetailsSql, getFieldsForUpdate(clientDetails));
    if (count != 1) {
      throw new NoSuchClientException("No client found with id = " + clientDetails.getClientId());
    }
  }
View Full Code Here

Examples of org.springframework.security.oauth2.provider.NoSuchClientException

  }

  public void updateClientSecret(String clientId, String secret) throws NoSuchClientException {
    int count = jdbcTemplate.update(updateClientSecretSql, passwordEncoder.encode(secret), clientId);
    if (count != 1) {
      throw new NoSuchClientException("No client found with id = " + clientId);
    }
  }
View Full Code Here

Examples of org.springframework.security.oauth2.provider.NoSuchClientException

  }

  public void removeClientDetails(String clientId) throws NoSuchClientException {
    int count = jdbcTemplate.update(deleteClientDetailsSql, clientId);
    if (count != 1) {
      throw new NoSuchClientException("No client found with id = " + clientId);
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.