示例#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;
 }