Class Constraint

    • Constructor Detail

      • Constraint

        public Constraint()
        Deprecated.
        Constructor.
      • Constraint

        public Constraint​(String name,
                          String role)
        Deprecated.
        Convenience Constructor.
        Parameters:
        name - the name
        role - the role
    • Method Detail

      • validateMethod

        public static boolean validateMethod​(String method)
        Deprecated.
      • setName

        public void setName​(String name)
        Deprecated.
        Parameters:
        name - the name
      • getName

        public String getName()
        Deprecated.
      • setRoles

        public void setRoles​(String[] roles)
        Deprecated.
      • isAnyRole

        public boolean isAnyRole()
        Deprecated.
        Returns:
        True if any user role is permitted.
      • isAnyAuth

        public boolean isAnyAuth()
        Deprecated.
        Servlet Spec 3.1, pg 140
        Returns:
        True if any authenticated user is permitted (ie a role "**" was specified in the constraint).
      • getRoles

        public String[] getRoles()
        Deprecated.
        Returns:
        List of roles for this constraint.
      • hasRole

        public boolean hasRole​(String role)
        Deprecated.
        Parameters:
        role - the role
        Returns:
        True if the constraint contains the role.
      • setAuthenticate

        public void setAuthenticate​(boolean authenticate)
        Deprecated.
        Parameters:
        authenticate - True if users must be authenticated
      • getAuthenticate

        public boolean getAuthenticate()
        Deprecated.
        Returns:
        True if the constraint requires request authentication
      • isForbidden

        public boolean isForbidden()
        Deprecated.
        Returns:
        True if authentication required but no roles set
      • setDataConstraint

        public void setDataConstraint​(int c)
        Deprecated.
        Parameters:
        c - Data constrain indicator: 0=DC+NONE, 1=DC_INTEGRAL & 2=DC_CONFIDENTIAL
      • getDataConstraint

        public int getDataConstraint()
        Deprecated.
        Returns:
        Data constrain indicator: 0=DC+NONE, 1=DC_INTEGRAL & 2=DC_CONFIDENTIAL
      • hasDataConstraint

        public boolean hasDataConstraint()
        Deprecated.
        Returns:
        True if a data constraint has been set.