View Javadoc

1   /*
2    * $Id: SunSecurityProviderInfo.java 19191 2010-08-25 21:05:23Z tcarlson $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
5    *
6    * The software in this package is published under the terms of the CPAL v1.0
7    * license, a copy of which has been included with this distribution in the
8    * LICENSE.txt file.
9    */
10  
11  package org.mule.api.security.provider;
12  
13  /**
14   * Sun JDK-specific security provider information.
15   */
16  public class SunSecurityProviderInfo implements SecurityProviderInfo
17  {
18  
19      private static final String KEY_MANAGER_ALGORITHM = "SunX509";
20      private static final String PROTOCOL_HANDLER = "com.sun.net.ssl.internal.www.protocol";
21      private static final String PROVIDER_CLASS = "com.sun.net.ssl.internal.ssl.Provider";
22      private static final String DEFAULT_SSL_TYPE = "SSLv3";
23  
24      public String getKeyManagerAlgorithm()
25      {
26          return KEY_MANAGER_ALGORITHM;
27      }
28  
29      public String getProtocolHandler()
30      {
31          return PROTOCOL_HANDLER;
32      }
33  
34      public String getProviderClass()
35      {
36          return PROVIDER_CLASS;
37      }
38  
39      public String getDefaultSslType()
40      {
41          return DEFAULT_SSL_TYPE;
42      }
43  
44  }