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: * @(#)Constants.java
025: * Copyright 2004-2007 Sun Microsystems, Inc. All Rights Reserved.
026: *
027: * END_HEADER - DO NOT EDIT
028: */
029: package com.sun.jbi.internal.security;
030:
031: /**
032: * Common class to define the Constants.
033: * @author Sun Microsystems, Inc.
034: */
035: public interface Constants {
036: /**
037: * The binding/common package name.
038: */
039: String PACKAGE = "com.sun.jbi.internal.security";
040: /**
041: * MessageHandlerChain Element.
042: */
043: String ELEMENT_HANDLER_CHAIN = "MessageHandlerChain";
044: /**
045: * MessageHandler Element.
046: */
047: String ELEMENT_HANDLER = "MessageHandler";
048: /**
049: * MessageHandler Parameter.
050: */
051: String ELEMENT_HANDLER_PARAMETER = "Parameter";
052: /**
053: * MessageHandler Classname.
054: */
055: String ELEMENT_HANDLER_CLASSNAME = "ClassName";
056: /**
057: * Endpoint Element.
058: */
059: String ELEMENT_ENDPOINT = "Endpoint";
060: /**
061: * Operation Element.
062: */
063: String ELEMENT_OPERATION = "Operation";
064: /**
065: * RequestPolicy Element.
066: */
067: String ELEMENT_REQ_POLICY = "RequestPolicy";
068: /**
069: * ResponsePolicy Element.
070: */
071: String ELEMENT_RESP_POLICY = "ResponsePolicy";
072: /**
073: * Inbound Element. // TBD
074: */
075: String ELEMENT_INBOUND = "Inbound";
076: /**
077: * Outbound element. // TBD
078: */
079: String ELEMENT_OUTBOUND = "Outbound";
080: /**
081: * User Element.
082: */
083: String ELEMENT_USER = "User";
084:
085: // -- Security Elements in the Configuration file
086: /**
087: * SecurityEnvironment.
088: */
089: String ELEMENT_SECENV = "SecurityEnvironment";
090:
091: /**
092: * SecurityConfiguration.
093: */
094: String ELEMENT_SEC_CONFIG = "SecurityConfiguration";
095:
096: /**
097: * KeyStoreManager Element.
098: */
099: String ELEMENT_KEYSTORE_MANAGER = "KeyStoreManager";
100:
101: /**
102: * KeyStoreManagers Element.
103: */
104: String ELEMENT_KEYSTORE_MANAGERS = "KeyStoreManagers";
105:
106: /**
107: * UserDomain Element.
108: */
109: String ELEMENT_USER_DOMAIN = "UserDomain";
110:
111: /**
112: * UserDomains Element.
113: */
114: String ELEMENT_USER_DOMAINS = "UserDomains";
115:
116: /**
117: * TransportSecurity Element in the Endpoint Deployment Config.
118: */
119: String ELEMENT_TRANSPORT_SECURITY = "TransportSecurity";
120:
121: /**
122: * TransportSecurity/Server Element in the Endpoint Deployment Config.
123: */
124: String ELEMENT_SERVER = "Server";
125:
126: /**
127: * TransportSecurity/Server Element in the Endpoint Deployment Config.
128: */
129: String ELEMENT_CLIENT = "Client";
130:
131: /**
132: * TransportSecurity/MessageProviderId Element in the Endpoint Deployment Config.
133: */
134: String ELEMENT_PROVIDER_ID = "MessageProviderId";
135:
136: /**
137: * TransportSecurity/Consumer/SSLProtocol Element in the Endpoint Deployment Config.
138: */
139: String ELEMENT_SSL_PROTOCOL = "SSLProtocol";
140:
141: /**
142: * TransportSecurity/Consumer/ClientAlias Element in the Endpoint Deployment Config.
143: */
144: String ELEMENT_SSL_CLIENT_ALIAS = "ClientAlias";
145:
146: /**
147: * TransportSecurity/Consumer/UseDefault Element in the Endpoint Deployment Config.
148: */
149: String ELEMENT_SSL_USE_DEFAULT = "UseDefault";
150:
151: /**
152: * TransportSecurity/Provider/RequireClientAuth Element in the Endpoint
153: * Deployment Config.
154: */
155: String ELEMENT_SSL_REQ_CLIENT_AUTH = "RequireClientAuth";
156:
157: /**
158: * Name element.
159: */
160: String ELEMENT_NAME = "name";
161:
162: /**
163: * Domain element.
164: */
165: String ELEMENT_DOMAIN = "domain";
166:
167: /**
168: * Manager element.
169: */
170: String ELEMENT_MANAGER = "manager";
171:
172: /**
173: * Param element.
174: */
175: String ELEMENT_PARAM = "param";
176:
177: /**
178: * Param Name element.
179: */
180: String ELEMENT_PARAM_NAME = "paramname";
181:
182: /**
183: * Param Value element.
184: */
185: String ELEMENT_PARAM_VALUE = "paramvalue";
186:
187: /**
188: * Default ELement.
189: */
190: String ELEMENT_DEFAULT = "default";
191:
192: /**
193: * Attribute: name.
194: */
195: String ATTR_NAME = "name";
196: /**
197: * Attribute: value.
198: */
199: String ATTR_VALUE = "value";
200: /**
201: * Attribute: auth-source.
202: */
203: String ATTR_AUTH_SRC = "auth-source";
204: /**
205: * Attribute: auth-source.
206: */
207: String ATTR_AUTH_RECP = "auth-recipient";
208:
209: /**
210: * Attribute: service.
211: */
212: String ATTR_SERVICE = "service";
213: /**
214: * Attribute: targetNamespace.
215: */
216: String ATTR_TNS = "targetNamespace";
217: /**
218: * Attribute: location.
219: */
220: String ATTR_LOCATION = "location";
221:
222: // TBD --
223: /**
224: * Attribute: password.
225: */
226: String ATTR_PASSWORD = "password";
227: /**
228: * Attribute type.
229: */
230: String ATTR_TYPE = "type";
231: /**
232: * Attribute: alias.
233: */
234: String ATTR_ALIAS = "alias";
235: /**
236: * Attribute: keypassword.
237: */
238: String ATTR_KEYPASS = "keyPassword";
239: /**
240: * Attribute: Username.
241: */
242: String ATTR_USERNAME = "username";
243: // TBD --
244:
245: /**
246: * Attribute: default keystore type.
247: */
248: String DEFAULT_STORE_TYPE = "JKS";
249:
250: /**
251: * X509 type.
252: */
253: String X509 = "X.509";
254:
255: /**
256: * XWSS Namespace.
257: */
258: String NAMESPACE_XWSS = "http://java.sun.com/xml/ns/xwss/config";
259: /**
260: * Element: SecurityConfiguration.
261: */
262: String ELEMENT_SECURITY_CONFIGURATION = "SecurityConfiguration";
263: /**
264: * SecurityConfiguration.
265: */
266: String SECURITY_CONFIGURATION_PARAMETER = "securityConfiguration";
267:
268: /**
269: * Endpoint Deployment Configuration Schema. TBD
270: */
271: String CONFIG_SCHEMA = "EndpointConfig.xsd";
272:
273: /**
274: * Deployment Security Configuration Schema.
275: */
276: String DEPLOY_CONFIG_SCHEMA = "secdeployconfig.xsd";
277:
278: /**
279: * Security Configuration Schema.
280: */
281: String SEC_INSTALL_SCHEMA = "secinstallconfig.xsd";
282:
283: /**
284: * Security Configuration File Name.
285: */
286: String SEC_INSTALL_CONFIG_FILE = "secinstallconfig.xml";
287:
288: /**
289: * XWSS Security Configuraion Schema file name.
290: */
291: String SECURITY_CONFIG_SCHEMA = "xwssconfig.xsd";
292:
293: /**
294: * Outbound Security Handler Classname.
295: */
296: String OUTBOUND_SECURITY_HANDLER_CLASSNAME = "com.sun.jbi.internal.security.msg.soap.OutboundSecurityHandler";
297: /**
298: * Inbound Security Handler Classname.
299: */
300: String INBOUND_SECURITY_HANDLER_CLASSNAME = "com.sun.jbi.internal.security.msg.soap.InboundSecurityHandler";
301: /**
302: * Default: Operation Name.
303: */
304: String DEFAULT_OPERATION_NAME = "default";
305:
306: /**
307: * Subject.
308: */
309: String SUBJECT = "subject";
310: /**
311: * Http Servlet Request.
312: */
313: String HTTP_SERVLET_REQUEST = "http_servlet_request";
314: /**
315: * Manager constant.
316: */
317: String MANAGER = "manager";
318:
319: /**
320: * Domain constant.
321: */
322: String DOMAIN = "domain";
323:
324: /**
325: * Parameter: KeyStore Location.
326: */
327: String PARAM_KEYSTORE_LOCATION = "keystore.url";
328: /**
329: * Parameter: KeyStore type.
330: */
331: String PARAM_KEYSTORE_TYPE = "keystore.type";
332: /**
333: * Parameter: KeyStore Password.
334: */
335: String PARAM_KEYSTORE_PASS = "keystore.password";
336:
337: /**
338: * Parameter: TrustStore Location.
339: */
340: String PARAM_TRUSTSTORE_LOCATION = "truststore.url";
341: /**
342: * Parameter: TrustStore Type.
343: */
344: String PARAM_TRUSTSTORE_TYPE = "truststore.type";
345: /**
346: * Parameter: TrustStore Password.
347: */
348: String PARAM_TRUSTSTORE_PASS = "truststore.password";
349:
350: /**
351: * true value constant.
352: */
353: String TRUE = "true";
354:
355: /**
356: * Component Id constant.
357: */
358: String COMPONENT_ID = "component_id";
359:
360: /**
361: * Parameter: File name.
362: */
363: String PARAM_FILE_NAME = "file";
364:
365: /**
366: * JAAS Auth type.
367: */
368: String JAAS = "JAAS";
369:
370: /**
371: * JBI Schema Directory.
372: */
373: String SCHEMA_DIR = "schemas";
374:
375: /**
376: * JBI Schema Directory.
377: */
378: String JBI_DIR = "jbi";
379:
380: /**
381: * JBI Install Root.
382: */
383: String JBI_INSTALL_ROOT = "com.sun.jbi.home";
384:
385: }
|