builder.portName((String) options.get(PORT_NAME)).serviceName((String) options.get(SERVICE_NAME)); builder.username((String) options.get(USERNAME_KEY)).password((String) options.get(PASSWORD_KEY));
builder.portName((String) options.get(PORT_NAME)).serviceName((String) options.get(SERVICE_NAME)); builder.username((String) options.get(USERNAME_KEY)).password((String) options.get(PASSWORD_KEY));
builder = new Builder(); builder.endpointAddress((String) rawOptions.get(ENDPOINT_ADDRESS)); builder.portName((String) rawOptions.get(PORT_NAME)).serviceName((String) rawOptions.get(SERVICE_NAME)); builder.username((String) rawOptions.get(USERNAME_KEY)).password((String) rawOptions.get(PASSWORD_KEY));
builder = new Builder(); builder.endpointAddress((String) rawOptions.get(ENDPOINT_ADDRESS)); builder.portName((String) rawOptions.get(PORT_NAME)).serviceName((String) rawOptions.get(SERVICE_NAME)); builder.username((String) rawOptions.get(USERNAME_KEY)).password((String) rawOptions.get(PASSWORD_KEY));
Builder builder = new Builder(); builder.endpointAddress((String) options.get(ENDPOINT_ADDRESS)); builder.portName((String) options.get(PORT_NAME)).serviceName((String) options.get(SERVICE_NAME)); builder.username((String) options.get(USERNAME_KEY)).password((String) options.get(PASSWORD_KEY));
Builder builder = new Builder(); builder.endpointAddress((String) options.get(ENDPOINT_ADDRESS)); builder.portName((String) options.get(PORT_NAME)).serviceName((String) options.get(SERVICE_NAME)); builder.username((String) options.get(USERNAME_KEY)).password((String) options.get(PASSWORD_KEY));
Builder builder = new Builder(); builder.endpointAddress((String) options.get(ENDPOINT_ADDRESS)); builder.portName((String) options.get(PORT_NAME)).serviceName((String) options.get(SERVICE_NAME)); builder.username((String) options.get(USERNAME_KEY)).password((String) options.get(PASSWORD_KEY));
public WSTrustClient(String serviceName, String port, String[] endpointURIs, SecurityInfo secInfo) throws ParsingException { // basic input validation. if (serviceName == null || port == null || endpointURIs == null || secInfo == null) throw new IllegalArgumentException(ErrorCodes.NULL_ARGUMENT + "The service name, port, endpoint URIs and security info parameters cannot be null"); if (endpointURIs.length == 0) throw new IllegalArgumentException(ErrorCodes.NULL_ARGUMENT + "At least one endpoint URI must be provided"); // create an STSClient for each endpointURI. this.clients = new STSClient[endpointURIs.length]; Builder builder = new STSClientConfig.Builder(); builder.serviceName(serviceName).portName(port).username(secInfo.username).password(secInfo.passwd); int index = 0; for (String endpointURI : endpointURIs) { builder.endpointAddress(endpointURI); this.clients[index++] = STSClientFactory.getInstance().create(builder.build()); } }
public WSTrustClient(String serviceName, String port, String[] endpointURIs, SecurityInfo secInfo) throws ParsingException { // basic input validation. if (serviceName == null || port == null || endpointURIs == null || secInfo == null) throw logger.nullArgumentError("The service name, port, endpoint URIs and security info parameters cannot be null"); if (endpointURIs.length == 0) throw logger.nullArgumentError("At least one endpoint URI must be provided"); // create an STSClient for each endpointURI. this.clients = new STSClient[endpointURIs.length]; Builder builder = new STSClientConfig.Builder(); builder.serviceName(serviceName).portName(port).username(secInfo.username).password(secInfo.passwd); STSClientPool pool = STSClientFactory.getInstance(); int index = 0; for (String endpointURI : endpointURIs) { builder.endpointAddress(endpointURI); STSClientConfig config = builder.build(); pool.createPool(config); this.clients[index++] = pool.getClient(config); } }
public WSTrustClient(String serviceName, String port, String[] endpointURIs, SecurityInfo secInfo) throws ParsingException { // basic input validation. if (serviceName == null || port == null || endpointURIs == null || secInfo == null) throw logger.nullArgumentError("The service name, port, endpoint URIs and security info parameters cannot be null"); if (endpointURIs.length == 0) throw logger.nullArgumentError("At least one endpoint URI must be provided"); // create an STSClient for each endpointURI. this.clients = new STSClient[endpointURIs.length]; Builder builder = new STSClientConfig.Builder(); builder.serviceName(serviceName).portName(port).username(secInfo.username).password(secInfo.passwd); STSClientPool pool = STSClientFactory.getInstance(); int index = 0; for (String endpointURI : endpointURIs) { builder.endpointAddress(endpointURI); STSClientConfig config = builder.build(); pool.createPool(config); this.clients[index++] = pool.getClient(config); } }
public WSTrustClient(String serviceName, String port, String[] endpointURIs, SecurityInfo secInfo) throws ParsingException { // basic input validation. if (serviceName == null || port == null || endpointURIs == null || secInfo == null) throw logger.nullArgumentError("The service name, port, endpoint URIs and security info parameters cannot be null"); if (endpointURIs.length == 0) throw logger.nullArgumentError("At least one endpoint URI must be provided"); // create an STSClient for each endpointURI. this.clients = new STSClient[endpointURIs.length]; Builder builder = new STSClientConfig.Builder(); builder.serviceName(serviceName).portName(port).username(secInfo.username).password(secInfo.passwd); int index = 0; for (String endpointURI : endpointURIs) { builder.endpointAddress(endpointURI); this.clients[index++] = STSClientFactory.getInstance().create(builder.build()); } }