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

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

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

AuthenticatorBase.associate介绍

[英]Associate the specified single sign on identifier with the specified Session.
[中]将指定的单一登录标识符与指定的会话相关联。

代码示例

代码示例来源: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

associate(ssoId, request.getSessionInternal(true));

代码示例来源: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.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: 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

associate(ssoId, request.getSessionInternal(true));

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

associate(ssoId, request.getSessionInternal(true));

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

associate(ssoId, request.getSessionInternal(true));

相关文章

微信公众号

最新文章

更多