Class TrustedNamesCriterion

java.lang.Object
org.opensaml.security.x509.TrustedNamesCriterion
All Implemented Interfaces:
Criterion

public class TrustedNamesCriterion extends Object implements Criterion
A criterion implementation for conveying a dynamically-generated set of trusted names for PKIX validation purposes. This criterion would typically be evaluated by a PKIXValidationInformationResolver that supports trusted name resolution.
  • Field Details

    • trustedNames

      @Nonnull private Set<String> trustedNames
      The set of trusted names.
  • Constructor Details

    • TrustedNamesCriterion

      public TrustedNamesCriterion(@Nullable Set<String> names)
      Constructor.
      Parameters:
      names - the set of trusted names
  • Method Details

    • getTrustedNames

      @Nonnull @NotLive @Unmodifiable public Set<String> getTrustedNames()
      Get the set of trusted names.
      Returns:
      the set of trusted names
    • setTrustedNames

      public void setTrustedNames(@Nullable Set<String> names)
      Set the set of trusted names.
      Parameters:
      names - the new trusted names
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • processNames

      @Nonnull @NotLive @Unmodifiable private Set<String> processNames(@Nullable Set<String> names)
      Sanitize input names.
      Parameters:
      names - input names
      Returns:
      sanitized set