Class ClaimExistsActivationCondition
java.lang.Object
net.shibboleth.oidc.security.jwt.claims.impl.ClaimExistsActivationCondition
- All Implemented Interfaces:
BiPredicate<ProfileRequestContext,JWTClaimsSet>
@ThreadSafe
public class ClaimExistsActivationCondition
extends Object
implements BiPredicate<ProfileRequestContext,JWTClaimsSet>
Activation condition to check a claim exists in the claims set.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe name of the claim to check exists in the claims set. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleantest(ProfileRequestContext context, JWTClaimsSet claims) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiPredicate
and, negate, or
-
Field Details
-
claimToCheck
The name of the claim to check exists in the claims set.
-
-
Constructor Details
-
ClaimExistsActivationCondition
public ClaimExistsActivationCondition(@Nonnull @NotEmpty @ParameterName(name="claimToCheck") String claimName) Constructor.- Parameters:
claimName- the name of the claim to check exists in the claims set.
-
-
Method Details
-
test
- Specified by:
testin interfaceBiPredicate<ProfileRequestContext,JWTClaimsSet>
-