public class EvaluableUsageCredentialCriterion extends net.shibboleth.utilities.java.support.logic.AbstractTriStatePredicate<Credential> implements EvaluableCredentialCriterion
Constructor and Description |
---|
EvaluableUsageCredentialCriterion(UsageCriterion criteria)
Constructor.
|
EvaluableUsageCredentialCriterion(UsageType newUsage)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
apply(Credential target) |
boolean |
equals(Object obj) |
int |
hashCode() |
protected boolean |
matchUsage(UsageType credentialUsage,
UsageType criteriaUsage)
Match usage enum type values from credential and criteria.
|
String |
toString() |
public EvaluableUsageCredentialCriterion(@Nonnull UsageCriterion criteria)
criteria
- the criteria which is the basis for evaluation@Nullable public boolean apply(@Nullable Credential target)
apply
in interface com.google.common.base.Predicate<Credential>
protected boolean matchUsage(@Nonnull UsageType credentialUsage, @Nonnull UsageType criteriaUsage)
credentialUsage
- the usage value from the credentialcriteriaUsage
- the usage value from the criteriapublic boolean equals(Object obj)
equals
in interface com.google.common.base.Predicate<Credential>
equals
in class Object
Copyright © 2018. All rights reserved.