Class DefaultAuthorizationRequestTypeValidationStrategy
- java.lang.Object
-
- net.shibboleth.idp.plugin.oidc.op.profile.logic.DefaultAuthorizationRequestTypeValidationStrategy
-
- All Implemented Interfaces:
Predicate<ProfileRequestContext>
public class DefaultAuthorizationRequestTypeValidationStrategy extends Object implements Predicate<ProfileRequestContext>
Validation strategy for the inbound message. This predicate returns true if the message is an instance ofAuthorizationRequestand the configurable authentication request requirement predicate returns false. If the configurable predicate returns true, then the message is required to be an instance ofAuthenticationRequest.
-
-
Field Summary
Fields Modifier and Type Field Description private Predicate<ProfileRequestContext>requireAuthenticationRequestPredicate used to indicate if the incoming message is required to be an OIDC authentication request.
-
Constructor Summary
Constructors Constructor Description DefaultAuthorizationRequestTypeValidationStrategy()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetRequireAuthenticationRequestPredicate(Predicate<ProfileRequestContext> predicate)Set the predicate used to indicate if the incoming message is required to be an OIDC authentication request.booleantest(ProfileRequestContext input)
-
-
-
Field Detail
-
requireAuthenticationRequest
@Nonnull private Predicate<ProfileRequestContext> requireAuthenticationRequest
Predicate used to indicate if the incoming message is required to be an OIDC authentication request.
-
-
Method Detail
-
setRequireAuthenticationRequestPredicate
public void setRequireAuthenticationRequestPredicate(@Nonnull Predicate<ProfileRequestContext> predicate)Set the predicate used to indicate if the incoming message is required to be an OIDC authentication request.- Parameters:
predicate- What to set.
-
test
public boolean test(@Nonnull ProfileRequestContext input)- Specified by:
testin interfacePredicate<ProfileRequestContext>
-
-