Class AbstractUserInfoResponseTypeCondition
- java.lang.Object
-
- net.shibboleth.idp.plugin.authn.oidc.rp.messaging.context.logic.AbstractUserInfoResponseTypeCondition
-
- All Implemented Interfaces:
Predicate<ProfileRequestContext>
- Direct Known Subclasses:
UserInfoPlainResponseTypeCondition
public abstract class AbstractUserInfoResponseTypeCondition extends Object implements Predicate<ProfileRequestContext>
Abstract predicate for pulling out theUserInfoResponseContext. If either the profile request context or extracted UserInfo response context arenullfalse is returned immediately.
-
-
Field Summary
Fields Modifier and Type Field Description private Function<ProfileRequestContext,UserInfoResponseContext>userInfoResponseContextLookupStrategyStrategy used to look up theUserInfoResponseContext.
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractUserInfoResponseTypeCondition()Constructor.protectedAbstractUserInfoResponseTypeCondition(Function<ProfileRequestContext,UserInfoResponseContext> strategy)Constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract booleandoTest(ProfileRequestContext prc, UserInfoResponseContext context)Implementations should override this method to provide necessary logic.booleantest(ProfileRequestContext prc)
-
-
-
Field Detail
-
userInfoResponseContextLookupStrategy
@Nonnull private final Function<ProfileRequestContext,UserInfoResponseContext> userInfoResponseContextLookupStrategy
Strategy used to look up theUserInfoResponseContext.
-
-
Constructor Detail
-
AbstractUserInfoResponseTypeCondition
protected AbstractUserInfoResponseTypeCondition()
Constructor.
-
AbstractUserInfoResponseTypeCondition
protected AbstractUserInfoResponseTypeCondition(@Nonnull Function<ProfileRequestContext,UserInfoResponseContext> strategy)Constructor.- Parameters:
strategy- the UserInfo response context lookup strategy to use.
-
-
Method Detail
-
test
public boolean test(@Nullable ProfileRequestContext prc)- Specified by:
testin interfacePredicate<ProfileRequestContext>
-
doTest
protected abstract boolean doTest(@Nonnull ProfileRequestContext prc, @Nonnull UserInfoResponseContext context)Implementations should override this method to provide necessary logic.- Parameters:
prc- the profile request contextcontext- the UserInfo response context- Returns:
- the result of this test
-
-