Class EvaluableProtocolRoleDescriptorCriterion

  • 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 EvaluableProtocolRoleDescriptorCriterion
    extends Object
    implements org.opensaml.saml.metadata.criteria.role.EvaluableRoleDescriptorCriterion
    Implementation of EvaluableRoleDescriptorCriterion which evaluates that a role descriptor supports a certain protocol.
    • Field Detail

      • protocol

        @Nonnull
        @NotEmpty
        private String protocol
        The SAML URI protocol being evaluated.
    • Constructor Detail

      • EvaluableProtocolRoleDescriptorCriterion

        public EvaluableProtocolRoleDescriptorCriterion​(@Nonnull
                                                        org.opensaml.saml.criterion.ProtocolCriterion criterion)
        Constructor.
        Parameters:
        criterion - the protocol criterion
      • EvaluableProtocolRoleDescriptorCriterion

        public EvaluableProtocolRoleDescriptorCriterion​(@Nonnull
                                                        String roleProtocol)
        Constructor.
        Parameters:
        roleProtocol - the protocol
    • 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