<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    隨筆 - 6  文章 - 129  trackbacks - 0
    <2025年5月>
    27282930123
    45678910
    11121314151617
    18192021222324
    25262728293031
    1234567

    常用鏈接

    留言簿(14)

    隨筆檔案(6)

    文章分類(467)

    文章檔案(423)

    相冊(cè)

    收藏夾(18)

    JAVA

    搜索

    •  

    積分與排名

    • 積分 - 825709
    • 排名 - 49

    最新評(píng)論

    閱讀排行榜

    評(píng)論排行榜

    <?xml version="1.0" encoding="UTF-8"?>

    <!DOCTYPE securityfilter-config PUBLIC
        "-//SecurityFilter.org//DTD Security Filter Configuration 2.0//EN"
        "http://www.securityfilter.org/dtd/securityfilter-config_2_0.dtd">

    <securityfilter-config>

       <security-constraint>
          <web-resource-collection>
             <web-resource-name>Secure Page</web-resource-name>
             <url-pattern>/admin/*.action</url-pattern>
          </web-resource-collection>
          <auth-constraint>
             <role-name>ADMIN</role-name>
          </auth-constraint>
       </security-constraint>

       <login-config>
          <auth-method>FORM</auth-method>
          <form-login-config>
             <form-login-page>/login_input.action</form-login-page>
             <form-error-page>/loginError.jsp</form-error-page>
             <form-default-page>/index.jsp</form-default-page>
             <!-- logout page definition is important for persistent logins -->
             <form-logout-page>/logout.jsp</form-logout-page>
             <!-- remember-me config -->
             <remember-me className="org.securityfilter.authenticator.persistent.DefaultPersistentLoginManager">
                <!-- optional settings for default persistent login manager -->
                <remember-me-param name="cookieLife" value="15"/>
                <remember-me-param name="protection" value="all"/>
                <remember-me-param name="useIP" value="true"/>
                <remember-me-param name="encryptionAlgorithm" value="DES"/>
                <remember-me-param name="encryptionMode" value="ECB"/>
                <remember-me-param name="encryptionPadding" value="PKCS5Padding"/>
                <!-- encryption keys; customize for each application -->
                <!-- NOTE: these kys must be speciied AFTER other encryption settings -->
                <remember-me-param name="validationKey" value="347382902489402489754895734890347"/>
                <remember-me-param name="encryptionKey" value="347892347028490237487846240673842"/>
             </remember-me>
          </form-login-config>
       </login-config>

       <realm className="gecs.mes.security.SecurityRealm">

       </realm>

    </securityfilter-config>

    參數(shù)解析
    cookieLife (optional) specifies the number of days that you wish to keep the login cookie.  The default if not specified is 15 days)
    protection (optional) specifies the type of protection you want for the persisted cookie.  Valid values are: all, validation, encryption, none.  The default is not specified is all.

    validationkey (required if protection is all or validation) specifies a key that is combined with the actual cookie data and then used to generate a MD5 hash value.  This hash value is stored with the cookie and then is later used to determine if the cookie has been tampered with.

    useIP (optional) (valid only when protection is all or validation) specifies if the clients IP address
    is to be used when calculating the validation hash.  Provides extra protection against someone moving a cookie from one machine to another.

    encryptionAlgorithm (optional) (valid only when protection is all or encryption)  specifies the encryption algorithm to use when encrypting the cookie values.  The default if not specified is DES.

    encryptionMode (optional) (valid only when protection is all or encryption)  specifies the encryption mode to use when encrypting the cookie values.  The default if not specified is ECB.

    encryptionPadding (optional) (valid only when protection is all or encryption)  specifies the encryption padding to use when encrypting the cookie values.  The default if not specified is PKCS5Padding.

    encryptionkey (required if protection is all or encryption) specifies a key that is used to encrypt and decrypt cookie values.  Should NOT appear before the other encryption* parameters (if specified) in the securityfilter-config.xml file.

    IMPORTANT!

    A couple of points about this encryption implementation.

    - This implementation makes use of the Sun Java Cryptography Extension
    (JCE).  The JCE comes as a part of the standard download for Java 1.4  BUT, it?s an optional (separate) download for Java 1.3 and earlier.  If a user is using Java 1.3 or earlier and they want to use the encryption feature then they must download and install (per Sun?s instructions) the Java Cryptography Extension from the Sun website (http://java.sun.com/products/archive/jce/1.2/)

    - The default "provider" that comes with JCE is the SunJCE provider.  The SunJCE provider supports the DES, Triple DES, and the Blowfish encryption algorithms.  I have tested this implementation ONLY with the DES algorithm.  I suspect that there may need to be some coding tweaks to get the this implementation to work with other algorithms but I have not yet tried them.
    - Other, third-party, JCE providers can be used instead of the SunJCE provider.  See Sun?s website for a complete list of known third-party providers and for instructions on how to change the JCE default provider.

    - The standard JCE provides for "strong" encryption.  "Unlimited" encryption is available as a separate download from Sun?s site.  There are some export restrictions on the "unlimited" encryption so if a user chooses to use it they need to understand and adhere to those restrictions.  See Sun?s website for complete details.



    posted on 2009-12-24 16:09 Ke 閱讀(515) 評(píng)論(0)  編輯  收藏 所屬分類: securityfilter

    只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


    網(wǎng)站導(dǎo)航:
     
    主站蜘蛛池模板: 亚洲人成色777777在线观看| 久久综合九色综合97免费下载| 亚洲综合激情九月婷婷| 亚洲国产精品综合久久一线| 福利免费观看午夜体检区| 久久青草精品38国产免费| fc2成年免费共享视频18| 亚洲人av高清无码| 亚洲欧洲日本天天堂在线观看| 国产亚洲午夜高清国产拍精品| 国产伦精品一区二区三区免费下载| 亚洲香蕉免费有线视频| 国产啪精品视频网站免费尤物 | 成人免费ā片在线观看| 亚洲欧美一区二区三区日产| 久久久久久亚洲AV无码专区| 国产亚洲高清不卡在线观看| 亚洲av无码成人精品区在线播放| 午夜爱爱免费视频| 无码中文在线二区免费| 99精品一区二区免费视频| 爽爽爽爽爽爽爽成人免费观看| 一区二区三区在线免费| 免费无毒a网站在线观看| 国产成人人综合亚洲欧美丁香花| 日韩亚洲产在线观看| 久久久久se色偷偷亚洲精品av| 中文字幕亚洲精品资源网| 亚洲AV日韩AV永久无码免下载| 亚洲深深色噜噜狠狠爱网站| 中文字幕亚洲一区二区va在线| 深夜国产福利99亚洲视频| 四虎永久免费影院在线| 国产精品国产午夜免费福利看 | 国产精品亚洲精品青青青| 亚洲精品福利网站| 亚洲精品**中文毛片| 亚洲成人免费网址| 亚洲一区二区三区亚瑟| 自拍偷区亚洲国内自拍| 亚洲狠狠婷婷综合久久|