public class EvaluableUsageCredentialCriteria extends Object implements EvaluableCredentialCriteria
Constructor and Description |
---|
EvaluableUsageCredentialCriteria(UsageCriteria criteria)
Constructor.
|
EvaluableUsageCredentialCriteria(UsageType newUsage)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Boolean |
evaluate(Credential target)
Evaluate the target.
|
protected boolean |
matchUsage(UsageType credentialUsage,
UsageType criteriaUsage)
Match usage enum type values from credential and criteria.
|
public EvaluableUsageCredentialCriteria(UsageCriteria criteria)
criteria
- the criteria which is the basis for evaluationpublic EvaluableUsageCredentialCriteria(UsageType newUsage)
newUsage
- the criteria value which is the basis for evaluationpublic Boolean evaluate(Credential target)
Boolean.TRUE
if the target satisfies the criteriaBoolean.FALSE
if the target does not satisfy criterianull
if the target can not be evaluated against the criteriaevaluate
in interface EvaluableCriteria<Credential>
target
- the object to be evaluatedprotected boolean matchUsage(UsageType credentialUsage, UsageType criteriaUsage)
credentialUsage
- the usage value from the credentialcriteriaUsage
- the usage value from the criteriaCopyright © 2018 JBoss by Red Hat. All rights reserved.