@Nullable public boolean authenticate(@Nullable final String sPassword) { return EncryptionUtils.authenticate(sPassword, m_aPassword, m_aSalt); }
public void setPassword(@Nullable final String sPassword) { if (StringUtils.isNotEmpty(sPassword)) { m_aSalt = EncryptionUtils.generateSalt(); m_aPassword = EncryptionUtils.encrypt(sPassword, m_aSalt); } }