@Test(expectedExceptions = KSIClientException.class, expectedExceptionsMessageRegExp = "Extender connection is not configured.*") public void testExtendingIfOnlySigningIsConfigured() throws Exception { TCPClient tcpClient = new TCPClient(TCP_SETTINGS_ANON_1); tcpClient.extend(new ByteArrayInputStream(new byte[] {0})); }
public Future<TLVElement> extend(InputStream request) throws KSIClientException { if (extenderTCPClient == null) { throw new KSIClientException("Extender connection is not configured. This means that you have used the deprecated " + "constructor to initialize this client. If you'd like to use TCPClient for both signing and extending use " + "constructor TCPClient(TCPClientSettings signingSettings, TCPClientSettings extendingSettings) or if you'd " + "like to use TCP client only for signing, use SigningTCPClient"); } return extenderTCPClient.extend(request); }
TCPClient implements KSISigningClient, KSIExtenderClient { public Future<TLVElement> extend(InputStream request) throws KSIClientException { if (extenderTCPClient == null) { throw new KSIClientException("Extender connection is not configured. This means that you have used the deprecated " + "constructor to initialize this client. If you'd like to use TCPClient for both signing and extending use " + "constructor TCPClient(TCPClientSettings signingSettings, TCPClientSettings extendingSettings) or if you'd " + "like to use TCP client only for signing, use SigningTCPClient"); } return extenderTCPClient.extend(request); } }
TCPClient implements KSISigningClient, KSIExtenderClient { public Future<TLVElement> extend(InputStream request) throws KSIClientException { if (extenderTCPClient == null) { throw new KSIClientException("Extender connection is not configured. This means that you have used the deprecated " + "constructor to initialize this client. If you'd like to use TCPClient for both signing and extending use " + "constructor TCPClient(TCPClientSettings signingSettings, TCPClientSettings extendingSettings) or if you'd " + "like to use TCP client only for signing, use SigningTCPClient"); } return extenderTCPClient.extend(request); } @Deprecated  TCPClient(TCPClientSettings signingSettings);  TCPClient(TCPClientSettings signingSettings, TCPClientSettings extendingSettings); }
TCPClient implements KSISigningClient, KSIExtenderClient { public Future<TLVElement> extend(InputStream request) throws KSIClientException { if (extenderTCPClient == null) { throw new KSIClientException("Extender connection is not configured. This means that you have used the deprecated " + "constructor to initialize this client. If you'd like to use TCPClient for both signing and extending use " + "constructor TCPClient(TCPClientSettings signingSettings, TCPClientSettings extendingSettings) or if you'd " + "like to use TCP client only for signing, use SigningTCPClient"); } return extenderTCPClient.extend(request); } @Deprecated  TCPClient(TCPClientSettings signingSettings);  TCPClient(TCPClientSettings signingSettings, TCPClientSettings extendingSettings); Future<TLVElement> sign(InputStream request); Future<TLVElement> extend(InputStream request); void close(); ServiceCredentials getServiceCredentials(); PduVersion getPduVersion(); @Override String toString(); }
TCPClient implements KSISigningClient, KSIExtenderClient { public Future<TLVElement> extend(InputStream request) throws KSIClientException { if (extenderTCPClient == null) { throw new KSIClientException("Extender connection is not configured. This means that you have used the deprecated " + "constructor to initialize this client. If you'd like to use TCPClient for both signing and extending use " + "constructor TCPClient(TCPClientSettings signingSettings, TCPClientSettings extendingSettings) or if you'd " + "like to use TCP client only for signing, use SigningTCPClient"); } return extenderTCPClient.extend(request); } @Deprecated  TCPClient(TCPClientSettings signingSettings);  TCPClient(TCPClientSettings signingSettings, TCPClientSettings extendingSettings); Future<TLVElement> sign(InputStream request); Future<TLVElement> extend(InputStream request); void close(); ServiceCredentials getServiceCredentials(); PduVersion getPduVersion(); @Override String toString();  }