public class EvaluableKeyLengthCredentialCriteria extends Object implements EvaluableCredentialCriteria
| Modifier and Type | Field and Description |
|---|---|
private Integer |
keyLength
Base criteria.
|
private Logger |
log
Logger.
|
| Constructor and Description |
|---|
EvaluableKeyLengthCredentialCriteria(Integer newKeyLength)
Constructor.
|
EvaluableKeyLengthCredentialCriteria(KeyLengthCriteria criteria)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Boolean |
evaluate(Credential target)
Evaluate the target.
|
private Key |
getKey(Credential credential)
Get the key contained within the credential.
|
private final Logger log
private Integer keyLength
public EvaluableKeyLengthCredentialCriteria(KeyLengthCriteria criteria)
criteria - the criteria which is the basis for evaluationpublic EvaluableKeyLengthCredentialCriteria(Integer newKeyLength)
newKeyLength - 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 evaluatedprivate Key getKey(Credential credential)
credential - the credential containing a keyCopyright © 1999-2015. All Rights Reserved.