Interface AuthorizationConstraint

  • All Known Subinterfaces:
    EndUserAuthorizationConstraint

    public interface AuthorizationConstraint
    Encapsulates the authorization constraints that restrict access to a given resource.
    Author:
    cdivilly
  • <section role="region">
    • Method Detail

      • name

        java.lang.String name()
        The unique name assigned to this constraint. It is an error for more than one AuthorizationConstraint to share the same name.
        Returns:
        The name
      • authorized

        boolean authorized​(java.security.Principal principal)
        Determines if a Principal is authorized to access this privilege.
        Parameters:
        principal - The Principal to test for authorization
        Returns:
        true if the principal is authorized to access the resource, false otherwise
      • equals

        boolean equals​(java.lang.Object obj)
        All AuthorizationConstraint implementations MUST implement the Object.equals(Object) method correctly. Typical implementations of this method should check if the specified object is an instance of AuthorizationConstraint. If it is then delegate to equals(AuthorizationConstraint). If not then return false.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj - The object to test for equality.
        Returns:
        true if this instance and the specified instance are equal.
        See Also:
        equals(AuthorizationConstraint)
      • hashCode

        int hashCode()
        All AuthorizationConstraint implementations MUST implement the Object.hashCode() method correctly.
        Overrides:
        hashCode in class java.lang.Object
        See Also:
        Object.hashCode()
    </section>