Examples of WSSEAuth


Examples of com.alu.e3.prov.restapi.model.WSSEAuth

    return i;
  }

  private static WSSEAuth fromDataModelToWsseAuth(Auth auth){
    if (auth==null) throw new IllegalArgumentException("authDetail must not be null");
    WSSEAuth wsseAuth = new WSSEAuth();
    wsseAuth.setPassword(auth.getWssePassword());
    wsseAuth.setUsername(auth.getAuthDetail().getUsername());

    return wsseAuth;
  }
View Full Code Here

Examples of com.alu.e3.prov.restapi.model.WSSEAuth

            error.setErrorText(error.getErrorText()+" Password must not be empty for Basic authentication type.");
          }
        }
      }
      else if(authType.equals(AuthType.WSSE)){
        WSSEAuth basicAuth = auth.getWsseAuth();
        if(basicAuth == null){
          inError = true;
          error.setErrorText("Request did not contain WsseAuth info.");
        } else {
          if(basicAuth.getUsername() == null || basicAuth.getUsername().isEmpty()){
            inError = true;
            error.setErrorText("Username must not be empty for WSSE authentication type.");
          }
          if(basicAuth.getPassword() == null || basicAuth.getPassword().length <= 0){
            inError = true;
            error.setErrorText(error.getErrorText()+" Passowrd must not be empty for WSSE authentication type.");
          }
        }
      }
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.