org.opensaml.xml.security.credential.criteria
Class EvaluableKeyAlgorithmCredentialCriteria

java.lang.Object
  extended by org.opensaml.xml.security.credential.criteria.EvaluableKeyAlgorithmCredentialCriteria
All Implemented Interfaces:
EvaluableCredentialCriteria, Criteria, EvaluableCriteria<Credential>

public class EvaluableKeyAlgorithmCredentialCriteria
extends Object
implements EvaluableCredentialCriteria

Instance of evaluable credential criteria for evaluating the credential key algorithm.


Field Summary
private  String keyAlgorithm
          Base criteria.
private  Logger log
          Logger.
 
Constructor Summary
EvaluableKeyAlgorithmCredentialCriteria(KeyAlgorithmCriteria criteria)
          Constructor.
EvaluableKeyAlgorithmCredentialCriteria(String newKeyAlgorithm)
          Constructor.
 
Method Summary
 Boolean evaluate(Credential target)
          Evaluate the target.
private  Key getKey(Credential credential)
          Get the key contained within the credential.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private final Logger log
Logger.


keyAlgorithm

private String keyAlgorithm
Base criteria.

Constructor Detail

EvaluableKeyAlgorithmCredentialCriteria

public EvaluableKeyAlgorithmCredentialCriteria(KeyAlgorithmCriteria criteria)
Constructor.

Parameters:
criteria - the criteria which is the basis for evaluation

EvaluableKeyAlgorithmCredentialCriteria

public EvaluableKeyAlgorithmCredentialCriteria(String newKeyAlgorithm)
Constructor.

Parameters:
newKeyAlgorithm - the criteria value which is the basis for evaluation
Method Detail

evaluate

public Boolean evaluate(Credential target)
Evaluate the target. The result of evaluation is one of the following values:

Specified by:
evaluate in interface EvaluableCriteria<Credential>
Parameters:
target - the object to be evaluated
Returns:
the result of evaluation

getKey

private Key getKey(Credential credential)
Get the key contained within the credential.

Parameters:
credential - the credential containing a key
Returns:
the key from the credential


Copyright © 1999-2013. All Rights Reserved.