View Javadoc
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 IMAPS from System properties.
16   */
17  public class ImapsSocketFactory extends TlsPropertiesSocketFactory
18  {
19  
20      public static final String MULE_IMAPS_NAMESPACE = "mule.email.imaps";
21  
22      public ImapsSocketFactory()
23      {
24          super(true, MULE_IMAPS_NAMESPACE);
25      }
26      
27      public static SocketFactory getDefault() 
28      {
29          return new ImapsSocketFactory();
30      }
31  
32  }
33  
34