Added Public Key constraint method in ConstraintHandler and other changes.