Class IdentityInfoManager

  • All Implemented Interfaces:
    Session

    public class IdentityInfoManager
    extends AbstractManager
    Author:
    Tom Baeyens
    • Constructor Detail

      • IdentityInfoManager

        public IdentityInfoManager()
    • Method Detail

      • deleteUserInfoByUserIdAndKey

        public void deleteUserInfoByUserIdAndKey​(java.lang.String userId,
                                                 java.lang.String key)
      • deleteIdentityInfo

        public void deleteIdentityInfo​(IdentityInfoEntity identityInfo)
      • findUserAccountByUserIdAndKey

        public IdentityInfoEntity findUserAccountByUserIdAndKey​(java.lang.String userId,
                                                                java.lang.String userPassword,
                                                                java.lang.String key)
      • findIdentityInfoDetails

        protected java.util.List<IdentityInfoEntity> findIdentityInfoDetails​(java.lang.String identityInfoId)
      • setUserInfo

        public void setUserInfo​(java.lang.String userId,
                                java.lang.String userPassword,
                                java.lang.String type,
                                java.lang.String key,
                                java.lang.String value,
                                java.lang.String accountPassword,
                                java.util.Map<java.lang.String,​java.lang.String> accountDetails)
      • encryptPassword

        public byte[] encryptPassword​(java.lang.String accountPassword,
                                      java.lang.String userPassword)
      • decryptPassword

        public java.lang.String decryptPassword​(byte[] storedPassword,
                                                java.lang.String userPassword)
      • findUserInfoByUserIdAndKey

        public IdentityInfoEntity findUserInfoByUserIdAndKey​(java.lang.String userId,
                                                             java.lang.String key)
      • findUserInfoKeysByUserIdAndType

        public java.util.List<java.lang.String> findUserInfoKeysByUserIdAndType​(java.lang.String userId,
                                                                                java.lang.String type)
      • deleteUserInfoByUserId

        public void deleteUserInfoByUserId​(java.lang.String userId)
      • updateUserLock

        public void updateUserLock​(UserEntity user,
                                   int attempts,
                                   java.util.Date lockExpirationTime)