public class EvaluableKeyAlgorithmCredentialCriteria extends Object implements EvaluableCredentialCriteria
Modifier and Type | Field and Description |
---|---|
private String |
keyAlgorithm
Base criteria.
|
private org.slf4j.Logger |
log
Logger.
|
Constructor and Description |
---|
EvaluableKeyAlgorithmCredentialCriteria(KeyAlgorithmCriteria criteria)
Constructor.
|
EvaluableKeyAlgorithmCredentialCriteria(String newKeyAlgorithm)
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 org.slf4j.Logger log
private String keyAlgorithm
public EvaluableKeyAlgorithmCredentialCriteria(KeyAlgorithmCriteria criteria)
criteria
- the criteria which is the basis for evaluationpublic EvaluableKeyAlgorithmCredentialCriteria(String newKeyAlgorithm)
newKeyAlgorithm
- 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–2017. All rights reserved.