Examples of verifySecret()


Examples of org.surfnet.oaaas.model.Client.verifySecret()

  protected Client validateClient(BasicAuthCredentials credentials) {
    String clientId = credentials.getUsername();
    Client client = StringUtils.isBlank(clientId) ? null : clientRepository.findByClientId(clientId);
    if (client == null) {
      throw new ValidationResponseException(UNKNOWN_CLIENT_ID);
    } else if (!client.verifySecret(credentials.getPassword())) {
      throw new ValidationResponseException(UNAUTHORIZED_CLIENT);
    }
    return client;
  }
View Full Code Here

Examples of org.surfnet.oaaas.model.Client.verifySecret()

    if (client == null) {
      throw new ValidationResponseException(error);
    }
   
    // Confirm that the credentials match those for the client
    if (!client.verifySecret(clientSecret)) {
      throw new ValidationResponseException(error);
    }
    return client;
  }
 
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.