tag:blogger.com,1999:blog-4419551779153662850.post168021250426277024..comments2022-11-04T10:00:52.169+01:00Comments on Keep It Simple, Stupid !: Notes on password handling in Javaqbahttp://www.blogger.com/profile/06597868867671184616noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-4419551779153662850.post-45559069708880188452018-01-25T11:17:35.846+01:002018-01-25T11:17:35.846+01:00That's a neat idea as well! However makes you ...That's a neat idea as well! However makes you remember that it has to be used in t-w-r clause, which is also "implicit contract". By the way, such stateful class has to throw IllegalStateExc if password is accessed after it was closed (either manually of via t-w-r). qbahttps://www.blogger.com/profile/06597868867671184616noreply@blogger.comtag:blogger.com,1999:blog-4419551779153662850.post-6387398649919956322018-01-25T00:55:18.491+01:002018-01-25T00:55:18.491+01:00How about making this class Autoclosable and final...How about making this class Autoclosable and finalizing it after try-with-resources is ended?LKhttps://www.blogger.com/profile/00674920645413852400noreply@blogger.com