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