Package net.shibboleth.idp.ui.csrf.impl
Class DefaultEventRequiresCSRFTokenValidationPredicateTest
java.lang.Object
net.shibboleth.idp.ui.csrf.BaseCSRFTest
net.shibboleth.idp.ui.csrf.impl.DefaultEventRequiresCSRFTokenValidationPredicateTest
Tests the
DefaultEventRequiresCSRFTokenValidationPredicate. See also BaseCSRFTokenPredicateTest
for more detailed testing of the included and excluded view states.-
Nested Class Summary
Nested classes/interfaces inherited from class net.shibboleth.idp.ui.csrf.BaseCSRFTest
BaseCSRFTest.MockView, BaseCSRFTest.MockViewState -
Field Summary
Fields inherited from class net.shibboleth.idp.ui.csrf.BaseCSRFTest
EXCLUDED_VIEWSTATES_FIELDNAME, INCLUDE_ALL_VIEWSTATES_FIELDNAME, INCLUDED_VIEWSTATES_FIELDNAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidTest a random eventId, as all eventIds should be included.voidTest that token verification is not required if state is excluded.voidTest event and view requires CSRF verification.
-
Constructor Details
-
DefaultEventRequiresCSRFTokenValidationPredicateTest
public DefaultEventRequiresCSRFTokenValidationPredicateTest()
-
-
Method Details
-
testEventRequiresCSRFTokenValidation
public void testEventRequiresCSRFTokenValidation()Test event and view requires CSRF verification. -
testARandomEventIdIsEvaluated
public void testARandomEventIdIsEvaluated()Test a random eventId, as all eventIds should be included. -
testEventDoesNotRequiresCSRFTokenValidationExcludedState
public void testEventDoesNotRequiresCSRFTokenValidationExcludedState()Test that token verification is not required if state is excluded.
-