public STSClient create(final STSClientConfig config) { return create(INITIAL_NUMBER_OF_CLIENTS_IN_POOL, config); }
protected STSClient createWSTrustClient(final STSClientConfig config) { try { return STSClientFactory.getInstance().create(config); } catch (final ParsingException e) { throw new IllegalStateException(ErrorCodes.PROCESSING_EXCEPTION + "Could not create WSTrustClient:", e); } }
protected STSClient createWSTrustClient(final STSClientConfig config) { try { return STSClientFactory.getInstance().create(config); } catch (final ParsingException e) { throw new IllegalStateException(ErrorCodes.PROCESSING_EXCEPTION + "Could not create WSTrustClient:", e); } }
protected STSClient createWSTrustClient(final STSClientConfig config) { try { return STSClientFactory.getInstance(maxClientsInPool).create(initialNumberOfClients, config); } catch (final Exception e) { throw logger.authCouldNotCreateWSTrustClient(e); } }
STSClient createSTSClient(final STSClientConfig.Builder builder) throws ParsingException { return STSClientFactory.getInstance().create(builder.build()); }
STSClient createSTSClient(final STSClientConfig.Builder builder) throws ParsingException { return STSClientFactory.getInstance().create(builder.build()); }
STSClient createSTSClient(final STSClientConfig.Builder builder) throws ParsingException { return 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 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); int index = 0; for (String endpointURI : endpointURIs) { builder.endpointAddress(endpointURI); this.clients[index++] = STSClientFactory.getInstance().create(builder.build()); } }