org.apache.hadoop.http.HttpServer.addSslListener()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(2.0k)|赞(0)|评价(0)|浏览(166)

本文整理了Java中org.apache.hadoop.http.HttpServer.addSslListener()方法的一些代码示例,展示了HttpServer.addSslListener()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。HttpServer.addSslListener()方法的具体详情如下:
包路径:org.apache.hadoop.http.HttpServer
类名称:HttpServer
方法名:addSslListener

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", ""));

相关文章