Java 类org.apache.zookeeper.server.util.KerberosUtil 实例源码

项目:incubator-slider    文件:SliderUtils.java   
public static String getKerberosRealm() {
  try {
    return KerberosUtil.getDefaultRealm();
  } catch (Exception e) {
    log.debug("introspection into JVM internals failed", e);
    return "(unknown)";

  }
}
项目:datacollector    文件:HadoopSecurityUtil.java   
public static String getDefaultRealm() throws ReflectiveOperationException {
  return KerberosUtil.getDefaultRealm();
}