예제 #1
0
 /**
  * @return Independent of the verification of the email, this method returns the available email
  *     address for posting email messages.
  */
 public String getPostingEmail() {
   String email_local = "";
   try {
     // In case there is an unverified email, it has the priority to be in
     // the message recipient.
     if (this.unverifiedEmail != null && !this.unverifiedEmail.isEmpty()) {
       return AESencrp.decrypt(this.unverifiedEmail);
     }
     // If unverified email is null it means that the email is valid and it
     // can be used in the message recipient.
     else {
       return AESencrp.decrypt(this.email);
     }
   } catch (Exception e) {
   }
   return email_local;
 }
예제 #2
0
 /**
  * @return the email address of the user. Despite its validity, do not use the returned value to
  *     send email messages to the user. Use getPostingEmail() instead.
  * @see #getPostingEmail()
  */
 public String getEmail() {
   String email_str = email;
   try {
     email_str = AESencrp.decrypt(email);
   } catch (Exception e) {
   }
   return email_str;
 }
예제 #3
0
 public UserAccount(String firstName, String lastName, String email) {
   this.firstName = firstName;
   this.lastName = lastName;
   try {
     this.email = AESencrp.encrypt(email);
   } catch (Exception e) {
     this.email = email;
   }
 }
예제 #4
0
 public void setUnverifiedEmail(String unverifiedEmail) {
   if (unverifiedEmail != null) {
     try {
       this.unverifiedEmail = AESencrp.encrypt(unverifiedEmail.toLowerCase());
     } catch (Exception e) {
     }
   } else {
     this.unverifiedEmail = null;
   }
 }