01: /*
02: * $Id: SmtpsSocketFactory.java 10489 2008-01-23 17:53:38Z dfeist $
03: * --------------------------------------------------------------------------------------
04: * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com
05: *
06: * The software in this package is published under the terms of the CPAL v1.0
07: * license, a copy of which has been included with this distribution in the
08: * LICENSE.txt file.
09: */
10:
11: package org.mule.transport.email;
12:
13: import org.mule.api.security.tls.TlsPropertiesSocketFactory;
14:
15: import javax.net.SocketFactory;
16:
17: /**
18: * A socket factor that reads "indirect" configuration (see {@link org.mule.api.security.tls.TlsConfiguration})
19: * for SMTPS from System properties.
20: */
21: public class SmtpsSocketFactory extends TlsPropertiesSocketFactory {
22:
23: public static final String MULE_SMTPS_NAMESPACE = "mule.email.smtps";
24:
25: public SmtpsSocketFactory() {
26: super (true, MULE_SMTPS_NAMESPACE);
27: }
28:
29: public static SocketFactory getDefault() {
30: return new SmtpsSocketFactory();
31: }
32:
33: }
|