|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--webcore.webserver.WebServerSSLSocketFactory
WebServer Socket Factory for SSL web servers
Field Summary | |
static java.lang.String[] |
CIPHER_SUITES_EXPORT
|
static java.lang.String |
KEY_MANAGER_FACTORY_TYPE
|
static java.lang.String |
KEY_STORE_TYPE
|
static boolean |
NEED_CLIENT_AUTHENTICATION
|
static java.lang.String |
SSL_VERSION
|
static java.lang.String |
TRUST_MANAGER_FACTORY_TYPE
|
Constructor Summary | |
WebServerSSLSocketFactory(java.lang.String ksPath,
java.lang.String pass)
constructs a new SSL Socket Factory |
Method Summary | |
java.net.ServerSocket |
getServerSocket(int requestedPort)
Returns an SSL socket listening on the requested port. |
javax.net.ssl.SSLContext |
getSSLContext()
Get the SSLContext. |
void |
setSSLContext(java.lang.String ksPath,
java.lang.String pass)
Setting the SSLContext will make this an HTTPS server. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final boolean NEED_CLIENT_AUTHENTICATION
public static final java.lang.String KEY_STORE_TYPE
public static final java.lang.String KEY_MANAGER_FACTORY_TYPE
public static final java.lang.String TRUST_MANAGER_FACTORY_TYPE
public static final java.lang.String SSL_VERSION
public static final java.lang.String[] CIPHER_SUITES_EXPORT
Constructor Detail |
public WebServerSSLSocketFactory(java.lang.String ksPath, java.lang.String pass) throws java.security.GeneralSecurityException, java.io.IOException
ksPath
- path to a java keystore containing the server's certificate
and private key; the keystore password and key password must be the samepass
- the keystore password and key password
java.lang.Exception
- - this method throws a bunch of exceptions most of which
indicate a configuration error
java.security.GeneralSecurityException
java.io.IOException
Method Detail |
public void setSSLContext(java.lang.String ksPath, java.lang.String pass) throws java.security.GeneralSecurityException, java.io.IOException
ksPath
- path to a java keystore containing the server's certificate
and private key; the keystore password and key password must be the samepass
- the keystore password and key password
java.lang.Exception
- - this method throws a bunch of exceptions most of which
indicate a configuration error
java.security.GeneralSecurityException
java.io.IOException
public javax.net.ssl.SSLContext getSSLContext()
public java.net.ServerSocket getServerSocket(int requestedPort) throws java.io.IOException
getServerSocket
in interface WebServerSocketFactoryInterface
requestedPort
- the port for the server socket to listen on
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |