Class SOAPErrorPredicate
java.lang.Object
net.shibboleth.idp.profile.logic.AbstractRelyingPartyPredicate
net.shibboleth.idp.saml.saml2.profile.config.logic.SOAPErrorPredicate
- All Implemented Interfaces:
Predicate<ProfileRequestContext>
,Predicate<ProfileRequestContext>
public class SOAPErrorPredicate extends AbstractRelyingPartyPredicate
Predicate that decides whether to handle an error by returning a SOAP fault to a requester
or fail locally.
Most ECP errors that don't result in a SAML Response should be handled with a SOAP fault, but this can be overriden to accomodate special needs of clients, particularly when dealing with login failure.
-
Field Summary
Fields Modifier and Type Field Description private Function<ProfileRequestContext,EventContext>
eventContextLookupStrategy
Strategy function for access toEventContext
to check.private org.slf4j.Logger
log
Class logger. -
Constructor Summary
Constructors Constructor Description SOAPErrorPredicate()
Constructor. -
Method Summary
Modifier and Type Method Description void
setEventContextLookupStrategy(Function<ProfileRequestContext,EventContext> strategy)
Set lookup strategy forEventContext
to check.boolean
test(ProfileRequestContext input)
Methods inherited from class net.shibboleth.idp.profile.logic.AbstractRelyingPartyPredicate
getRelyingPartyContextLookupStrategy, setRelyingPartyContextLookupStrategy
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
eventContextLookupStrategy
Strategy function for access toEventContext
to check.
-
-
Constructor Details
-
SOAPErrorPredicate
public SOAPErrorPredicate()Constructor.
-
-
Method Details
-
setEventContextLookupStrategy
public void setEventContextLookupStrategy(@Nonnull Function<ProfileRequestContext,EventContext> strategy)Set lookup strategy forEventContext
to check.- Parameters:
strategy
- lookup strategy
-
test
-