Class EvaluableEntityRoleDescriptorCriterion

  • All Implemented Interfaces:
    Predicate<org.opensaml.saml.saml2.metadata.RoleDescriptor>, net.shibboleth.utilities.java.support.resolver.Criterion, org.opensaml.saml.metadata.criteria.role.EvaluableRoleDescriptorCriterion

    public class EvaluableEntityRoleDescriptorCriterion
    extends Object
    implements org.opensaml.saml.metadata.criteria.role.EvaluableRoleDescriptorCriterion
    Implementation of EvaluableRoleDescriptorCriterion which evaluates that a role descriptor's type or element name (QName is the specified role.
    • Field Detail

      • role

        @Nonnull
        @NotEmpty
        private QName role
        The entity role QName being evaluated.
    • Constructor Detail

      • EvaluableEntityRoleDescriptorCriterion

        public EvaluableEntityRoleDescriptorCriterion​(@Nonnull
                                                      org.opensaml.saml.criterion.EntityRoleCriterion criterion)
        Constructor.
        Parameters:
        criterion - the entity role criterion
      • EvaluableEntityRoleDescriptorCriterion

        public EvaluableEntityRoleDescriptorCriterion​(@Nonnull
                                                      QName entityRole)
        Constructor.
        Parameters:
        entityRole - the entity role QName
    • Method Detail

      • test

        public boolean test​(org.opensaml.saml.saml2.metadata.RoleDescriptor input)
        Specified by:
        test in interface Predicate<org.opensaml.saml.saml2.metadata.RoleDescriptor>
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object