org.apache.catalina.authenticator.AuthenticatorBase.initInternal()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(4.5k)|赞(0)|评价(0)|浏览(124)

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

AuthenticatorBase.initInternal介绍

暂无

代码示例

代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

@Override
protected void initInternal() throws LifecycleException {
  super.initInternal();
  // Kerberos configuration file location
  String krb5Conf = System.getProperty(Constants.KRB5_CONF_PROPERTY);
  if (krb5Conf == null) {
    // System property not set, use the Tomcat default
    File krb5ConfFile = new File(container.getCatalinaBase(),
        Constants.DEFAULT_KRB5_CONF);
    System.setProperty(Constants.KRB5_CONF_PROPERTY,
        krb5ConfFile.getAbsolutePath());
  }
  // JAAS configuration file location
  String jaasConf = System.getProperty(Constants.JAAS_CONF_PROPERTY);
  if (jaasConf == null) {
    // System property not set, use the Tomcat default
    File jaasConfFile = new File(container.getCatalinaBase(),
        Constants.DEFAULT_JAAS_CONF);
    System.setProperty(Constants.JAAS_CONF_PROPERTY,
        jaasConfFile.getAbsolutePath());
  }
}

代码示例来源:origin: org.apache.tomcat/tomcat-catalina

@Override
protected void initInternal() throws LifecycleException {
  super.initInternal();
  // Kerberos configuration file location
  String krb5Conf = System.getProperty(Constants.KRB5_CONF_PROPERTY);
  if (krb5Conf == null) {
    // System property not set, use the Tomcat default
    File krb5ConfFile = new File(container.getCatalinaBase(),
        Constants.DEFAULT_KRB5_CONF);
    System.setProperty(Constants.KRB5_CONF_PROPERTY,
        krb5ConfFile.getAbsolutePath());
  }
  // JAAS configuration file location
  String jaasConf = System.getProperty(Constants.JAAS_CONF_PROPERTY);
  if (jaasConf == null) {
    // System property not set, use the Tomcat default
    File jaasConfFile = new File(container.getCatalinaBase(),
        Constants.DEFAULT_JAAS_CONF);
    System.setProperty(Constants.JAAS_CONF_PROPERTY,
        jaasConfFile.getAbsolutePath());
  }
}

代码示例来源:origin: codefollower/Tomcat-Research

@Override
protected void initInternal() throws LifecycleException {
  super.initInternal();
  // Kerberos configuration file location
  String krb5Conf = System.getProperty(Constants.KRB5_CONF_PROPERTY);
  if (krb5Conf == null) {
    // System property not set, use the Tomcat default
    File krb5ConfFile = new File(container.getCatalinaBase(),
        Constants.DEFAULT_KRB5_CONF);
    System.setProperty(Constants.KRB5_CONF_PROPERTY,
        krb5ConfFile.getAbsolutePath());
  }
  // JAAS configuration file location
  String jaasConf = System.getProperty(Constants.JAAS_CONF_PROPERTY);
  if (jaasConf == null) {
    // System property not set, use the Tomcat default
    File jaasConfFile = new File(container.getCatalinaBase(),
        Constants.DEFAULT_JAAS_CONF);
    System.setProperty(Constants.JAAS_CONF_PROPERTY,
        jaasConfFile.getAbsolutePath());
  }
}

代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina

@Override
protected void initInternal() throws LifecycleException {
  super.initInternal();
  // Kerberos configuration file location
  String krb5Conf = System.getProperty(Constants.KRB5_CONF_PROPERTY);
  if (krb5Conf == null) {
    // System property not set, use the Tomcat default
    File krb5ConfFile = new File(Bootstrap.getCatalinaBase(),
        Constants.DEFAULT_KRB5_CONF);
    System.setProperty(Constants.KRB5_CONF_PROPERTY,
        krb5ConfFile.getAbsolutePath());
  }
  // JAAS configuration file location
  String jaasConf = System.getProperty(Constants.JAAS_CONF_PROPERTY);
  if (jaasConf == null) {
    // System property not set, use the Tomcat default
    File jaasConfFile = new File(Bootstrap.getCatalinaBase(),
        Constants.DEFAULT_JAAS_CONF);
    System.setProperty(Constants.JAAS_CONF_PROPERTY,
        jaasConfFile.getAbsolutePath());
  }
  
  // This property must be false for SPNEGO to work
  System.setProperty(Constants.USE_SUBJECT_CREDS_ONLY_PROPERTY, "false");
}

代码示例来源:origin: org.apache.catalina/com.springsource.org.apache.catalina

@Override
protected void initInternal() throws LifecycleException {
  super.initInternal();
  // Kerberos configuration file location
  String krb5Conf = System.getProperty(Constants.KRB5_CONF_PROPERTY);
  if (krb5Conf == null) {
    // System property not set, use the Tomcat default
    File krb5ConfFile = new File(Bootstrap.getCatalinaBase(),
        Constants.DEFAULT_KRB5_CONF);
    System.setProperty(Constants.KRB5_CONF_PROPERTY,
        krb5ConfFile.getAbsolutePath());
  }
  // JAAS configuration file location
  String jaasConf = System.getProperty(Constants.JAAS_CONF_PROPERTY);
  if (jaasConf == null) {
    // System property not set, use the Tomcat default
    File jaasConfFile = new File(Bootstrap.getCatalinaBase(),
        Constants.DEFAULT_JAAS_CONF);
    System.setProperty(Constants.JAAS_CONF_PROPERTY,
        jaasConfFile.getAbsolutePath());
  }
  
  // This property must be false for SPNEGO to work
  System.setProperty(Constants.USE_SUBJECT_CREDS_ONLY_PROPERTY, "false");
}

相关文章

微信公众号

最新文章

更多