Java Code Examples for com.sun.net.httpserver.HttpsConfigurator#getSSLContext()

The following examples show how to use com.sun.net.httpserver.HttpsConfigurator#getSSLContext() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ServerImpl.java    From freehealth-connector with GNU Affero General Public License v3.0 5 votes vote down vote up
public void setHttpsConfigurator(HttpsConfigurator config) {
   if (config == null) {
      throw new NullPointerException("null HttpsConfigurator");
   } else if (this.started) {
      throw new IllegalStateException("server already started");
   } else {
      this.httpsConfig = config;
      this.sslContext = config.getSSLContext();
   }
}
 
Example 2
Source File: ServerImpl.java    From freehealth-connector with GNU Affero General Public License v3.0 5 votes vote down vote up
public void setHttpsConfigurator(HttpsConfigurator config) {
   if (config == null) {
      throw new NullPointerException("null HttpsConfigurator");
   } else if (this.started) {
      throw new IllegalStateException("server already started");
   } else {
      this.httpsConfig = config;
      this.sslContext = config.getSSLContext();
   }
}
 
Example 3
Source File: ServerImpl.java    From freehealth-connector with GNU Affero General Public License v3.0 5 votes vote down vote up
public void setHttpsConfigurator(HttpsConfigurator config) {
   if (config == null) {
      throw new NullPointerException("null HttpsConfigurator");
   } else if (this.started) {
      throw new IllegalStateException("server already started");
   } else {
      this.httpsConfig = config;
      this.sslContext = config.getSSLContext();
   }
}
 
Example 4
Source File: ServerImpl.java    From freehealth-connector with GNU Affero General Public License v3.0 5 votes vote down vote up
public void setHttpsConfigurator(HttpsConfigurator config) {
   if (config == null) {
      throw new NullPointerException("null HttpsConfigurator");
   } else if (this.started) {
      throw new IllegalStateException("server already started");
   } else {
      this.httpsConfig = config;
      this.sslContext = config.getSSLContext();
   }
}