public class EvaluableKeyAlgorithmCredentialCriterion extends net.shibboleth.utilities.java.support.logic.AbstractTriStatePredicate<Credential> implements EvaluableCredentialCriterion
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
keyAlgorithm
Base criteria.
|
private org.slf4j.Logger |
log
Logger.
|
| Constructor and Description |
|---|
EvaluableKeyAlgorithmCredentialCriterion(KeyAlgorithmCriterion criteria)
Constructor.
|
EvaluableKeyAlgorithmCredentialCriterion(java.lang.String newKeyAlgorithm)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
apply(Credential target) |
boolean |
equals(java.lang.Object obj) |
private java.security.Key |
getKey(Credential credential)
Get the key contained within the credential.
|
int |
hashCode() |
java.lang.String |
toString() |
private final org.slf4j.Logger log
private final java.lang.String keyAlgorithm
public EvaluableKeyAlgorithmCredentialCriterion(@Nonnull
KeyAlgorithmCriterion criteria)
criteria - the criteria which is the basis for evaluationpublic EvaluableKeyAlgorithmCredentialCriterion(@Nonnull
java.lang.String newKeyAlgorithm)
newKeyAlgorithm - the criteria value which is the basis for evaluation@Nullable
public boolean apply(@Nullable
Credential target)
apply in interface com.google.common.base.Predicate<Credential>@Nullable
private java.security.Key getKey(@Nonnull
Credential credential)
credential - the credential containing a keypublic java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in interface com.google.common.base.Predicate<Credential>equals in class java.lang.Object