Examples of NullSecurityContextRepository


Examples of org.springframework.security.web.context.NullSecurityContextRepository

        SecurityContextRepository securityContextRepository = http.getSharedObject(SecurityContextRepository.class);
        boolean stateless = isStateless();

        if(securityContextRepository == null) {
            if(stateless) {
                http.setSharedObject(SecurityContextRepository.class, new NullSecurityContextRepository());
            } else {
                HttpSessionSecurityContextRepository httpSecurityRepository = new HttpSessionSecurityContextRepository();
                httpSecurityRepository.setDisableUrlRewriting(!enableSessionUrlRewriting);
                httpSecurityRepository.setAllowSessionCreation(isAllowSessionCreation());
                AuthenticationTrustResolver trustResolver = http.getSharedObject(AuthenticationTrustResolver.class);
View Full Code Here

Examples of org.springframework.security.web.context.NullSecurityContextRepository

    }).csrfTokenRepository(str);

    http.sessionManagement().enableSessionUrlRewriting(false);
    http.sessionManagement().sessionCreationPolicy(SessionCreationPolicy.NEVER);
    http.sessionManagement().sessionAuthenticationStrategy(new NullAuthenticatedSessionStrategy());
    http.securityContext().securityContextRepository(new NullSecurityContextRepository());
    http.exceptionHandling().authenticationEntryPoint(new SimpleAuthenticationEntryPoint(confMap.get("security.signin")));
    http.exceptionHandling().accessDeniedHandler(new SimpleAccessDeniedHandler(confMap.get("security.access_denied")));
    http.requestCache().requestCache(new SimpleRequestCache());

    SimpleAuthenticationSuccessHandler successHandler = new SimpleAuthenticationSuccessHandler();
View Full Code Here

Examples of org.springframework.security.web.context.NullSecurityContextRepository

  @Override
  public void init(HttpSecurity http) throws Exception {
    registerDefaultAuthenticationEntryPoint(http);
    http.userDetailsService(new ClientDetailsUserDetailsService(clientDetailsService())).securityContext()
        .securityContextRepository(new NullSecurityContextRepository()).and().csrf().disable().httpBasic()
        .realmName(realm);
  }
View Full Code Here

Examples of org.springframework.security.web.context.NullSecurityContextRepository

    }).csrfTokenRepository(str);

    http.sessionManagement().enableSessionUrlRewriting(false);
    http.sessionManagement().sessionCreationPolicy(SessionCreationPolicy.NEVER);
    http.sessionManagement().sessionAuthenticationStrategy(new NullAuthenticatedSessionStrategy());
    http.securityContext().securityContextRepository(new NullSecurityContextRepository());
    http.exceptionHandling().authenticationEntryPoint(new SimpleEntryPoint(confMap.get("security.signin")));
    http.exceptionHandling().accessDeniedHandler(new SimpleAccessDeniedHandler(confMap.get("security.access_denied")));
    http.requestCache().requestCache(new SimpleRequestCache());

    SimpleAuthenticationSuccessHandler successHandler = new SimpleAuthenticationSuccessHandler();
View Full Code Here

Examples of org.springframework.security.web.context.NullSecurityContextRepository

    }).csrfTokenRepository(str);

    http.sessionManagement().enableSessionUrlRewriting(false);
    http.sessionManagement().sessionCreationPolicy(SessionCreationPolicy.NEVER);
    http.sessionManagement().sessionAuthenticationStrategy(new NullAuthenticatedSessionStrategy());
    http.securityContext().securityContextRepository(new NullSecurityContextRepository());
    http.exceptionHandling().authenticationEntryPoint(new SimpleEntryPoint(confMap.get("security.signin")));
    http.exceptionHandling().accessDeniedHandler(new SimpleAccessDeniedHandler(confMap.get("security.access_denied")));
    http.requestCache().requestCache(new SimpleRequestCache());

    SimpleAuthenticationSuccessHandler successHandler = new SimpleAuthenticationSuccessHandler();
View Full Code Here

Examples of org.springframework.security.web.context.NullSecurityContextRepository

        SecurityContextRepository securityContextRepository = builder.getSharedObject(SecurityContextRepository.class);
        boolean stateless = isStateless();

        if(securityContextRepository == null) {
            if(stateless) {
                builder.setSharedObject(SecurityContextRepository.class, new NullSecurityContextRepository());
            } else {
                HttpSessionSecurityContextRepository httpSecurityRepository = new HttpSessionSecurityContextRepository();
                httpSecurityRepository.setDisableUrlRewriting(!enableSessionUrlRewriting);
                httpSecurityRepository.setAllowSessionCreation(isAllowSessionCreation());
                builder.setSharedObject(SecurityContextRepository.class, httpSecurityRepository);
View Full Code Here

Examples of org.springframework.security.web.context.NullSecurityContextRepository

    }).csrfTokenRepository(str);

    http.sessionManagement().enableSessionUrlRewriting(false);
    http.sessionManagement().sessionCreationPolicy(SessionCreationPolicy.NEVER);
    http.sessionManagement().sessionAuthenticationStrategy(new NullAuthenticatedSessionStrategy());
    http.securityContext().securityContextRepository(new NullSecurityContextRepository());
    http.exceptionHandling().authenticationEntryPoint(new SimpleEntryPoint(confMap.get("security.signin")));
    http.exceptionHandling().accessDeniedHandler(new SimpleAccessDeniedHandler(confMap.get("security.access_denied")));
    http.requestCache().requestCache(new SimpleRequestCache());

    SimpleAuthenticationSuccessHandler successHandler = new SimpleAuthenticationSuccessHandler();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.