Package org.opensaml.security.trust.impl
Class ExplicitKeyTrustEvaluator
- java.lang.Object
-
- org.opensaml.security.trust.impl.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 (a public key or symmetric key from the untrusted credential) matches one of the trusted keys supplied.
-
-
Field Summary
Fields Modifier and Type Field Description private org.slf4j.LoggerlogClass logger.
-
Constructor Summary
Constructors Constructor Description ExplicitKeyTrustEvaluator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanvalidate(Key untrustedKey, Iterable<Key> trustedKeys)Evaluate trust.booleanvalidate(Key untrustedKey, Key trustedKey)Evaluate trust.booleanvalidate(Credential untrustedCredential, Iterable<Credential> trustedCredentials)Evaluate trust.booleanvalidate(Credential untrustedCredential, Credential trustedCredential)Evaluate trust.
-
-
-
Method Detail
-
validate
public boolean validate(@Nonnull Key untrustedKey, @Nonnull Key trustedKey)Evaluate trust.- Parameters:
untrustedKey- the untrusted key to evaluatetrustedKey- basis for trust- Returns:
- true if trust can be established, false otherwise
-
validate
public boolean validate(@Nonnull Key untrustedKey, @Nonnull Iterable<Key> trustedKeys)Evaluate trust.- Parameters:
untrustedKey- the untrusted key to evaluatetrustedKeys- basis for trust- Returns:
- true if trust can be established, false otherwise
-
validate
public boolean validate(@Nonnull Credential untrustedCredential, @Nonnull Credential trustedCredential)Evaluate trust.- Parameters:
untrustedCredential- the untrusted credential to evaluatetrustedCredential- basis for trust- Returns:
- true if trust can be established, false otherwise
-
validate
public boolean validate(@Nonnull Credential untrustedCredential, @Nonnull Iterable<Credential> trustedCredentials)Evaluate trust.- Parameters:
untrustedCredential- the untrusted credential to evaluatetrustedCredentials- basis for trust- Returns:
- true if trust can be established, false otherwise
-
-