public class EvaluableUsageCredentialCriterion extends 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() |
isNullInputSatisfies, isUnevaluableSatisfies, setNullInputSatisfies, setUnevaluableSatisfies
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 Predicate<Credential>
protected boolean matchUsage(@Nonnull UsageType credentialUsage, @Nonnull UsageType criteriaUsage)
credentialUsage
- the usage value from the credentialcriteriaUsage
- the usage value from the criteriaCopyright © 1999–2018 Shibboleth Consortium. All rights reserved.