|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opensaml.xml.security.credential.criteria.EvaluableUsageCredentialCriteria
public class EvaluableUsageCredentialCriteria
Instance of evaluable credential criteria for evaluating whether a credential contains a particular usage specifier.
Constructor Summary | |
---|---|
EvaluableUsageCredentialCriteria(UsageCriteria criteria)
Constructor. |
|
EvaluableUsageCredentialCriteria(UsageType newUsage)
Constructor. |
Method Summary | |
---|---|
Boolean |
evaluate(Credential target)
Evaluate the target. |
protected boolean |
matchUsage(UsageType credentialUsage,
UsageType criteriaUsage)
Match usage enum type values from credential and criteria. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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 evaluationMethod Detail |
---|
public 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 criteria
evaluate
in interface EvaluableCriteria<Credential>
target
- the object to be evaluated
protected boolean matchUsage(UsageType credentialUsage, UsageType criteriaUsage)
credentialUsage
- the usage value from the credentialcriteriaUsage
- the usage value from the criteria
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |