Package org.conscrypt
Class Java8FileDescriptorSocket
java.lang.Object
java.net.Socket
javax.net.ssl.SSLSocket
org.conscrypt.AbstractConscryptSocket
org.conscrypt.OpenSSLSocketImpl
org.conscrypt.ConscryptFileDescriptorSocket
org.conscrypt.Java8FileDescriptorSocket
- All Implemented Interfaces:
Closeable,AutoCloseable,NativeCrypto.SSLHandshakeCallbacks,SSLParametersImpl.AliasChooser,SSLParametersImpl.PSKCallbacks
A version of ConscryptFileDescriptorSocket that includes the new Java 9 (and potentially later
patches of 8)
setHandshakeApplicationProtocolSelector API (which requires Java 8 for
compilation, due to the use of BiFunction).-
Field Summary
FieldsFields inherited from class org.conscrypt.AbstractConscryptSocket
socket -
Constructor Summary
ConstructorsConstructorDescriptionJava8FileDescriptorSocket(String hostname, int port, InetAddress clientAddress, int clientPort, SSLParametersImpl sslParameters) Java8FileDescriptorSocket(String hostname, int port, SSLParametersImpl sslParameters) Java8FileDescriptorSocket(InetAddress address, int port, InetAddress clientAddress, int clientPort, SSLParametersImpl sslParameters) Java8FileDescriptorSocket(InetAddress address, int port, SSLParametersImpl sslParameters) Java8FileDescriptorSocket(Socket socket, String hostname, int port, boolean autoClose, SSLParametersImpl sslParameters) Java8FileDescriptorSocket(SSLParametersImpl sslParameters) -
Method Summary
Modifier and TypeMethodDescriptionvoidprivate static ApplicationProtocolSelectortoApplicationProtocolSelector(BiFunction<SSLSocket, List<String>, String> selector) Methods inherited from class org.conscrypt.ConscryptFileDescriptorSocket
chooseClientAlias, chooseClientPSKIdentity, chooseServerAlias, chooseServerPSKIdentityHint, clientCertificateRequested, clientPSKKeyRequested, close, exportKeyingMaterial, finalize, getActiveSession, getApplicationProtocol, getApplicationProtocols, getChannelId, getEnabledCipherSuites, getEnabledProtocols, getEnableSessionCreation, getHandshakeApplicationProtocol, getHandshakeSession, getInputStream, getNeedClientAuth, getOutputStream, getPSKKey, getSession, getSoWriteTimeout, getSSLParameters, getSupportedCipherSuites, getSupportedProtocols, getTlsUnique, getUseClientMode, getWantClientAuth, onNewSessionEstablished, onSSLStateChange, selectApplicationProtocol, serverCertificateRequested, serverPSKKeyRequested, serverSessionRequested, setApplicationProtocols, setApplicationProtocolSelector, setApplicationProtocolSelector, setChannelIdEnabled, setChannelIdPrivateKey, setEnabledCipherSuites, setEnabledProtocols, setEnableSessionCreation, setHandshakeTimeout, setHostname, setNeedClientAuth, setSoWriteTimeout, setSSLParameters, setUseClientMode, setUseSessionTickets, setWantClientAuth, startHandshake, verifyCertificateChainMethods inherited from class org.conscrypt.OpenSSLSocketImpl
getAlpnSelectedProtocol, getFileDescriptor$, getHostname, getHostnameOrIP, getNpnSelectedProtocol, setAlpnProtocols, setAlpnProtocols, setNpnProtocolsMethods inherited from class org.conscrypt.AbstractConscryptSocket
addHandshakeCompletedListener, bind, checkOpen, connect, connect, getChannel, getInetAddress, getKeepAlive, getLocalAddress, getLocalPort, getLocalSocketAddress, getOOBInline, getPort, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getSoLinger, getSoTimeout, getTcpNoDelay, getTrafficClass, isBound, isClosed, isConnected, isInputShutdown, isOutputShutdown, notifyHandshakeCompletedListeners, peerInfoProvider, removeHandshakeCompletedListener, sendUrgentData, setKeepAlive, setOOBInline, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSoLinger, setSoTimeout, setTcpNoDelay, setTrafficClass, shutdownInput, shutdownOutput, toStringMethods inherited from class java.net.Socket
getOption, setOption, setSocketImplFactory, supportedOptions
-
Field Details
-
selector
-
-
Constructor Details
-
Java8FileDescriptorSocket
Java8FileDescriptorSocket(SSLParametersImpl sslParameters) throws IOException - Throws:
IOException
-
Java8FileDescriptorSocket
Java8FileDescriptorSocket(String hostname, int port, SSLParametersImpl sslParameters) throws IOException - Throws:
IOException
-
Java8FileDescriptorSocket
Java8FileDescriptorSocket(InetAddress address, int port, SSLParametersImpl sslParameters) throws IOException - Throws:
IOException
-
Java8FileDescriptorSocket
Java8FileDescriptorSocket(String hostname, int port, InetAddress clientAddress, int clientPort, SSLParametersImpl sslParameters) throws IOException - Throws:
IOException
-
Java8FileDescriptorSocket
Java8FileDescriptorSocket(InetAddress address, int port, InetAddress clientAddress, int clientPort, SSLParametersImpl sslParameters) throws IOException - Throws:
IOException
-
Java8FileDescriptorSocket
Java8FileDescriptorSocket(Socket socket, String hostname, int port, boolean autoClose, SSLParametersImpl sslParameters) throws IOException - Throws:
IOException
-
-
Method Details
-
setHandshakeApplicationProtocolSelector
public void setHandshakeApplicationProtocolSelector(BiFunction<SSLSocket, List<String>, String> selector) - Overrides:
setHandshakeApplicationProtocolSelectorin classSSLSocket
-
getHandshakeApplicationProtocolSelector
- Overrides:
getHandshakeApplicationProtocolSelectorin classSSLSocket
-
toApplicationProtocolSelector
private static ApplicationProtocolSelector toApplicationProtocolSelector(BiFunction<SSLSocket, List<String>, String> selector)
-