本文整理了Java中org.apache.hadoop.http.HttpServer.addSslListener()
方法的一些代码示例,展示了HttpServer.addSslListener()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。HttpServer.addSslListener()
方法的具体详情如下:
包路径:org.apache.hadoop.http.HttpServer
类名称:HttpServer
方法名:addSslListener
[英]Configure an ssl listener on the server.
[中]在服务器上配置ssl侦听器。
代码示例来源:origin: io.fabric8/fabric-hadoop
/**
* Configure an ssl listener on the server.
* @param addr address to listen on
* @param sslConf conf to retrieve ssl options
* @param needClientAuth whether client authentication is required
*/
public void addSslListener(InetSocketAddress addr, Configuration sslConf,
boolean needClientAuth) throws IOException {
addSslListener(addr, sslConf, needClientAuth, false);
}
代码示例来源:origin: com.facebook.hadoop/hadoop-core
sslConf.addResource(conf.get("dfs.https.server.keystore.resource",
"ssl-server.xml"));
this.infoServer.addSslListener(secInfoSocAddr, sslConf, needClientAuth);
代码示例来源:origin: com.facebook.hadoop/hadoop-core
sslConf.addResource(conf.get("dfs.https.server.keystore.resource",
"ssl-server.xml"));
this.httpServer.addSslListener(secInfoSocAddr, sslConf, needClientAuth);
代码示例来源:origin: org.jvnet.hudson.hadoop/hadoop-core
String keyloc = sslConf.get("https.keystore.location");
if (null != keyloc) {
this.infoServer.addSslListener(secInfoSocAddr, keyloc,
sslConf.get("https.keystore.password", ""),
sslConf.get("https.keystore.keypassword", ""));
代码示例来源:origin: io.fabric8/fabric-hadoop
sslConf.addResource(conf.get("dfs.https.server.keystore.resource",
"ssl-server.xml"));
this.infoServer.addSslListener(secInfoSocAddr, sslConf, needClientAuth);
代码示例来源:origin: org.jvnet.hudson.hadoop/hadoop-core
String keyloc = sslConf.get("https.keystore.location");
if (null != keyloc) {
this.infoServer.addSslListener(secInfoSocAddr, keyloc,
sslConf.get("https.keystore.password", ""),
sslConf.get("https.keystore.keypassword", ""));
内容来源于网络,如有侵权,请联系作者删除!