Package org.springframework.security.concurrent

Examples of org.springframework.security.concurrent.DelegatingSecurityContextRunnable


        public void complete() {
            asyncContext.complete();
        }

        public void start(Runnable run) {
            asyncContext.start(new DelegatingSecurityContextRunnable(run));
        }
View Full Code Here


        wrappedRequest().getAsyncContext().start(runnable);

        verifyZeroInteractions(authenticationManager, logoutHandler);
        verify(asyncContext).start(runnableCaptor.capture());
        DelegatingSecurityContextRunnable wrappedRunnable = (DelegatingSecurityContextRunnable) runnableCaptor.getValue();
        assertThat(WhiteboxImpl.getInternalState(wrappedRunnable, SecurityContext.class)).isEqualTo(context);
        assertThat(WhiteboxImpl.getInternalState(wrappedRunnable, Runnable.class)).isEqualTo(runnable);
    }
View Full Code Here

        wrappedRequest().startAsync().start(runnable);

        verifyZeroInteractions(authenticationManager, logoutHandler);
        verify(asyncContext).start(runnableCaptor.capture());
        DelegatingSecurityContextRunnable wrappedRunnable = (DelegatingSecurityContextRunnable) runnableCaptor.getValue();
        assertThat(WhiteboxImpl.getInternalState(wrappedRunnable, SecurityContext.class)).isEqualTo(context);
        assertThat(WhiteboxImpl.getInternalState(wrappedRunnable, Runnable.class)).isEqualTo(runnable);
    }
View Full Code Here

        wrappedRequest().startAsync(request, response).start(runnable);

        verifyZeroInteractions(authenticationManager, logoutHandler);
        verify(asyncContext).start(runnableCaptor.capture());
        DelegatingSecurityContextRunnable wrappedRunnable = (DelegatingSecurityContextRunnable) runnableCaptor.getValue();
        assertThat(WhiteboxImpl.getInternalState(wrappedRunnable, SecurityContext.class)).isEqualTo(context);
        assertThat(WhiteboxImpl.getInternalState(wrappedRunnable, Runnable.class)).isEqualTo(runnable);
    }
View Full Code Here

TOP

Related Classes of org.springframework.security.concurrent.DelegatingSecurityContextRunnable

Copyright © 2018 www.massapicom. 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.