public class EvaluableUsageCredentialCriterion extends net.shibboleth.utilities.java.support.logic.AbstractTriStatePredicate<Credential> implements EvaluableCredentialCriterion
| Modifier and Type | Field and Description |
|---|---|
private org.slf4j.Logger |
log
Logger.
|
private UsageType |
usage
Base criteria.
|
| Constructor and Description |
|---|
EvaluableUsageCredentialCriterion(UsageCriterion criteria)
Constructor.
|
EvaluableUsageCredentialCriterion(UsageType newUsage)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
apply(Credential target) |
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
protected boolean |
matchUsage(UsageType credentialUsage,
UsageType criteriaUsage)
Match usage enum type values from credential and criteria.
|
java.lang.String |
toString() |
private final org.slf4j.Logger log
private final UsageType usage
public EvaluableUsageCredentialCriterion(@Nonnull
UsageCriterion criteria)
criteria - the criteria which is the basis for evaluationpublic EvaluableUsageCredentialCriterion(@Nonnull
UsageType newUsage)
newUsage - the criteria value 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 java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in interface com.google.common.base.Predicate<Credential>equals in class java.lang.Object