Class RequestedGrantTypesCondition
- java.lang.Object
-
- net.shibboleth.idp.plugin.oidc.op.messaging.context.logic.RequestedGrantTypesCondition
-
- All Implemented Interfaces:
Predicate<ProfileRequestContext>
public class RequestedGrantTypesCondition extends Object implements Predicate<ProfileRequestContext>
Checks whether aTokenRequestwas for one of a set of candidate grant_type values.
-
-
Field Summary
Fields Modifier and Type Field Description private Set<com.nimbusds.oauth2.sdk.GrantType>candidatesCandidate grant types.
-
Constructor Summary
Constructors Constructor Description RequestedGrantTypesCondition()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetGrantTypes(Collection<com.nimbusds.oauth2.sdk.GrantType> types)Set the candidate grant_type values to check for.booleantest(ProfileRequestContext input)
-
-
-
Field Detail
-
candidates
@Nonnull @NonnullElements private Set<com.nimbusds.oauth2.sdk.GrantType> candidates
Candidate grant types.
-
-
Method Detail
-
setGrantTypes
public void setGrantTypes(@Nonnull @NonnullElements Collection<com.nimbusds.oauth2.sdk.GrantType> types)
Set the candidate grant_type values to check for.- Parameters:
types- candidate types
-
test
public boolean test(@Nullable ProfileRequestContext input)- Specified by:
testin interfacePredicate<ProfileRequestContext>
-
-