Any life policy or other agreement relating to the holding or payment of the proceeds of a life policy may provide that the proceeds thereof or payments thereunder shall not be subject to transfer, anticipation or commutation or encumbrance by any beneficiary, and shall not be subject to the claims of creditors of any beneficiary or any legal process against any beneficiary.
Ca. Ins. Code § 10171