Questions tagged [socketfactory]
17 questions
5
votes
1 answer
Is there a way to provide SocketFactory _instance_ to InitialLdapContext?
There is a static way of providing SocketFactory to InitialLdapContext:
env.put("java.naming.ldap.factory.socket", MySocketFactory.class.getName());
new InitialLdapContext(env, null);
But is there some way to provide the instance itself instead of…

Martin Ždila
- 2,998
- 3
- 31
- 35
4
votes
2 answers
How to use a custom socketfactory in Apache HttpComponents
I have been trying to use a custom SocketFactory in the httpclient library from the Apache HTTPComponents project. So far without luck. I was expecting that I could just set a socket factory for a HttpClient instance, but it is obviously not so…

daniel kullmann
- 13,653
- 8
- 51
- 67
2
votes
1 answer
WebControl request through custom Socket implementation
This question is broad and cover three major mobile operating system (Android,iOS, Windows Mobile).
So for WebView (Android), UIWebView (iOS), WebBrowser ? (Windows Mobile) controls, I want to intercept the web request and send it through my own…

ata
- 8,853
- 8
- 42
- 68
1
vote
1 answer
Securing Java RMI with Asymmetric key cryptography
I have a requirement to secure the Java RMI calls with Asymmetric key cryptography (RSA) in a Peer 2 Peer File sharing application.
I referred this, but it uses a passphrase (Symmetric Key) to XOR the messages. I want that the client encrypts the…

Maverick
- 1,519
- 18
- 32
1
vote
1 answer
java.lang.NoClassDefFoundError: com/google/cloud/sql/core/CoreSocketFactory
I keep getting this error when I try to run a script that connects to a google cloud instance via jdbc. Not really sure at all how to fix it:
Exception in thread "main" java.lang.NoClassDefFoundError: com/google/cloud/sql/core/CoreSocketFactory
…

CodeMonkey
- 97
- 2
- 9
0
votes
1 answer
How to communicate with a python Twisted server from Java successfully?
These questions may sound silly, but I am new to this networking thing.
I have been trying for quite a few days now to implement a client that works with a Twisted server, but I am failing to get any response back from the server. I have read a lot…

yuroyami
- 814
- 6
- 24
0
votes
2 answers
Client socket factory in RMI exportObject?
If you want to use custom sockets for RMI (e.g. using SSL), in UnicastRemoteObject.exportObject(4) you need to specify a client socket factory as well as a server socket factory. But the exporting of objects is done on the server side. Why is the…

Bart van Heukelom
- 43,244
- 59
- 186
- 301
0
votes
1 answer
java.lang.NoSuchMethodError: 'com.google.api.client.json.JsonParser
I'm getting this error when I try to connect to a google cloud instance through jdbc. Not really sure why it's occurring but here's the full error:
Exception in thread "main" java.lang.NoSuchMethodError: 'com.google.api.client.json.JsonParser…

CodeMonkey
- 97
- 2
- 9
0
votes
1 answer
Providing Apache Axis with a socketfactory object, not class
In my current project, we are using Apache Axis to do remote calls via SOAP.
Now there are cases where the server host+port is not directly accessible due to firewall constraints, but there is the possibility of an SSH tunnel.
The Axis documentation…

Paŭlo Ebermann
- 73,284
- 20
- 146
- 210
0
votes
1 answer
Using GCP Cloud SQL SocketFactory with Hibernate Configuration
I am trying to connect to a Cloud SQL Postgres Database instance from GCP App Engine (GAE) Standard. Using the database instance connection name (my-project-id:europe-west1:db-instance-name) with the Cloud SQL SocketFactory with Hibernate.
…

David McCullough
- 1
- 1
0
votes
0 answers
Custom socket factory is not getting called on Linux - works on Windows and Mac
Refer to the code below. It works fine on Windows and Mac but not on Linux. It does not call the MySSLSocketFactory class and as a result, the cert is not trusted. Any suggestions???
import java.util.Hashtable;
import javax.naming.Context;
import…

user3523268
- 101
- 1
- 2
- 6
0
votes
4 answers
Use Javamail through a proxy
I have a Java application which uses Javamail (v.1.5.4) for send and review mails into a POP/SMTP mail server. This application must run in our coporate network, where we have a proxy (f*ck!) that blocks my requests. I have googled possible…

Pablo D
- 393
- 2
- 6
- 22
0
votes
0 answers
How to safely reset RMISocketFactory, after launching javaws with proxy?
I'm debugging a Java Swing application that is started via Java WebStart 8.
My network requires me to use a http proxy. This triggers webstart to set the RMISocketFactory to a default implementation.
My problem is the fact I need to use my custom…

Andrei Matei
- 1,049
- 2
- 10
- 23
0
votes
1 answer
Secure HTTPS POST in Android
I'm a noob with Android development, so bear with me. I'm trying to figure out how to make a secure HTTPS POST in Android for a REST API call, and I tried the following method (provided at Secure HTTP Post in Android)
private HttpClient…

mannykary
- 812
- 2
- 10
- 18
0
votes
1 answer
how to achieve compression with spring-rmi
I'm trying to implement custom socket factory for compression in our Spring-rmi Application.
below is the rmi-server configuration :
…

shatk
- 465
- 5
- 16