*/
public void initialize(httpd server) {
super.initialize(server);
daemon = server;
daemon.registerPropertySet(new SSLProperties(daemon));
ObservableProperties props = daemon.getProperties();
try {
// Providers or protocols are switched by default
// in a compatible way as postulated by the JDK 1.4 policies
String provider;
provider = props.getString(SSLProperties.SECURITY_PROVIDER_P,
(supportsOptionalClientAuth ? null :
SSLProperties.DEFAULT_SECURITY_PROVIDER));
addProvider(provider);
String handler = props.getString(SSLProperties.PROTOCOL_HANDLER_P,
(supportsOptionalClientAuth ? null :
SSLProperties.DEFAULT_PROTOCOL_HANDLER));
setHandler(handler);
context = createContext(props);
String bindAddrName = props.getString(BINDADDR_P, null);
if (bindAddrName != null) {
try {
bindAddr = InetAddress.getByName(bindAddrName);
} catch (Exception ex) {
bindAddr = null;
}
} else {
bindAddr = null;
}
maxClients = props.getInteger(MAXCLIENTS_P, MAXCLIENTS);
} catch (Exception ex) {
String mes;
mes = "Unable to initialize secure socket provider";
daemon.fatal(ex, mes);