⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ssosearchservletaccessguard.java

📁 关于Ultraseek的一些用法,刚初学,所以都是比较简单
💻 JAVA
字号:
/* -*- mode:java; indent-tabs-mode:nil; c-basic-offset:2 -*- * *  $RCSFile$ $Revision: 1.4 $ $Date: 2006/01/25 16:56:20 $ * *  Copyright (c) 2004 Autonomy Corp.  All Rights Reserved. *  Permission to use, copy, modify, and distribute this file is hereby *  granted without fee, provided that the above copyright notice appear *  in all copies. */import java.util.*;import javax.servlet.http.*;public class SSOSearchServletAccessGuard  extends PragmaticHTTPAccessGuard{  /**   * The names of the HTTP headers which are forwarded   * from the user's browser to the document server   * as part of the security-checking HTTP proxy.   * <p>   * Example: { "Cookie", "User-Agent" }   */  private final String hdrs[];  public SSOSearchServletAccessGuard(String hdrs[]) {    if (hdrs == null)      throw new IllegalArgumentException("hdrs can not be null");    this.hdrs = hdrs;  }  /**   * Each HTTP Request will update the guard with the current values   * for the HTTP Headers.  The guard checks the "important" headers,   * if there are any changed values the cache of security information   * is flushed, as the current session may have different permissions.   */  public void updateAuthentication(HttpServletRequest httpRequest) {    if (httpRequest == null)       throw new IllegalArgumentException("httpRequest can not be null");    /* Build a Map of the set of HTTP headers important for security.     * When the value of any important HTTP header changes, the     * HttpProxyAccessGuard will flush the cache of security checks. */    Map newHeaders = new HashMap(hdrs.length);    for (int i = 0; i < hdrs.length; i++)      newHeaders.put(hdrs[i], httpRequest.getHeaders(hdrs[i]));    this.setHTTPHeaders(newHeaders);  }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -