seam/security — pull request #47 by BrynCooke (2013-02-23 22:53:11+00:00)
Title: Prevent ClassCastException if credentials are not of type PasswordCredential

In setPassword, if the current credential is not of type password then the final OR clause will still be executed causing a ClassCastException.