Class SecuritySettingsPanel

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.apache.jmeter.protocol.smtp.sampler.gui.SecuritySettingsPanel
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class SecuritySettingsPanel extends JPanel
See Also:
  • Field Details

  • Constructor Details

    • SecuritySettingsPanel

      public SecuritySettingsPanel()
  • Method Details

    • isUseSSL

      public boolean isUseSSL()
      Returns if SSL is used to secure the SMTP-connection (checkbox)
      Returns:
      true if SSL is used to secure the SMTP-connection
    • setUseSSL

      public void setUseSSL(boolean useSSL)
      Sets SSL to be used to secure the SMTP-connection (checkbox)
      Parameters:
      useSSL - Use SSL to secure the connection
    • isUseStartTLS

      public boolean isUseStartTLS()
      Returns if StartTLS is used to secure the connection (checkbox)
      Returns:
      true if StartTLS is used to secure the connection
    • setUseStartTLS

      public void setUseStartTLS(boolean useStartTLS)
      Sets StartTLS to be used to secure the SMTP-connection (checkbox)
      Parameters:
      useStartTLS - Use StartTLS to secure the connection
    • isEnforceStartTLS

      public boolean isEnforceStartTLS()
      Returns if StartTLS is enforced (normally, SMTP uses plain SMTP-connection as fallback if "250-STARTTLS" isn't sent from the mailserver) (checkbox)
      Returns:
      true if StartTLS is enforced
    • setEnforceStartTLS

      public void setEnforceStartTLS(boolean enforceStartTLS)
      Enforces StartTLS to secure the SMTP-connection (checkbox)
      Parameters:
      enforceStartTLS - Enforce the use of StartTLS to secure the connection
      See Also:
    • isUseLocalTrustStore

      public boolean isUseLocalTrustStore()
      Returns if local (pre-installed) truststore is used to avoid SSL-connection-exceptions (checkbox)
      Returns:
      true if a local truststore is used
    • setUseLocalTrustStore

      public void setUseLocalTrustStore(boolean useLocalTrustStore)
      Set the use of a local (pre-installed) truststore to avoid SSL-connection-exceptions (checkbox)
      Parameters:
      useLocalTrustStore - Use local keystore
    • getTrustStoreToUse

      public String getTrustStoreToUse()
      Returns the path to the local (pre-installed) truststore to be used to avoid SSL-connection-exceptions
      Returns:
      Path to local truststore
    • setTrustStoreToUse

      public void setTrustStoreToUse(String trustStoreToUse)
      Set the path to local (pre-installed) truststore to be used to avoid SSL-connection-exceptions
      Parameters:
      trustStoreToUse - Path to local truststore
    • getTlsProtocolsToUse

      public String getTlsProtocolsToUse()
      Returns the TLS protocols to use for handshake
      Returns:
      Space separated list of protocols
    • setTlsProtocolsToUse

      public void setTlsProtocolsToUse(String tlsProtocols)
      Set the TLS protocols to use for handshake
      Parameters:
      tlsProtocols - Space separated list of protocols to use
    • setUseNoSecurity

      public void setUseNoSecurity(boolean selected)
    • isTrustAllCerts

      public boolean isTrustAllCerts()
      Returns if all certificates are blindly trusted (using according SocketFactory) (checkbox)
      Returns:
      true if all certificates are blindly trusted
    • setTrustAllCerts

      public void setTrustAllCerts(boolean trustAllCerts)
      Enforces JMeter to trust all certificates, no matter what CA is issuer (checkbox)
      Parameters:
      trustAllCerts - Trust all certificates
      See Also:
    • clear

      public void clear()
    • configure

      public void configure(org.apache.jmeter.testelement.TestElement element)
    • modifyTestElement

      public void modifyTestElement(org.apache.jmeter.testelement.TestElement te)