public class SSLServer extends SSLServerSocketFactory
| Constructor and Description |
|---|
SSLServer() |
getDefaultpublic SSLServer() throws GeneralSecurityException, IOException
GeneralSecurityExceptionIOExceptionpublic boolean useTomcatSSLMaterial() throws GeneralSecurityException, IOException
GeneralSecurityException - setKeyMaterial() failedIOException - setKeyMaterial() failedprivate boolean useDefaultKeyMaterial() throws GeneralSecurityException, IOException
GeneralSecurityExceptionIOExceptionpublic 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
GeneralSecurityExceptionIOExceptionpublic TrustChain getTrustChain()
public X509Certificate[] getCurrentClientChain()
public String[] getDefaultCipherSuites()
getDefaultCipherSuites in class SSLServerSocketFactorypublic String[] getSupportedCipherSuites()
getSupportedCipherSuites in class SSLServerSocketFactorypublic ServerSocket createServerSocket() throws IOException
createServerSocket in class ServerSocketFactoryIOExceptionpublic ServerSocket createServerSocket(int port) throws IOException
createServerSocket in class ServerSocketFactoryIOExceptionpublic ServerSocket createServerSocket(int port, int backlog) throws IOException
createServerSocket in class ServerSocketFactoryIOExceptionpublic ServerSocket createServerSocket(int port, int backlog, InetAddress localHost) throws IOException
createServerSocket in class ServerSocketFactorylocalHost - 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