Package org.opensaml.security.trust.impl
Class ExplicitKeyTrustEvaluator
java.lang.Object
org.opensaml.security.trust.impl.ExplicitKeyTrustEvaluator
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanEvaluate trust.booleanEvaluate trust.booleanvalidate(Credential untrustedCredential, Iterable<Credential> trustedCredentials) Evaluate trust.booleanvalidate(Credential untrustedCredential, Credential trustedCredential) Evaluate trust.
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger.
-
-
Constructor Details
-
ExplicitKeyTrustEvaluator
public ExplicitKeyTrustEvaluator()
-
-
Method Details
-
validate
Evaluate trust.- Parameters:
untrustedKey- the untrusted key to evaluatetrustedKey- basis for trust- Returns:
- true if trust can be established, false otherwise
-
validate
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
-