public class SSLServer extends SSLServerSocketFactory
Constructor and Description |
---|
SSLServer() |
getDefault
public SSLServer() throws GeneralSecurityException, IOException
GeneralSecurityException
IOException
public boolean useTomcatSSLMaterial() throws GeneralSecurityException, IOException
GeneralSecurityException
- setKeyMaterial() failedIOException
- setKeyMaterial() failedprivate boolean useDefaultKeyMaterial() throws GeneralSecurityException, IOException
GeneralSecurityException
IOException
public void setDnsOverride(Map m)
public void addTrustMaterial(TrustChain trustChain) throws NoSuchAlgorithmException, KeyStoreException, KeyManagementException, IOException, CertificateException
public void setTrustMaterial(TrustChain trustChain) throws NoSuchAlgorithmException, KeyStoreException, KeyManagementException, IOException, CertificateException
public void setKeyMaterial(KeyMaterial keyMaterial) throws NoSuchAlgorithmException, KeyStoreException, KeyManagementException, IOException, CertificateException
public void setCheckCRL(boolean b)
public void setCheckExpiry(boolean b)
public void setCheckHostname(boolean b)
public void setConnectTimeout(int i)
public void setDefaultProtocol(String s)
public void setEnabledCiphers(String[] ciphers)
public void setEnabledProtocols(String[] protocols)
public void setHostnameVerifier(HostnameVerifier verifier)
public void setSoTimeout(int soTimeout)
public void setSSLWrapperFactory(SSLWrapperFactory wf)
public void setNeedClientAuth(boolean b)
public void setWantClientAuth(boolean b)
public void setUseClientMode(boolean b)
public X509Certificate[] getAssociatedCertificateChain()
public boolean getCheckCRL()
public boolean getCheckExpiry()
public boolean getCheckHostname()
public int getConnectTimeout()
public String getDefaultProtocol()
public String[] getEnabledCiphers()
public String[] getEnabledProtocols()
public HostnameVerifier getHostnameVerifier()
public int getSoTimeout()
public SSLWrapperFactory getSSLWrapperFactory()
public boolean getNeedClientAuth()
public boolean getWantClientAuth()
public boolean getUseClientMode()
public SSLContext getSSLContext() throws GeneralSecurityException, IOException
GeneralSecurityException
IOException
public TrustChain getTrustChain()
public X509Certificate[] getCurrentClientChain()
public String[] getDefaultCipherSuites()
getDefaultCipherSuites
in class SSLServerSocketFactory
public String[] getSupportedCipherSuites()
getSupportedCipherSuites
in class SSLServerSocketFactory
public ServerSocket createServerSocket() throws IOException
createServerSocket
in class ServerSocketFactory
IOException
public ServerSocket createServerSocket(int port) throws IOException
createServerSocket
in class ServerSocketFactory
IOException
public ServerSocket createServerSocket(int port, int backlog) throws IOException
createServerSocket
in class ServerSocketFactory
IOException
public ServerSocket createServerSocket(int port, int backlog, InetAddress localHost) throws IOException
createServerSocket
in class ServerSocketFactory
localHost
- the local host name/IP to bind against (null == ANY)port
- the port to listen onbacklog
- number of connections allowed to queue up for accept().IOException
- if an I/O error occurs while creating thesocket