public class JSSE14SocketFactory extends JSSESocketFactory
clientAuth, enabledCiphers, initialized, log, sslProxyattributes, 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) |
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 intialized 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, handshakegetDefault, getSSLContext, initSocket, setAttributepublic void init()
throws IOException
init in class JSSESocketFactoryIOExceptionprotected KeyManager[] getKeyManagers(String algorithm, String keyAlias) throws Exception
Exceptionprotected TrustManager[] getTrustManagers(String algorithm) throws Exception
Exceptionprotected 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.Exceptionprotected Collection<? extends CRL> getCRLs(String crlf) throws IOException, CRLException, CertificateException
protected void setEnabledProtocols(SSLServerSocket socket, String[] protocols)
JSSESocketFactorysetEnabledProtocols in class JSSESocketFactorysocket - the SSLServerSocket.protocols - the protocols to use.protected String[] getEnabledProtocols(SSLServerSocket socket, String requestedProtocols)
getEnabledProtocols in class JSSESocketFactoryCopyright © 2005–2017 Oracle Corporation. All rights reserved.