Hitachi

Hitachi Application Server V10 Definition Reference Guide (For UNIX® Systems)


6.2.7 mail.smtp.ssl.protocols

mail.smtp.ssl.protocols specifies the SSL protocols that are enabled for SSL connections.

Description

mail.smtp.ssl.protocols specifies the SSL protocols that are enabled for SSL connections. The property value is a blank space-separated list of tokens valid for the javax.net.ssl.SSLSocket.setEnabledProtocols method.

Specifiable values

Type: String

For details, refer to JDK documentation.

Default value

If the definition item is omitted

TLSv1.1, TLSv1.2

Example

Properties properties = new Properties();
properties.setProperty("mail.smtp.ssl.protocols", "TLSv1 TLSv1.1");
Session session = Session.getDefaultInstance(properties);
Message message = new MimeMessage(session);
message.setSubject(sentDate);
Transport.send(message);