org.opensaml.xml.security.trust
Class ExplicitKeyTrustEvaluator

java.lang.Object
  extended by org.opensaml.xml.security.trust.ExplicitKeyTrustEvaluator

public class ExplicitKeyTrustEvaluator
extends Object

Auxillary trust evaluator for evaluating an untrusted key or credential against a trusted key or credential. Trust is established if the untrusted key (or public key or symmetric key from the untrusted credential) is matches one of the trusted keys supplied.


Field Summary
private  Logger log
          Class logger.
 
Constructor Summary
ExplicitKeyTrustEvaluator()
           
 
Method Summary
 boolean validate(Credential untrustedCredential, Credential trustedCredential)
          Evaluate trust.
 boolean validate(Credential untrustedCredential, Iterable<Credential> trustedCredentials)
          Evaluate trust.
 boolean validate(Key untrustedKey, Iterable<Key> trustedKeys)
          Evaluate trust.
 boolean validate(Key untrustedKey, Key trustedKey)
          Evaluate trust.
 
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
Class logger.

Constructor Detail

ExplicitKeyTrustEvaluator

public ExplicitKeyTrustEvaluator()
Method Detail

validate

public boolean validate(Key untrustedKey,
                        Key trustedKey)
Evaluate trust.

Parameters:
untrustedKey - the untrusted key to evaluate
trustedKey - basis for trust
Returns:
true if trust can be established, false otherwise

validate

public boolean validate(Key untrustedKey,
                        Iterable<Key> trustedKeys)
Evaluate trust.

Parameters:
untrustedKey - the untrusted key to evaluate
trustedKeys - basis for trust
Returns:
true if trust can be established, false otherwise

validate

public boolean validate(Credential untrustedCredential,
                        Credential trustedCredential)
Evaluate trust.

Parameters:
untrustedCredential - the untrusted credential to evaluate
trustedCredential - basis for trust
Returns:
true if trust can be established, false otherwise

validate

public boolean validate(Credential untrustedCredential,
                        Iterable<Credential> trustedCredentials)
Evaluate trust.

Parameters:
untrustedCredential - the untrusted credential to evaluate
trustedCredentials - basis for trust
Returns:
true if trust can be established, false otherwise


Copyright © 1999-2012. All Rights Reserved.