What you observe is the general phenomenon that in relativistic theories time translation is replaced by "affine-parameter-translation" or "wordline translation symmetry" and hence the corresponding Hamiltonian becomes a constraint, the constraint that states must be invariant under this symmetry.
Yes, this works for the relativistic spinning particle and the Dirac equation, too. Here the translation symmetry on the worldline is refined to translation supersymmetry (for ordinary spinors even, this has nothing a priori to do with spacetime supersymmetry). The odd generator of the worldline supersymmetry turns out to be the Dirac operator. Again, states are required to be annihilated by it and this gives the Dirac eqation.
Plenty of pointers to details about how this works are here:
http://ncatlab.org/nlab/show/spinning+particle
This post has been migrated from (A51.SE)