Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
com.exceptionfactory.socketbroker:socketbroker
Advanced tools
Java Socket library supporting SOCKS and HTTP proxy servers with authentication
Java Socket library supporting SOCKS and HTTP proxy servers with authentication
Socket Broker follows the Semantic Versioning Specification 2.0.0.
The public API consists of interfaces and classes in the following Java packages:
Socket Broker supports client capabilities for several protocols defined in referenced standards.
Run the following Maven command to build the library:
./mvnw clean install
The BrokeredSocketFactory
class provides the primary point of integration for external applications.
The BrokerConfiguration
interface and StandardBrokerConfiguration
class provide the proxy protocol, proxy server
address, and optional authentication credentials necessary for creating a connection through a proxy server.
The ProxyType
enumeration defines supported protocols including SOCKS5
and HTTP_CONNECT
.
The proxy server address must be defined using an instance of java.net.InetSocketAddress that includes the server address and port number.
Access to proxy servers that require authentication involves configuring an instance of AuthenticationCredentials
.
The StandardUsernamePasswordAuthenticationCredentials
class supports defining a username string and a password
character array.
The BrokeredSocketFactory
class requires an instance of BrokerConfiguration
as well as
a javax.net.SocketFactory. The SocketFactory
provides the opportunity to supply standard settings for the connection to the configured proxy server. The
SocketFactory.getDefault()
method is sufficient for standard integrations.
Several alternative implementations are available depending on usage requirements.
The java.net.Socket class can be configured using an instance of java.net.Proxy for connections to SOCKS or HTTP proxies that do not require authentication.
The standard java.net.Authenticator class
supports configurable proxy authentication through the static setDefault()
method. Standard Socket
implementations
invoke password request methods on a configured Authenticator
to return instances of
java.net.PasswordAuthentication. This
integration approach is sufficient for applications that allow defining an instance of the Authenticator
class for the
Java Virtual Machine.
The Netty project provides component modules that support both SOCKS 4 and SOCKS 5 as well as HTTP.
Netty does not provide a direct implementation of java.net.Socket
supporting proxy connections, but applications using
Netty can integrate support for proxy access using available components.
The SocksLib library provides client and server socket implementations for the SOCKS 5 protocol. SocksLib supports both TCP and UDP client connections.
Socket Broker is released under the Apache License, Version 2.0.
FAQs
Unknown package
We found that com.exceptionfactory.socketbroker:socketbroker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.