Display the password in plaintext

When you clicked a checkbox,display the password in plaintext. the following code is key partition!


1.displaying password in plaintext when call this method

password.setTransformationMethod(HideReturnsTransformationMethod
                            .getInstance());


2.displaying password in ciphertext  when call this method

password.setTransformationMethod(PasswordTransformationMethod
                            .getInstance());

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章