Filters in spring security

Source: Internet
Author: User

First, the SS default filter

When the configured HTTP is auto-configured, the default is to pass the SS 11 filters:

1,httpsessioncontextintegrationfilter: Put the SecurityContext in the session into the Securitycontextholder, empty after use;

2,logoutfilter: Processing the logout request, the default request address is:/j_spring_security_logout;

3,authenticationprocessingfilter: Authentication filter, processing from login, default only processing:/j_spring_security_check;

4,? ? Defaultloginpagegeneratingfilter ? ? : Spring comes with the login interface, no skin, generally used for testing, the default address is:/j_spring_security_login, support user name password and rememberme;

5,basicprocessingfilter: Basic certification. functions similar to 3;

6,securitycontextholderawarerequestfiler: Packaging customer requests, provide some additional data for the follow-up procedure;

7,remembermeprocessingfilter: Realize ' remember me ' function;

8,anonymousprocessingfilter: Anonymous login filter, for users who do not log in to assign anonymous permissions (anonymous also requires permission, otherwise you can only see the login page);

9,exceptiontranslationfilter: Handle filtersecurityinterceptor run out of abnormal;

sessionfixationprotectionfilter: Defense session forgery attack filter;

One,filtersecurityinterceptor: User Rights filter, filter out three kinds of situations:

A, the user is not logged in:authenticationcredentialsnotfoundexception "has not been certified abnormal";

b, Login without permission: accessdeniedexception "Access exception denied";

C, Login cut have permission, release.



Filters in spring security

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.