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

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

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

AuthenticatorBase.getContainer介绍

[英]Return the Container to which this Valve is attached.
[中]返回该阀门连接的容器。

代码示例

代码示例来源:origin: org.glassfish.main.security/websecurity

@Override
public Container getContainer() {
  return authBase.getContainer();
}

代码示例来源:origin: org.glassfish.main.security/websecurity

AuthenticatorProxy(Authenticator authenticator, Principal p, String authType)
    throws LifecycleException {
  this.authBase = (AuthenticatorBase) authenticator;
  this.principal = p;
  this.authType =
      authType == null ? RealmAdapter.PROXY_AUTH_TYPE : authType;
  setCache(authBase.getCache());
  setContainer(authBase.getContainer());
  start(); //finds sso valve and sets its value in proxy
}

代码示例来源:origin: tomcat/catalina

/**
 * Attempts reauthentication to the <code>Realm</code> using
 * the credentials included in argument <code>entry</code>.
 *
 * @param ssoId identifier of SingleSignOn session with which the
 *              caller is associated
 * @param request   the request that needs to be authenticated
 */
protected boolean reauthenticateFromSSO(String ssoId, Request request) {
  if (sso == null || ssoId == null)
    return false;
  boolean reauthenticated = false;
  Container parent = getContainer();
  if (parent != null) {
    Realm realm = parent.getRealm();
    if (realm != null) {
      reauthenticated = sso.reauthenticate(ssoId, realm, request);
    }
  }
  if (reauthenticated) {
    associate(ssoId, request.getSessionInternal(true));
    if (log.isDebugEnabled()) {
      log.debug(" Reauthenticated cached principal '" +
           request.getUserPrincipal().getName() +
           "' with auth type '" +  request.getAuthType() + "'");
    }
  }
  return reauthenticated;
}

代码示例来源:origin: jboss.web/jbossweb

/**
 * Attempts reauthentication to the <code>Realm</code> using
 * the credentials included in argument <code>entry</code>.
 *
 * @param ssoId identifier of SingleSignOn session with which the
 *              caller is associated
 * @param request   the request that needs to be authenticated
 */
protected boolean reauthenticateFromSSO(String ssoId, Request request) {
  if (sso == null || ssoId == null)
    return false;
  boolean reauthenticated = false;
  Container parent = getContainer();
  if (parent != null) {
    Realm realm = parent.getRealm();
    if (realm != null) {
      reauthenticated = sso.reauthenticate(ssoId, realm, request);
    }
  }
  if (reauthenticated) {
    associate(ssoId, request.getSessionInternal(true));
    if (log.isDebugEnabled()) {
      log.debug(" Reauthenticated cached principal '" +
           request.getUserPrincipal().getName() +
           "' with auth type '" +  request.getAuthType() + "'");
    }
  }
  return reauthenticated;
}

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

Container parent = getContainer();
if (parent != null) {
  Realm realm = parent.getRealm();

代码示例来源:origin: org.jboss.web/jbossweb

/**
 * Attempts reauthentication to the <code>Realm</code> using
 * the credentials included in argument <code>entry</code>.
 *
 * @param ssoId identifier of SingleSignOn session with which the
 *              caller is associated
 * @param request   the request that needs to be authenticated
 */
protected boolean reauthenticateFromSSO(String ssoId, Request request) {
  if (sso == null || ssoId == null)
    return false;
  boolean reauthenticated = false;
  Container parent = getContainer();
  if (parent != null) {
    Realm realm = parent.getRealm();
    if (realm != null) {
      reauthenticated = sso.reauthenticate(ssoId, realm, request);
    }
  }
  if (reauthenticated) {
    associate(ssoId, request.getSessionInternal(true));
    if (CatalinaLogger.AUTH_LOGGER.isDebugEnabled()) {
      CatalinaLogger.AUTH_LOGGER.debug(" Reauthenticated cached principal '" +
           request.getUserPrincipal().getName() +
           "' with auth type '" +  request.getAuthType() + "'");
    }
  }
  return reauthenticated;
}

代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9

/**
 * Attempts reauthentication to the <code>Realm</code> using
 * the credentials included in argument <code>entry</code>.
 *
 * @param ssoId identifier of SingleSignOn session with which the
 *              caller is associated
 * @param request   the request that needs to be authenticated
 */
protected boolean reauthenticateFromSSO(String ssoId, Request request) {
  if (sso == null || ssoId == null)
    return false;
  boolean reauthenticated = false;
  Container parent = getContainer();
  if (parent != null) {
    Realm realm = parent.getRealm();
    if (realm != null) {
      reauthenticated = sso.reauthenticate(ssoId, realm, request);
    }
  }
  if (reauthenticated) {
    associate(ssoId, request.getSessionInternal(true));
    if (log.isDebugEnabled()) {
      log.debug(" Reauthenticated cached principal '" +
           request.getUserPrincipal().getName() +
           "' with auth type '" +  request.getAuthType() + "'");
    }
  }
  return reauthenticated;
}

代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9

/**
 * Attempts reauthentication to the <code>Realm</code> using
 * the credentials included in argument <code>entry</code>.
 *
 * @param ssoId identifier of SingleSignOn session with which the
 *              caller is associated
 * @param request   the request that needs to be authenticated
 */
protected boolean reauthenticateFromSSO(String ssoId, Request request) {
  if (sso == null || ssoId == null)
    return false;
  boolean reauthenticated = false;
  Container parent = getContainer();
  if (parent != null) {
    Realm realm = parent.getRealm();
    if (realm != null) {
      reauthenticated = sso.reauthenticate(ssoId, realm, request);
    }
  }
  if (reauthenticated) {
    associate(ssoId, request.getSessionInternal(true));
    if (log.isDebugEnabled()) {
      log.debug(" Reauthenticated cached principal '" +
           request.getUserPrincipal().getName() +
           "' with auth type '" +  request.getAuthType() + "'");
    }
  }
  return reauthenticated;
}

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

/**
 * Attempts reauthentication to the <code>Realm</code> using
 * the credentials included in argument <code>entry</code>.
 *
 * @param ssoId identifier of SingleSignOn session with which the
 *              caller is associated
 * @param request   the request that needs to be authenticated
 */
protected boolean reauthenticateFromSSO(String ssoId, Request request) {
  if (sso == null || ssoId == null) {
    return false;
  }
  boolean reauthenticated = false;
  Container parent = getContainer();
  if (parent != null) {
    Realm realm = parent.getRealm();
    if (realm != null) {
      reauthenticated = sso.reauthenticate(ssoId, realm, request);
    }
  }
  if (reauthenticated) {
    associate(ssoId, request.getSessionInternal(true));
    if (log.isDebugEnabled()) {
      log.debug(" Reauthenticated cached principal '" +
           request.getUserPrincipal().getName() +
           "' with auth type '" +  request.getAuthType() + "'");
    }
  }
  return reauthenticated;
}

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

/**
 * Attempts reauthentication to the <code>Realm</code> using
 * the credentials included in argument <code>entry</code>.
 *
 * @param ssoId identifier of SingleSignOn session with which the
 *              caller is associated
 * @param request   the request that needs to be authenticated
 */
protected boolean reauthenticateFromSSO(String ssoId, Request request) {
  if (sso == null || ssoId == null)
    return false;
  boolean reauthenticated = false;
  Container parent = getContainer();
  if (parent != null) {
    Realm realm = parent.getRealm();
    if (realm != null) {
      reauthenticated = sso.reauthenticate(ssoId, realm, request);
    }
  }
  if (reauthenticated) {
    associate(ssoId, request.getSessionInternal(true));
    if (log.isDebugEnabled()) {
      log.debug(" Reauthenticated cached principal '" +
           request.getUserPrincipal().getName() +
           "' with auth type '" +  request.getAuthType() + "'");
    }
  }
  return reauthenticated;
}

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

/**
 * Attempts reauthentication to the <code>Realm</code> using
 * the credentials included in argument <code>entry</code>.
 *
 * @param ssoId identifier of SingleSignOn session with which the
 *              caller is associated
 * @param request   the request that needs to be authenticated
 */
protected boolean reauthenticateFromSSO(String ssoId, Request request) {
  if (sso == null || ssoId == null)
    return false;
  boolean reauthenticated = false;
  Container parent = getContainer();
  if (parent != null) {
    Realm realm = parent.getRealm();
    if (realm != null) {
      reauthenticated = sso.reauthenticate(ssoId, realm, request);
    }
  }
  if (reauthenticated) {
    associate(ssoId, request.getSessionInternal(true));
    if (log.isDebugEnabled()) {
      log.debug(" Reauthenticated cached principal '" +
           request.getUserPrincipal().getName() +
           "' with auth type '" +  request.getAuthType() + "'");
    }
  }
  return reauthenticated;
}

代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7

/**
 * Attempts reauthentication to the <code>Realm</code> using
 * the credentials included in argument <code>entry</code>.
 *
 * @param ssoId identifier of SingleSignOn session with which the
 *              caller is associated
 * @param request   the request that needs to be authenticated
 */
protected boolean reauthenticateFromSSO(String ssoId, Request request) {
  if (sso == null || ssoId == null)
    return false;
  boolean reauthenticated = false;
  Container parent = getContainer();
  if (parent != null) {
    Realm realm = parent.getRealm();
    if (realm != null) {
      reauthenticated = sso.reauthenticate(ssoId, realm, request);
    }
  }
  if (reauthenticated) {
    associate(ssoId, request.getSessionInternal(true));
    if (log.isDebugEnabled()) {
      log.debug(" Reauthenticated cached principal '" +
           request.getUserPrincipal().getName() +
           "' with auth type '" +  request.getAuthType() + "'");
    }
  }
  return reauthenticated;
}

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

Container parent = getContainer();
if (parent != null) {
  Realm realm = parent.getRealm();

相关文章

微信公众号

最新文章

更多