KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > xmlrpc > secure > SecurityConstants


1 /*
2  * Copyright 1999,2005 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16
17
18 package org.apache.xmlrpc.secure;
19
20
21 public interface SecurityConstants
22 {
23     /**
24      * Default security provider class. If you are using
25      * something like Cryptix then you would override
26      * default with setSecurityProviderClass().
27      */

28     public final static String JavaDoc DEFAULT_SECURITY_PROVIDER_CLASS =
29         "com.sun.net.ssl.internal.ssl.Provider";
30
31     public final static String JavaDoc SECURITY_PROVIDER_CLASS =
32         "security.provider";
33
34     /**
35      * Default security protocol. You probably don't need to
36      * override this default.
37      */

38     public final static String JavaDoc DEFAULT_SECURITY_PROTOCOL = "TLS";
39     
40     public final static String JavaDoc SECURITY_PROTOCOL = "security.protocol";
41
42     /**
43      * Default key store location. This is just for testing, you
44      * will want to override this default in a production environment.
45      */

46     public final static String JavaDoc DEFAULT_KEY_STORE = "testkeys";
47     
48     public final static String JavaDoc KEY_STORE = "javax.net.ssl.keyStore";
49
50     /**
51      * Default key store format. You probably don't need to
52      * override this default.
53      */

54     public final static String JavaDoc DEFAULT_KEY_STORE_TYPE = "JKS";
55
56     public final static String JavaDoc KEY_STORE_TYPE = "javax.net.ssl.keyStoreType";
57
58     /**
59      * Default key store password. This default is only
60      * used for testing because the sample key store provided
61      * with the Sun JSSE uses this password. Do <strong>not</strong>
62      * use this password in a production server.
63      */

64     public final static String JavaDoc DEFAULT_KEY_STORE_PASSWORD = "password";
65     
66     public final static String JavaDoc KEY_STORE_PASSWORD = "javax.net.ssl.keyStorePassword";
67
68     /**
69      * Default key store format. You probably don't need to
70      * override this default.
71      */

72     public final static String JavaDoc DEFAULT_TRUST_STORE_TYPE = "JKS";
73
74     public final static String JavaDoc TRUST_STORE_TYPE =
75         "javax.net.ssl.trustStoreType";
76
77     /**
78      * Default key store location. This is just for testing, you
79      * will want to override this default in a production environment.
80      */

81     public final static String JavaDoc DEFAULT_TRUST_STORE = "truststore";
82     
83     public final static String JavaDoc TRUST_STORE = "javax.net.ssl.trustStore";
84
85     /**
86      * Default key store password. This default is only
87      * used for testing because the sample key store provided
88      * with the Sun JSSE uses this password. Do <strong>not</strong>
89      * use this password in a production server.
90      */

91     public final static String JavaDoc DEFAULT_TRUST_STORE_PASSWORD = "password";
92     
93     public final static String JavaDoc TRUST_STORE_PASSWORD =
94         "javax.net.ssl.trustStorePassword";
95
96     /**
97      * Default key manager type. You probably don't need to
98      * override this default.
99      */

100     public final static String JavaDoc DEFAULT_KEY_MANAGER_TYPE = "SunX509";
101
102     public final static String JavaDoc KEY_MANAGER_TYPE =
103         "sun.ssl.keymanager.type";
104
105     public final static String JavaDoc TRUST_MANAGER_TYPE =
106         "sun.ssl.trustmanager.type";
107
108     /**
109      * Default protocol handler packages. Change this if you
110      * are using something other than the Sun JSSE.
111      */

112     public final static String JavaDoc DEFAULT_PROTOCOL_HANDLER_PACKAGES =
113         "com.sun.net.ssl.internal.www.protocol";
114
115     public final static String JavaDoc PROTOCOL_HANDLER_PACKAGES =
116         "java.protocol.handler.pkgs";
117 }
118
Popular Tags