Examples of AuthenticateRequest


Examples of org.platformlayer.auth.model.AuthenticateRequest

  @Override
  protected void doPost(final HttpServletRequest httpRequest, final HttpServletResponse httpResponse)
      throws ServletException, IOException {

    AuthenticateRequest request = marshaller.read(httpRequest, AuthenticateRequest.class);

    if (request == null) {
      httpResponse.sendError(HttpServletResponse.SC_BAD_REQUEST);
      return;
    }
View Full Code Here

Examples of org.platformlayer.auth.v1.AuthenticateRequest

  public AuthenticateResponse authenticate(PasswordCredentials passwordCredentials)
      throws PlatformlayerAuthenticationClientException {
    Auth auth = new Auth();
    auth.setPasswordCredentials(passwordCredentials);

    AuthenticateRequest request = new AuthenticateRequest();
    request.setAuth(auth);

    AuthenticateResponse response;
    try {
      response = doSimpleXmlRequest(HttpMethod.POST, "api/tokens", request, AuthenticateResponse.class);
    } catch (RestClientException e) {
View Full Code Here

Examples of org.platformlayer.auth.v1.AuthenticateRequest

    certificateCredentials.setUsername(username);

    Auth auth = new Auth();
    auth.setCertificateCredentials(certificateCredentials);

    AuthenticateRequest request = new AuthenticateRequest();
    request.setAuth(auth);

    final KeyManager keyManager = new SimpleClientCertificateKeyManager(privateKey, certificateChain);

    for (int i = 0; i < 2; i++) {
      AuthenticateResponse response;
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.