public class JSSE14SocketFactory extends JSSESocketFactory
clientAuthNeed, clientAuthWant, defaultAlgorithm, defaultProtocol, enabledCiphers, initialized, logger, sslProxy
attributes, context
Constructor and Description |
---|
JSSE14SocketFactory() |
Modifier and Type | Method and Description |
---|---|
protected Collection<? extends CRL> |
getCRLs(String crlf)
Load the collection of CRLs.
|
protected String[] |
getEnabledProtocols(SSLServerSocket socket,
String requestedProtocols)
Determines the SSL protocol variants to be enabled.
|
protected KeyManager[] |
getKeyManagers(String algorithm,
String keyAlias)
Gets the initialized key managers.
|
protected CertPathParameters |
getParameters(String algorithm,
String crlf,
KeyStore trustStore)
Return the initialization parameters for the TrustManager.
|
protected TrustManager[] |
getTrustManagers(String algorithm)
Gets the initialized trust managers.
|
void |
init()
Reads the keystore and initializes the SSL socket factory.
|
protected void |
setEnabledProtocols(SSLServerSocket socket,
String[] protocols)
Set the SSL protocol variants to be enabled.
|
acceptSocket, createSocket, createSocket, createSocket, getEnabledCiphers, getKeystore, getKeystorePassword, getTrustStore, getTruststorePassword, handshake, initServerSocket
getDefault, getSSLContext, initSocket, setAttribute
public void init() throws IOException
init
in class JSSESocketFactory
IOException
protected KeyManager[] getKeyManagers(String algorithm, String keyAlias) throws Exception
Exception
protected TrustManager[] getTrustManagers(String algorithm) throws Exception
Exception
protected CertPathParameters getParameters(String algorithm, String crlf, KeyStore trustStore) throws Exception
PKIX
is
supported.algorithm
- The algorithm to get parameters for.crlf
- The path to the CRL file.trustStore
- The configured TrustStore.Exception
protected Collection<? extends CRL> getCRLs(String crlf) throws IOException, CRLException, CertificateException
protected void setEnabledProtocols(SSLServerSocket socket, String[] protocols)
JSSESocketFactory
setEnabledProtocols
in class JSSESocketFactory
socket
- the SSLServerSocket.protocols
- the protocols to use.protected String[] getEnabledProtocols(SSLServerSocket socket, String requestedProtocols)
JSSESocketFactory
getEnabledProtocols
in class JSSESocketFactory
socket
- The socket to get supported list from.requestedProtocols
- Comma-separated list of requested SSL protocol variantsCopyright © 2021. All rights reserved.