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(Object obj) |
int |
hashCode() |
protected boolean |
matchUsage(UsageType credentialUsage,
UsageType criteriaUsage)
Match usage enum type values from credential and criteria.
|
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 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 © 1999–2020 Shibboleth Consortium. All rights reserved.