In this line, "Death" is being used primarily as personification. Personification is the granting of human thoughts and feelings to non-human things or ideas. Here, death is given the ability to "brag" and to "wander" and to provide shade. Obviously, the actual state of death can do none of these things.