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>eventContextLookupStrategyStrategy function for access toEventContextto check.private org.slf4j.LoggerlogClass logger.
-
Constructor Summary
Constructors Constructor Description SOAPErrorPredicate()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetEventContextLookupStrategy(Function<ProfileRequestContext,EventContext> strategy)Set lookup strategy forEventContextto check.booleantest(ProfileRequestContext input)-
Methods inherited from class net.shibboleth.idp.profile.logic.AbstractRelyingPartyPredicate
getRelyingPartyContextLookupStrategy, setRelyingPartyContextLookupStrategy
-
-
-
-
Field Detail
-
log
@Nonnull private final org.slf4j.Logger log
Class logger.
-
eventContextLookupStrategy
@Nonnull private Function<ProfileRequestContext,EventContext> eventContextLookupStrategy
Strategy function for access toEventContextto check.
-
-
Method Detail
-
setEventContextLookupStrategy
public void setEventContextLookupStrategy(@Nonnull Function<ProfileRequestContext,EventContext> strategy)Set lookup strategy forEventContextto check.- Parameters:
strategy- lookup strategy
-
test
public boolean test(@Nullable ProfileRequestContext input)
-
-