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

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

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

AuthenticatorBase.authenticate介绍

[英]Authenticate the user making this request, based on the specified login configuration. Return true if any specified constraint has been satisfied, or false if we have created a response challenge already.
[中]根据指定的登录配置对发出此请求的用户进行身份验证。如果已满足任何指定的约束,则返回true,如果已创建响应质询,则返回false

代码示例

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

/**
 * API login.
 *
 * @param request Request we are processing
 * @param response Response we are creating
 * @param config    Login configuration describing how authentication
 *              should be performed
 *
 * @exception IOException if an input/output error occurs
 */
public boolean authenticate(Request request, HttpServletResponse response)
  throws IOException, ServletException {
  return authenticate(request, response, this.context.getLoginConfig());
}

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

/**
 * API login.
 *
 * @param request Request we are processing
 * @param response Response we are creating
 * @param config    Login configuration describing how authentication
 *              should be performed
 *
 * @exception IOException if an input/output error occurs
 */
public boolean authenticate(Request request, HttpServletResponse response)
  throws IOException, ServletException {
  return authenticate(request, response, this.context.getLoginConfig());
}

代码示例来源:origin: org.glassfish.main.web/web-core

/**
 * Authenticates the user making this request, based on the specified
 * login configuration.  Return <code>true</code> if any specified
 * requirements have been satisfied, or <code>false</code> if we have
 * created a response challenge already.
 *
 * @param request Request we are processing
 * @param response Response we are creating
 * @param context The Context to which client of this class is attached.
 * @param authenticator the current authenticator.
 * @exception IOException if an input/output error occurs
 */
public boolean invokeAuthenticateDelegate(HttpRequest request,
                     HttpResponse response,
                     Context context,
                     Authenticator authenticator,
                     boolean calledFromAuthenticate)
   throws IOException {
  LoginConfig config = context.getLoginConfig();
  return ((AuthenticatorBase) authenticator).authenticate(
          request, response, config);
}

代码示例来源:origin: org.glassfish.main.web/web-core

private int processSecurityCheck(HttpRequest hrequest,
         HttpResponse hresponse,
         LoginConfig config) 
throws IOException {
  // Special handling for form-based logins to deal with the case
  // where the login form (and therefore the "j_security_check" URI
  // to which it submits) might be outside the secured area
  String contextPath = this.context.getPath();
  String requestURI = hrequest.getDecodedRequestURI();
  if (requestURI.startsWith(contextPath) &&
      requestURI.endsWith(Constants.FORM_ACTION)) {
    if (!authenticate(hrequest, hresponse, config)) {
      if (log.isLoggable(Level.FINE)) {
        String msg = " Failed authenticate() test ??" + requestURI;
        log.log(Level.FINE, neutralizeForLog(msg));
      }
      return END_PIPELINE;
    }
  }
return INVOKE_NEXT;
}

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

/**
 * Authenticate the user making this request, based on the login
 * configuration of the {@link Context} with which this Authenticator is
 * associated.  Return <code>true</code> if any specified constraint has
 * been satisfied, or <code>false</code> if we have created a response
 * challenge already.
 *
 * @param request Request we are processing
 * @param response Response we are populating
 *
 * @exception IOException if an input/output error occurs
 */
@Override
public boolean authenticate(Request request, HttpServletResponse response)
    throws IOException {
  if (context == null || context.getLoginConfig() == null) {
    return true;
  }
  return authenticate(request, response, context.getLoginConfig());
}

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

/**
 * Authenticate the user making this request, based on the login
 * configuration of the {@link Context} with which this Authenticator is
 * associated.  Return <code>true</code> if any specified constraint has
 * been satisfied, or <code>false</code> if we have created a response
 * challenge already.
 *
 * @param request Request we are processing
 * @param response Response we are populating
 *
 * @exception IOException if an input/output error occurs
 */
@Override
public boolean authenticate(Request request, HttpServletResponse response)
    throws IOException {
  if (context == null || context.getLoginConfig() == null) {
    return true;
  }
  return authenticate(request, response, context.getLoginConfig());
}

代码示例来源:origin: org.glassfish.main.web/web-core

return authBase.authenticate(this, (HttpResponse) getResponse(),
      context.getLoginConfig());
} catch (Exception ex) {

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

result = ((AuthenticatorBase) authenticator).authenticate(
    request, response, config);

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

if (requestURI.startsWith(contextPath) &&
  requestURI.endsWith(Constants.FORM_ACTION)) {
  if (!authenticate(request, response, config)) {
    if (log.isDebugEnabled())
      log.debug(" Failed authenticate() test ??" + requestURI );
    log.debug(" Calling authenticate()");
  if (!authenticate(request, response, config)) {
    if (log.isDebugEnabled()) {
      log.debug(" Failed authenticate() test");

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

if (requestURI.startsWith(contextPath) &&
  requestURI.endsWith(Constants.FORM_ACTION)) {
  if (!authenticate(request, response, config)) {
    if (log.isDebugEnabled())
      log.debug(" Failed authenticate() test ??" + requestURI );
    log.debug(" Calling authenticate()");
  if (!authenticate(request, response, config)) {
    if (log.isDebugEnabled()) {
      log.debug(" Failed authenticate() test");

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

if (requestURI.startsWith(contextPath) &&
  requestURI.endsWith(Constants.FORM_ACTION)) {
  if (!authenticate(request, response)) {
    if (log.isDebugEnabled()) {
      log.debug(" Failed authenticate() test ??" + requestURI );
        decodedRequestURI.equals(
            savedRequest.getDecodedRequestURI())) {
      if (!authenticate(request, response)) {
        if (log.isDebugEnabled()) {
          log.debug(" Failed authenticate() test");
    log.debug(" Calling authenticate()");
  if (!authenticate(request, response)) {
    if (log.isDebugEnabled()) {
      log.debug(" Failed authenticate() test");

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

if (requestURI.startsWith(contextPath) &&
  requestURI.endsWith(Constants.FORM_ACTION)) {
  if (!authenticate(request, response, config)) {
    if (CatalinaLogger.AUTH_LOGGER.isDebugEnabled())
      CatalinaLogger.AUTH_LOGGER.debug(" Failed authenticate() test ??" + requestURI );
    CatalinaLogger.AUTH_LOGGER.debug(" Calling authenticate()");
  if (!authenticate(request, response, config)) {
    if (CatalinaLogger.AUTH_LOGGER.isDebugEnabled()) {
      CatalinaLogger.AUTH_LOGGER.debug(" Failed authenticate() test");

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

if (requestURI.startsWith(contextPath) &&
  requestURI.endsWith(Constants.FORM_ACTION)) {
  if (!authenticate(request, response, config)) {
    if (log.isDebugEnabled())
      log.debug(" Failed authenticate() test ??" + requestURI );
    log.debug(" Calling authenticate()");
  if (!authenticate(request, response, config)) {
    if (log.isDebugEnabled()) {
      log.debug(" Failed authenticate() test");

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

if (requestURI.startsWith(contextPath) &&
  requestURI.endsWith(Constants.FORM_ACTION)) {
  if (!authenticate(request, response, config)) {
    if (log.isDebugEnabled())
      log.debug(" Failed authenticate() test ??" + requestURI );
    log.debug(" Calling authenticate()");
  if (!authenticate(request, response, config)) {
    if (log.isDebugEnabled()) {
      log.debug(" Failed authenticate() test");

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

if (requestURI.startsWith(contextPath) &&
  requestURI.endsWith(Constants.FORM_ACTION)) {
  if (!authenticate(request, response, config)) {
    if (log.isDebugEnabled())
      log.debug(" Failed authenticate() test ??" + requestURI );
    log.debug(" Calling authenticate()");
  if (!authenticate(request, response, config)) {
    if (log.isDebugEnabled()) {
      log.debug(" Failed authenticate() test");

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

if (requestURI.startsWith(contextPath) &&
  requestURI.endsWith(Constants.FORM_ACTION)) {
  if (!authenticate(request, response, config)) {
    if (log.isDebugEnabled())
      log.debug(" Failed authenticate() test ??" + requestURI );
    log.debug(" Calling authenticate()");
  if (!authenticate(request, response, config)) {
    if (log.isDebugEnabled()) {
      log.debug(" Failed authenticate() test");

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

if (requestURI.startsWith(contextPath) &&
  requestURI.endsWith(Constants.FORM_ACTION)) {
  if (!authenticate(request, response, config)) {
    if (log.isDebugEnabled())
      log.debug(" Failed authenticate() test ??" + requestURI );
    log.debug(" Calling authenticate()");
  if (!authenticate(request, response, config)) {
    if (log.isDebugEnabled()) {
      log.debug(" Failed authenticate() test");

相关文章

微信公众号

最新文章

更多