Example usage for org.springframework.security.web.util.matcher NegatedRequestMatcher NegatedRequestMatcher

List of usage examples for org.springframework.security.web.util.matcher NegatedRequestMatcher NegatedRequestMatcher

Introduction

In this page you can find the example usage for org.springframework.security.web.util.matcher NegatedRequestMatcher NegatedRequestMatcher.

Prototype

public NegatedRequestMatcher(RequestMatcher requestMatcher) 

Source Link

Document

Creates a new instance

Usage

From source file:org.moserp.common.security.TestSecurityConfiguration.java

@Override
protected void configure(HttpSecurity http) throws Exception {
    NegatedRequestMatcher matcher = new NegatedRequestMatcher(new AntPathRequestMatcher("/login", "POST"));
    http.csrf().disable().authorizeRequests().requestMatchers(matcher).authenticated().and().httpBasic();
}