Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
SmtpsSocketFactory |
|
| 1.0;1 |
1 | /* | |
2 | * Copyright (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.com | |
3 | * The software in this package is published under the terms of the CPAL v1.0 | |
4 | * license, a copy of which has been included with this distribution in the | |
5 | * LICENSE.txt file. | |
6 | */ | |
7 | package org.mule.transport.email; | |
8 | ||
9 | import org.mule.api.security.tls.TlsPropertiesSocketFactory; | |
10 | ||
11 | import javax.net.SocketFactory; | |
12 | ||
13 | /** | |
14 | * A socket factor that reads "indirect" configuration (see {@link org.mule.api.security.tls.TlsConfiguration}) | |
15 | * for SMTPS from System properties. | |
16 | */ | |
17 | public class SmtpsSocketFactory extends TlsPropertiesSocketFactory | |
18 | { | |
19 | ||
20 | public static final String MULE_SMTPS_NAMESPACE = "mule.email.smtps"; | |
21 | ||
22 | public SmtpsSocketFactory() | |
23 | { | |
24 | 0 | super(true, MULE_SMTPS_NAMESPACE); |
25 | 0 | } |
26 | ||
27 | public static SocketFactory getDefault() | |
28 | { | |
29 | 0 | return new SmtpsSocketFactory(); |
30 | } | |
31 | ||
32 | } | |
33 | ||
34 |