Class Authorization

    • Constructor Detail

      • Authorization

        public Authorization​(Authorization delegate)
      • Authorization

        public Authorization​(Object delegate)
    • Method Detail

      • hashCode

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

        public boolean match​(AuthorizationContext context)
        this methods verifies whether or not the authorization match the specified context.
        Parameters:
        context - the context.
        Returns:
        true if there's a match.
      • verify

        public boolean verify​(Authorization authorization)
        this method verifies whether or not the authorization implies the specified authorization.
        Note that it doesn't always mean an exact match. For instance, in the case of a WildcardPermissionBasedAuthorization, this method may return true even if the permissions are different
        WildcardPermissionBasedAuthorization.create('*').verify(WildcardPermissionBasedAuthorization.create('anypermission')) would return true
        Parameters:
        authorization - the authorization.
        Returns:
        true if implies the argument.