package de.ivu.elect.business.email.entity;

public enum EmailConnectionEncryptionType {
  NONE("") {
    @Override
    public boolean isEncryptionEnabled() {
      return false;
    }
  },
  STARTTLS("mail.smtp.starttls.enable"),
  SSL("mail.smtp.ssl.enable");

  private final String mailSmtpPropertyKey;

  EmailConnectionEncryptionType(String mailSmtpPropertyKey) {
    this.mailSmtpPropertyKey = mailSmtpPropertyKey;
  }

  public String getMailSmtpPropertyKey() {
    return mailSmtpPropertyKey;
  }

  public boolean isEncryptionEnabled() {
    return true;
  }
}
