001: /*
002: * BEGIN_HEADER - DO NOT EDIT
003: *
004: * The contents of this file are subject to the terms
005: * of the Common Development and Distribution License
006: * (the "License"). You may not use this file except
007: * in compliance with the License.
008: *
009: * You can obtain a copy of the license at
010: * https://open-esb.dev.java.net/public/CDDLv1.0.html.
011: * See the License for the specific language governing
012: * permissions and limitations under the License.
013: *
014: * When distributing Covered Code, include this CDDL
015: * HEADER in each file and include the License file at
016: * https://open-esb.dev.java.net/public/CDDLv1.0.html.
017: * If applicable add the following below this CDDL HEADER,
018: * with the fields enclosed by brackets "[]" replaced with
019: * your own identifying information: Portions Copyright
020: * [year] [name of copyright owner]
021: */
022:
023: /*
024: * @(#)HttpConstants.java
025: * Copyright 2004-2007 Sun Microsystems, Inc. All Rights Reserved.
026: *
027: * END_HEADER - DO NOT EDIT
028: */
029: /**
030: * HttpConstants.java
031: *
032: * SUN PROPRIETARY/CONFIDENTIAL.
033: * This software is the proprietary information of Sun Microsystems, Inc.
034: * Use is subject to license terms.
035: *
036: * Created on November 11, 2004, 1:39 PM
037: */package com.sun.jbi.internal.security.https;
038:
039: /**
040: *
041: * @author Sun Microsystems, Inc.
042: */
043: public interface HttpConstants {
044: /**
045: * The Package name.
046: */
047: String PACKAGE = "com.sun.jbi.internal.security.https";
048:
049: /**
050: * The Package name.
051: */
052: String MAIN_PACKAGE = "com.sun.jbi.internal.security";
053:
054: /** SSL Client Certificate Required. */
055: int CLIENT_CERTIFICATE_REQUIRED = 407;
056:
057: /** SSL Client Certificate failed Authentication. */
058: int CLIENT_CERTIFICATE_INVALID = 407;
059:
060: /**
061: * Parameter: SSL Default Settings parameter.
062: */
063: String PARAM_SSL_USE_DEFAULT = "ssl.client.use.default";
064: /**
065: * Parameter: SSL Protocol parameter.
066: */
067: String PARAM_SSL_PROTOCOL = "ssl.client.protocol";
068:
069: /**
070: * Parameter: Require SSL Client Auth.
071: */
072: String PARAM_SSL_REQ_CLIENT_AUTH = "ssl.server.require.client.auth";
073:
074: /**
075: * Parameter: Require SSL Client Auth.
076: */
077: String PARAM_SSL_CLIENT_ALIAS = "ssl.client.alias";
078:
079: /**
080: * Parameter: Require SSL Client Auth.
081: */
082: String PARAM_SSL_CLIENT_ALIAS_PASSWD = "ssl.client.alias.password";
083:
084: /**
085: * Default SSL Protocol value.
086: */
087: String DEFAULT_SSL_PROTOCOL = "TLS";
088:
089: /**
090: * SSLv3.
091: */
092: String SSLV3 = "SSLv3";
093:
094: /**
095: * TLSv1.
096: */
097: String TLSV1 = "TLSv1";
098:
099: /**
100: * TLSv1.
101: */
102: String TLS = "TLS";
103:
104: /**
105: * Default KeyManager instances will use this algorithm.
106: */
107: String DEFAULT_KEY_MANAGEMENT_ALGO = "SunX509";
108:
109: /**
110: * Default value for require client auth is false.
111: */
112: boolean DEFAULT_SSL_REQ_CLIENT_AUTH = false;
113:
114: /**
115: * Default value for the client alias is an empty string.
116: */
117: String DEFAULT_CLIENT_ALIAS = "";
118:
119: /**
120: * Default value for the client alias password is an empty string.
121: */
122: String DEFAULT_CLIENT_ALIAS_PWD = "";
123:
124: /**
125: * The Servlet request Certificate parameter.
126: */
127: String X509CERT_SERVLET_REQUEST_ATTRIB = "javax.servlet.request.X509Certificate";
128:
129: /*--------------------------------------------------------------------------------*\
130: * Localized String Constants *
131: \*--------------------------------------------------------------------------------*/
132:
133: /*-------------------------------------------------------------------------------*\
134: * INFORMATIONAL Messages *
135: \*-------------------------------------------------------------------------------*/
136:
137: /** INFO: TLS Created. */
138: String BC_INFO_CREATE_TLS_CTX = "BC_INFO_CREATE_TLS_CTX";
139:
140: /** INFO: KS Mgr Used. */
141: String BC_INFO_UD_USED = "BC_INFO_UD_USED";
142:
143: /** INFO: User Doamain Used. */
144: String BC_INFO_KSMGR_USED = "BC_INFO_KSMGR_USED";
145:
146: /** INFO: Using the default SSL Context. */
147: String BC_INFO_SSL_PROTOCOL_USED = "BC_INFO_SSL_PROTOCOL_USED";
148:
149: /** INFO: Using the default SSL Context. */
150: String BC_INFO_USING_SYSTEM_DEFAULT_SSL_CONTEXT = "BC_INFO_USING_SYSTEM_DEFAULT_SSL_CONTEXT";
151:
152: /** INFO: On the alias being used for Client Auth. */
153: String BC_INFO_CLIENT_AUTH_DETAILS = "BC_INFO_CLIENT_AUTH_DETAILS";
154:
155: /*-------------------------------------------------------------------------------*\
156: * ERROR Messages *
157: \*-------------------------------------------------------------------------------*/
158:
159: /** ERR: Client Certificate required. */
160: String BC_ERR_CLIENT_CERT_REQUIRED = "BC_ERR_CLIENT_CERT_REQUIRED";
161:
162: /** ERR: Client Certificate required details. */
163: String BC_ERR_CLIENT_CERT_REQUIRED_DETAIL = "BC_ERR_CLIENT_CERT_REQUIRED_DETAIL";
164:
165: /** ERR: Client Certificate required. */
166: String BC_ERR_CLIENT_CERT_AUTH_FAILED = "BC_ERR_CLIENT_CERT_AUTH_FAILED";
167:
168: /** ERR: Client Certificate required details. */
169: String BC_ERR_CLIENT_CERT_AUTH_FAILED_DETAIL = "BC_ERR_CLIENT_CERT_AUTH_FAILED_DETAIL";
170:
171: /** ERR: SSL Ctx creation failed. */
172: String BC_ERR_SSL_CTX_FAIL_USE_DEFAULT = "BC_ERR_SSL_CTX_FAIL_USE_DEFAULT";
173:
174: /** ERR: Hostname Verification failed. */
175: String BC_ERR_HOSTNAME_VERIFICATION_FAILED = "BC_ERR_HOSTNAME_VERIFICATION_FAILED";
176:
177: /** ERR: Certificate Authentication failed. */
178: String BC_ERR_CERT_AUTH_FAILED = "BC_ERR_CERT_AUTH_FAILED";
179:
180: /** ERR: Could not get the Certificate Chain for alias. */
181: String BC_ERR_GET_CERT_CHAIN_FAILED = "BC_ERR_GET_CERT_CHAIN_FAILED";
182:
183: /** ERR: Could not get the private key for an alias. */
184: String BC_ERR_GET_PRIVATE_KEY_FAILED = "BC_ERR_GET_PRIVATE_KEY_FAILED";
185:
186: /** ERR: SecurityContext specific SSL Context creation failed. */
187: String BC_ERR_SSL_CONTEXT_CREATION_FAILED = "BC_ERR_SSL_CONTEXT_CREATION_FAILED";
188:
189: /** ERR: Key Management Algorithm not supported. */
190: String BC_ERR_KEYMGMT_ALGO_NOT_SUPPORTED = "BC_ERR_KEYMGMT_ALGO_NOT_SUPPORTED";
191:
192: /** ERR: Key Store Manager does not know of Client Alias. */
193: String BC_ERR_MISSING_PRIVATE_KEY = "BC_ERR_MISSING_PRIVATE_KEY";
194:
195: /*-------------------------------------------------------------------------------*\
196: * WARNING Messages *
197: \*-------------------------------------------------------------------------------*/
198:
199: /** WRN: Endpoint deployment info could not be retrieved. */
200: String BC_WRN_ENDPT_DEPL_CTX_NOT_FOUND = "BC_WRN_ENDPT_DEPL_CTX_NOT_FOUND";
201:
202: }
|