[jboss-cvs] JBossAS SVN: r88596 - projects/docs/enterprise/4.3.3/Server_Configuration_Guide/es-ES.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon May 11 03:00:53 EDT 2009
Author: agarcia at jboss.com
Date: 2009-05-11 03:00:53 -0400 (Mon, 11 May 2009)
New Revision: 88596
Modified:
projects/docs/enterprise/4.3.3/Server_Configuration_Guide/es-ES/J2EE_Security_On_JBOSS.po
projects/docs/enterprise/4.3.3/Server_Configuration_Guide/es-ES/Web_Services.po
Log:
SCG new chapter in progress
Modified: projects/docs/enterprise/4.3.3/Server_Configuration_Guide/es-ES/J2EE_Security_On_JBOSS.po
===================================================================
--- projects/docs/enterprise/4.3.3/Server_Configuration_Guide/es-ES/J2EE_Security_On_JBOSS.po 2009-05-11 06:54:15 UTC (rev 88595)
+++ projects/docs/enterprise/4.3.3/Server_Configuration_Guide/es-ES/J2EE_Security_On_JBOSS.po 2009-05-11 07:00:53 UTC (rev 88596)
@@ -1,30 +1,32 @@
+# translation of J2EE_Security_On_JBOSS.po to
# Language /tmp/mike/JBEAP420/JBAS translations for JBEAP package.
-# Copyright (C) 2007 Free Software Foundation, Inc.
+# Copyright (C) 2007, 2009 Free Software Foundation, Inc.
# Automatically generated, 2007.
#
msgid ""
msgstr ""
-"Project-Id-Version: JBEAP 420\n"
+"Project-Id-Version: J2EE_Security_On_JBOSS\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2009-01-20 02:37+0000\n"
-"PO-Revision-Date: 2001-02-09 01:25+0100\n"
-"Last-Translator: Automatically generated\n"
-"Language-Team: none\n"
+"PO-Revision-Date: 2009-05-11 10:25+1000\n"
+"Last-Translator: Angela Garcia\n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
#: J2EE_Security_On_JBOSS.xml:6
#, no-c-format
msgid "Security on JBoss"
-msgstr ""
+msgstr "Seguridad en JBoss"
#. Tag: subtitle
#: J2EE_Security_On_JBOSS.xml:7
#, no-c-format
msgid "J2EE Security Configuration and Architecture"
-msgstr ""
+msgstr "Arquitectura y configuración de seguridad de J2EE "
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:8
@@ -84,7 +86,7 @@
#: J2EE_Security_On_JBOSS.xml:20
#, no-c-format
msgid "Security References"
-msgstr ""
+msgstr "Referencias de seguridad"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:21
@@ -107,9 +109,9 @@
#. Tag: title
#: J2EE_Security_On_JBOSS.xml:25
-#, fuzzy, no-c-format
+#, no-c-format
msgid "The security-role-ref element"
-msgstr "El elemento Connector"
+msgstr "El elemento security-role-ref"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:32
@@ -118,6 +120,8 @@
"shows the use of <literal>security-role-ref</literal> in an <literal>ejb-jar."
"xml</literal>."
msgstr ""
+"muestra el uso de <literal>security-role-ref</literal> en un <literal>ejb-jar."
+"xml</literal>."
#. Tag: title
#: J2EE_Security_On_JBOSS.xml:35
@@ -146,6 +150,20 @@
" ...\n"
"</ejb-jar>"
msgstr ""
+"<!-- A sample ejb-jar.xml fragment -->\n"
+"<ejb-jar>\n"
+" <enterprise-beans>\n"
+" <session>\n"
+" <ejb-name>ASessionBean</ejb-name>\n"
+" ...\n"
+" <security-role-ref>\n"
+" <role-name>TheRoleICheck</role-name>\n"
+" <role-link>TheApplicationRole</role-link>\n"
+" </security-role-ref>\n"
+" </session>\n"
+" </enterprise-beans>\n"
+" ...\n"
+"</ejb-jar>"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:37
@@ -154,6 +172,8 @@
"shows the use of <literal>security-role-ref</literal> in a <literal>web.xml</"
"literal>."
msgstr ""
+"muestra el uso de <literal>security-role-ref</literal> en un <literal>web.xml</"
+"literal>."
#. Tag: title
#: J2EE_Security_On_JBOSS.xml:40
@@ -179,6 +199,17 @@
" ...\n"
"</web-app>"
msgstr ""
+"<web-app>\n"
+" <servlet>\n"
+" <servlet-name>AServlet</servlet-name>\n"
+" ...\n"
+" <security-role-ref>\n"
+" <role-name>TheServletRole</role-name>\n"
+" <role-link>TheApplicationRole</role-link>\n"
+" </security-role-ref>\n"
+" </servlet>\n"
+" ...\n"
+"</web-app>"
#. Tag: title
#: J2EE_Security_On_JBOSS.xml:46
@@ -197,9 +228,9 @@
#. Tag: title
#: J2EE_Security_On_JBOSS.xml:51
-#, fuzzy, no-c-format
+#, no-c-format
msgid "The security-identity element"
-msgstr "El elemento Host"
+msgstr "El elemento security-identity "
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:58
@@ -264,6 +295,30 @@
" <!-- ... -->\n"
"</ejb-jar>"
msgstr ""
+"<!-- A sample ejb-jar.xml fragment -->\n"
+"<ejb-jar>\n"
+" <enterprise-beans>\n"
+" <session>\n"
+" <ejb-name>ASessionBean</ejb-name>\n"
+" <!-- ... -->\n"
+" <security-identity>\n"
+" <use-caller-identity/>\n"
+" </security-identity>\n"
+" </session>\n"
+" <session>\n"
+" <ejb-name>RunAsBean</ejb-name>\n"
+" <!-- ... -->\n"
+" <security-identity>\n"
+" <run-as>\n"
+" <description>A private internal role</"
+"description>\n"
+" <role-name>InternalRole</role-name>\n"
+" </run-as>\n"
+" </security-identity>\n"
+" </session>\n"
+" </enterprise-beans>\n"
+" <!-- ... -->\n"
+"</ejb-jar>"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:65
@@ -289,6 +344,12 @@
" </security-identity>\n"
"</session>"
msgstr ""
+"<session>\n"
+" <ejb-name>RunAsBean</ejb-name>\n"
+" <security-identity>\n"
+" <run-as-principal>internal</run-as-principal>\n"
+" </security-identity>\n"
+"</session>"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:69
@@ -301,7 +362,7 @@
#. Tag: programlisting
#: J2EE_Security_On_JBOSS.xml:72
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<servlet>\n"
" <servlet-name>AServlet</servlet-name>\n"
@@ -312,16 +373,12 @@
"</servlet>"
msgstr ""
"<servlet>\n"
-" <servlet-name>Faces Servlet</servlet-name>\n"
-" <servlet-class>javax.faces.webapp.FacesServlet</servlet-"
-"class>\n"
-" <load-on-startup>1</load-on-startup>\n"
-"</servlet>\n"
-"\n"
-"<servlet-mapping>\n"
-" <servlet-name>Faces Servlet</servlet-name>\n"
-" <url-pattern>*.jsf</url-pattern>\n"
-"</servlet-mapping>"
+" <servlet-name>AServlet</servlet-name>\n"
+" <!-- ... -->\n"
+" <run-as> \n"
+" <role-name>InternalRole</role-name>\n"
+" </run-as>\n"
+"</servlet>"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:73
@@ -344,6 +401,10 @@
" <run-as-principal>internal</run-as-principal>\n"
"</servlet>"
msgstr ""
+"<servlet>\n"
+" <servlet-name>AServlet</servlet-name>\n"
+" <run-as-principal>internal</run-as-principal>\n"
+"</servlet>"
#. Tag: title
#: J2EE_Security_On_JBOSS.xml:80
@@ -379,9 +440,9 @@
#. Tag: title
#: J2EE_Security_On_JBOSS.xml:88
-#, fuzzy, no-c-format
+#, no-c-format
msgid "The security-role element"
-msgstr "El elemento Connector"
+msgstr "El elemento security-role"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:95
@@ -426,6 +487,17 @@
" </assembly-descriptor>\n"
"</ejb-jar>"
msgstr ""
+"<!-- A sample ejb-jar.xml fragment -->\n"
+"<ejb-jar>\n"
+" <!-- ... -->\n"
+" <assembly-descriptor>\n"
+" <security-role>\n"
+" <description>The single application role</"
+"description>\n"
+" <role-name>TheApplicationRole</role-name>\n"
+" </security-role>\n"
+" </assembly-descriptor>\n"
+"</ejb-jar>"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:100
@@ -434,6 +506,8 @@
"shows the usage of the <literal>security-role</literal> in an <literal>web."
"xml</literal> file."
msgstr ""
+"muestra el uso del <literal>security-role</literal> en un archivo <literal>web."
+"xml</literal> file."
#. Tag: title
#: J2EE_Security_On_JBOSS.xml:103
@@ -456,6 +530,14 @@
" </security-role>\n"
"</web-app>"
msgstr ""
+"<!-- A sample web.xml fragment -->\n"
+"<web-app>\n"
+" <!-- ... -->\n"
+" <security-role>\n"
+" <description>The single application role</description>\n"
+" <role-name>TheApplicationRole</role-name>\n"
+" </security-role>\n"
+"</web-app>"
#. Tag: title
#: J2EE_Security_On_JBOSS.xml:109
@@ -474,9 +556,9 @@
#. Tag: title
#: J2EE_Security_On_JBOSS.xml:114
-#, fuzzy, no-c-format
+#, no-c-format
msgid "The method-permissions element"
-msgstr "El elemento Connector"
+msgstr "El elemento method-permissions"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:121
@@ -497,9 +579,9 @@
#. Tag: title
#: J2EE_Security_On_JBOSS.xml:125
-#, fuzzy, no-c-format
+#, no-c-format
msgid "The method element"
-msgstr "El elemento Connector"
+msgstr "El elemento method"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:132
@@ -517,17 +599,17 @@
#. Tag: programlisting
#: J2EE_Security_On_JBOSS.xml:138
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<method>\n"
" <ejb-name>EJBNAME</ejb-name>\n"
" <method-name>*</method-name>\n"
"</method>"
msgstr ""
-"<login-config>\n"
-" <auth-method>DIGEST</auth-method>\n"
-" <realm-name>My Aplication</realm-name>\n"
-"</login-config>"
+"<method>\n"
+" <ejb-name>EJBNAME</ejb-name>\n"
+" <method-name>*</method-name>\n"
+"</method>"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:139
@@ -546,6 +628,10 @@
" <method-name>METHOD</method-name>\n"
" </method>"
msgstr ""
+"<method>\n"
+" <ejb-name>EJBNAME</ejb-name>\n"
+" <method-name>METHOD</method-name>\n"
+" </method>"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:143
@@ -577,6 +663,15 @@
" </method-params>\n"
"</method>"
msgstr ""
+"<method>\n"
+" <ejb-name>EJBNAME</ejb-name>\n"
+" <method-name>METHOD</method-name>\n"
+" <method-params>\n"
+" <method-param>PARAMETER_1</method-param>\n"
+" <!-- ... -->\n"
+" <method-param>PARAMETER_N</method-param>\n"
+" </method-params>\n"
+"</method>"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:150
@@ -686,6 +781,73 @@
" </assembly-descriptor>\n"
"</ejb-jar>"
msgstr ""
+"<ejb-jar>\n"
+" <assembly-descriptor>\n"
+" <method-permission>\n"
+" <description>The employee and temp-employee roles may "
+"access any\n"
+" method of the EmployeeService bean </description>\n"
+" <role-name>employee</role-name>\n"
+" <role-name>temp-employee</role-name>\n"
+" <method>\n"
+" <ejb-name>EmployeeService</ejb-name>\n"
+" <method-name>*</method-name>\n"
+" </method>\n"
+" </method-permission>\n"
+" <method-permission>\n"
+" <description>The employee role may access the "
+"findByPrimaryKey,\n"
+" getEmployeeInfo, and the updateEmployeeInfo(String) method "
+"of\n"
+" the AardvarkPayroll bean </description>\n"
+" <role-name>employee</role-name>\n"
+" <method>\n"
+" <ejb-name>AardvarkPayroll</ejb-name>\n"
+" <method-name>findByPrimaryKey</method-name>\n"
+" </method>\n"
+" <method>\n"
+" <ejb-name>AardvarkPayroll</ejb-name>\n"
+" <method-name>getEmployeeInfo</method-name>\n"
+" </method>\n"
+" <method>\n"
+" <ejb-name>AardvarkPayroll</ejb-name>\n"
+" <method-name>updateEmployeeInfo</method-name>\n"
+" <method-params>\n"
+" <method-param>java.lang.String</method-"
+"param>\n"
+" </method-params>\n"
+" </method>\n"
+" </method-permission>\n"
+" <method-permission>\n"
+" <description>The admin role may access any method of the\n"
+" EmployeeServiceAdmin bean </description>\n"
+" <role-name>admin</role-name>\n"
+" <method>\n"
+" <ejb-name>EmployeeServiceAdmin</ejb-name>\n"
+" <method-name>*</method-name>\n"
+" </method>\n"
+" </method-permission>\n"
+" <method-permission>\n"
+" <description>Any authenticated user may access any method "
+"of the\n"
+" EmployeeServiceHelp bean</description>\n"
+" <unchecked/>\n"
+" <method>\n"
+" <ejb-name>EmployeeServiceHelp</ejb-name>\n"
+" <method-name>*</method-name>\n"
+" </method>\n"
+" </method-permission>\n"
+" <exclude-list>\n"
+" <description>No fireTheCTO methods of the EmployeeFiring "
+"bean may be\n"
+" used in this deployment</description>\n"
+" <method>\n"
+" <ejb-name>EmployeeFiring</ejb-name>\n"
+" <method-name>fireTheCTO</method-name>\n"
+" </method>\n"
+" </exclude-list>\n"
+" </assembly-descriptor>\n"
+"</ejb-jar>"
#. Tag: title
#: J2EE_Security_On_JBOSS.xml:165
@@ -705,9 +867,9 @@
#. Tag: title
#: J2EE_Security_On_JBOSS.xml:170
-#, fuzzy, no-c-format
+#, no-c-format
msgid "The security-constraint element"
-msgstr "El elemento Connector"
+msgstr "El elemento security-constraint"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:177
@@ -759,9 +921,9 @@
#. Tag: title
#: J2EE_Security_On_JBOSS.xml:187
-#, fuzzy, no-c-format
+#, no-c-format
msgid "The login-config element"
-msgstr "El elemento de la Máquina"
+msgstr "El elemento login-config"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:194
@@ -834,6 +996,33 @@
" </security-role>\n"
"</web-app>"
msgstr ""
+"<web-app>\n"
+" <!-- ... -->\n"
+" <security-constraint>\n"
+" <web-resource-collection>\n"
+" <web-resource-name>Secure Content</web-resource-"
+"name>\n"
+" <url-pattern>/restricted/*</url-pattern>\n"
+" </web-resource-collection>\n"
+" <auth-constraint>\n"
+" <role-name>AuthorizedUser</role-name>\n"
+" </auth-constraint>\n"
+" <user-data-constraint>\n"
+" <transport-guarantee>NONE</transport-guarantee>\n"
+" </user-data-constraint>\n"
+" </security-constraint>\n"
+" <!-- ... -->\n"
+" <login-config>\n"
+" <auth-method>BASIC</auth-method>\n"
+" <realm-name>The Restricted Zone</realm-name>\n"
+" </login-config>\n"
+" <!-- ... -->\n"
+" <security-role>\n"
+" <description>The role required to access restricted content "
+"</description>\n"
+" <role-name>AuthorizedUser</role-name>\n"
+" </security-role>\n"
+"</web-app>"
#. Tag: title
#: J2EE_Security_On_JBOSS.xml:206
@@ -859,9 +1048,9 @@
#. Tag: title
#: J2EE_Security_On_JBOSS.xml:215
-#, fuzzy, no-c-format
+#, no-c-format
msgid "An Introduction to JAAS"
-msgstr "Introducción"
+msgstr "Introducción a JAAS"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:216
@@ -878,7 +1067,7 @@
#: J2EE_Security_On_JBOSS.xml:220
#, no-c-format
msgid "What is JAAS?"
-msgstr ""
+msgstr "¿Qué es JAAS?"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:221
@@ -932,22 +1121,20 @@
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:237
#, no-c-format
-msgid ""
-"<literal>Subject</literal> (<literal>javax.security.auth.Subject</literal>)"
-msgstr ""
+msgid "<literal>Subject</literal> (<literal>javax.security.auth.Subject</literal>)"
+msgstr "<literal>Subject</literal> (<literal>javax.security.auth.Subject</literal>)"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:242
#, no-c-format
-msgid ""
-"<literal>Principal</literal> (<literal>java.security.Principal</literal>)"
-msgstr ""
+msgid "<literal>Principal</literal> (<literal>java.security.Principal</literal>)"
+msgstr "<literal>Principal</literal> (<literal>java.security.Principal</literal>)"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:247
#, no-c-format
msgid "These are the authentication classes:"
-msgstr ""
+msgstr "Estas son las clases de autenticación: "
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:252
@@ -956,6 +1143,8 @@
"<literal>Callback</literal> (<literal>javax.security.auth.callback.Callback</"
"literal>)"
msgstr ""
+"<literal>Callback</literal> (<literal>javax.security.auth.callback.Callback</"
+"literal>)"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:257
@@ -964,6 +1153,8 @@
"<literal>CallbackHandler</literal> (<literal>javax.security.auth.callback."
"CallbackHandler</literal>)"
msgstr ""
+"<literal>CallbackHandler</literal> (<literal>javax.security.auth.callback."
+"CallbackHandler</literal>)"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:262
@@ -972,6 +1163,8 @@
"<literal>Configuration</literal> (<literal>javax.security.auth.login."
"Configuration</literal>)"
msgstr ""
+"<literal>Configuration</literal> (<literal>javax.security.auth.login."
+"Configuration</literal>)"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:267
@@ -980,6 +1173,8 @@
"<literal>LoginContext</literal> (<literal>javax.security.auth.login."
"LoginContext</literal>)"
msgstr ""
+"<literal>LoginContext</literal> (<literal>javax.security.auth.login."
+"LoginContext</literal>)"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:272
@@ -988,6 +1183,8 @@
"<literal>LoginModule</literal> (<literal>javax.security.auth.spi."
"LoginModule</literal>)"
msgstr ""
+"<literal>LoginModule</literal> (<literal>javax.security.auth.spi."
+"LoginModule</literal>)"
#. Tag: title
#: J2EE_Security_On_JBOSS.xml:278
@@ -1029,6 +1226,8 @@
"public Set getPrincipals() {...}\n"
"public Set getPrincipals(Class c) {...}"
msgstr ""
+"public Set getPrincipals() {...}\n"
+"public Set getPrincipals(Class c) {...}"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:286
@@ -1080,8 +1279,7 @@
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:308
#, no-c-format
-msgid ""
-"The application invokes the <literal>LoginContext.login</literal> method."
+msgid "The application invokes the <literal>LoginContext.login</literal> method."
msgstr ""
#. Tag: para
@@ -1189,6 +1387,50 @@
" }\n"
"}"
msgstr ""
+"CallbackHandler handler = new MyHandler();\n"
+"LoginContext lc = new LoginContext(\"some-config\", handler);\n"
+"\n"
+"try {\n"
+" lc.login();\n"
+" Subject subject = lc.getSubject();\n"
+"} catch(LoginException e) {\n"
+" System.out.println(\"authentication failed\");\n"
+" e.printStackTrace();\n"
+"}\n"
+" \n"
+"// Perform work as authenticated Subject\n"
+"// ...\n"
+"\n"
+"// Scope of work complete, logout to remove authentication info\n"
+"try {\n"
+" lc.logout();\n"
+"} catch(LoginException e) {\n"
+" System.out.println(\"logout failed\");\n"
+" e.printStackTrace();\n"
+"}\n"
+" \n"
+"// A sample MyHandler class\n"
+"class MyHandler \n"
+" implements CallbackHandler\n"
+"{\n"
+" public void handle(Callback[] callbacks) throws\n"
+" IOException, UnsupportedCallbackException\n"
+" {\n"
+" for (int i = 0; i < callbacks.length; i++) {\n"
+" if (callbacks[i] instanceof NameCallback) {\n"
+" NameCallback nc = (NameCallback)callbacks[i];\n"
+" nc.setName(username);\n"
+" } else if (callbacks[i] instanceof PasswordCallback) {\n"
+" PasswordCallback pc = (PasswordCallback)callbacks[i];\n"
+" pc.setPassword(password);\n"
+" } else {\n"
+" throw new UnsupportedCallbackException(callbacks[i],\n"
+" \"Unrecognized "
+"Callback\");\n"
+" }\n"
+" }\n"
+" }\n"
+"}"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:337
@@ -1335,6 +1577,9 @@
" throws java.io.IOException, \n"
" UnsupportedCallbackException;"
msgstr ""
+"void handle(Callback[] callbacks)\n"
+" throws java.io.IOException, \n"
+" UnsupportedCallbackException;"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:379
@@ -1669,6 +1914,68 @@
" }\n"
"}"
msgstr ""
+"package org.jboss.book.security.ex1;\n"
+" \n"
+"import java.lang.reflect.Method;\n"
+"import javax.ejb.EJBContext;\n"
+" \n"
+"import org.apache.log4j.Category;\n"
+" \n"
+"import org.jboss.security.SecurityProxy;\n"
+" \n"
+"/** A simple example of a custom SecurityProxy implementation\n"
+" * that demonstrates method argument based security checks.\n"
+" * @author Scott.Stark at jboss.org\n"
+" * @version $Revision: 1.4 $\n"
+" */\n"
+"public class EchoSecurityProxy implements SecurityProxy\n"
+"{\n"
+" Category log = Category.getInstance(EchoSecurityProxy.class);\n"
+" Method echo;\n"
+" \n"
+" public void init(Class beanHome, Class beanRemote,\n"
+" Object securityMgr)\n"
+" throws InstantiationException\n"
+" {\n"
+" log.debug(\"init, beanHome=\"+beanHome\n"
+" + \", beanRemote=\"+beanRemote\n"
+" + \", securityMgr=\"+securityMgr);\n"
+" // Get the echo method for equality testing in invoke\n"
+" try {\n"
+" Class[] params = {String.class};\n"
+" echo = beanRemote.getDeclaredMethod(\"echo\", params);\n"
+" } catch(Exception e) {\n"
+" String msg = \"Failed to finde an echo(String) method\";\n"
+" log.error(msg, e);\n"
+" throw new InstantiationException(msg);\n"
+" }\n"
+" }\n"
+" \n"
+" public void setEJBContext(EJBContext ctx)\n"
+" {\n"
+" log.debug(\"setEJBContext, ctx=\"+ctx);\n"
+" }\n"
+" \n"
+" public void invokeHome(Method m, Object[] args)\n"
+" throws SecurityException\n"
+" {\n"
+" // We don't validate access to home methods\n"
+" }\n"
+"\n"
+" public void invoke(Method m, Object[] args, Object bean)\n"
+" throws SecurityException\n"
+" {\n"
+" log.debug(\"invoke, m=\"+m);\n"
+" // Check for the echo method\n"
+" if (m.equals(echo)) {\n"
+" // Validate that the msg arg is not 4 letter word\n"
+" String arg = (String) args[0];\n"
+" if (arg == null || arg.length() == 4)\n"
+" throw new SecurityException(\"No 4 letter words\");\n"
+" }\n"
+" // We are not responsible for doing the invoke\n"
+" }\n"
+"}"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:474
@@ -1726,6 +2033,17 @@
" </enterprise-beans>\n"
"</jboss>"
msgstr ""
+"<jboss>\n"
+" <security-domain>java:/jaas/other</security-domain>\n"
+" \n"
+" <enterprise-beans>\n"
+" <session>\n"
+" <ejb-name>EchoBean</ejb-name>\n"
+" <security-proxy>org.jboss.book.security.ex1."
+"EchoSecurityProxy</security-proxy>\n"
+" </session>\n"
+" </enterprise-beans>\n"
+"</jboss>"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:482
@@ -1759,6 +2077,24 @@
" }\n"
"}"
msgstr ""
+"public class ExClient\n"
+"{\n"
+" public static void main(String args[])\n"
+" throws Exception\n"
+" {\n"
+" Logger log = Logger.getLogger(\"ExClient\");\n"
+" log.info(\"Looking up EchoBean\");\n"
+"\n"
+" InitialContext iniCtx = new InitialContext();\n"
+" Object ref = iniCtx.lookup(\"EchoBean\");\n"
+" EchoHome home = (EchoHome) ref;\n"
+" Echo echo = home.create();\n"
+"\n"
+" log.info(\"Created Echo\");\n"
+" log.info(\"Echo.echo('Hello') = \"+echo.echo(\"Hello\"));\n"
+" log.info(\"Echo.echo('Four') = \"+echo.echo(\"Four\"));\n"
+" }\n"
+"}"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:486
@@ -1787,6 +2123,19 @@
" [java] Caused by: java.lang.SecurityException: No 4 letter words\n"
"..."
msgstr ""
+"[examples]$ ant -Dchap=security -Dex=1 run-example\n"
+"run-example1:\n"
+"...\n"
+" [echo] Waiting for 5 seconds for deploy...\n"
+" [java] [INFO,ExClient] Looking up EchoBean\n"
+" [java] [INFO,ExClient] Created Echo\n"
+" [java] [INFO,ExClient] Echo.echo('Hello') = Hello\n"
+" [java] Exception in thread \"main\" java.rmi.AccessException: "
+"SecurityException; nested exception is: \n"
+" [java] java.lang.SecurityException: No 4 letter words\n"
+"...\n"
+" [java] Caused by: java.lang.SecurityException: No 4 letter words\n"
+"..."
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:490
@@ -2144,7 +2493,7 @@
#. Tag: programlisting
#: J2EE_Security_On_JBOSS.xml:612
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<jboss>\n"
" <!-- Configure all containers to be secured under the \"hades\" "
@@ -2153,9 +2502,12 @@
" <!-- ... -->\n"
"</jboss>"
msgstr ""
-"<jboss-web>\n"
-" <security-domain>java:/jaas/digest</security-domain>\n"
-"</jboss-web>"
+"<jboss>\n"
+" <!-- Configure all containers to be secured under the \"hades\" "
+"security domain -->\n"
+" <security-domain>java:/jaas/hades</security-domain>\n"
+" <!-- ... -->\n"
+"</jboss>"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:613
@@ -2310,6 +2662,12 @@
"String[] signature = {\"java.lang.String\"};\n"
"server.invoke(jaasMgr, \"flushAuthenticationCache\", params, signature);"
msgstr ""
+"MBeanServer server = ...;\n"
+"String jaasMgrName = \"jboss.security:service=JaasSecurityManager\";\n"
+"ObjectName jaasMgr = new ObjectName(jaasMgrName);\n"
+"Object[] params = {domainName};\n"
+"String[] signature = {\"java.lang.String\"};\n"
+"server.invoke(jaasMgr, \"flushAuthenticationCache\", params, signature);"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:666
@@ -2334,6 +2692,14 @@
"\", \n"
" params, signature);"
msgstr ""
+"MBeanServer server = ...;\n"
+"String jaasMgrName = \"jboss.security:service=JaasSecurityManager\";\n"
+"ObjectName jaasMgr = new ObjectName(jaasMgrName);\n"
+"Object[] params = {domainName};\n"
+"String[] signature = {\"java.lang.String\"};\n"
+"List users = (List) server.invoke(jaasMgr, \"getAuthenticationCachePrincipals"
+"\", \n"
+" params, signature);"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:673
@@ -2354,6 +2720,14 @@
"public Set getUserRoles(String securityDomain, Principal principal, Object "
"credential);"
msgstr ""
+"public boolean isValid(String securityDomain, Principal principal, Object "
+"credential);\n"
+"public Principal getPrincipal(String securityDomain, Principal principal);\n"
+"public boolean doesUserHaveRole(String securityDomain, Principal "
+"principal, \n"
+" Object credential, Set roles);\n"
+"public Set getUserRoles(String securityDomain, Principal principal, Object "
+"credential);"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:677
@@ -2578,6 +2952,17 @@
" </authentication>\n"
"</application-policy>"
msgstr ""
+"<application-policy name=\"jmx-console\">\n"
+" <authentication>\n"
+" <login-module code=\"org.jboss.security.auth.spi."
+"UsersRolesLoginModule\" flag=\"required\">\n"
+" <module-option name=\"usersProperties\">props/jmx-console-"
+"users.properties</module-option>\n"
+" <module-option name=\"rolesProperties\">props/jmx-console-"
+"roles.properties</module-option>\n"
+" </login-module>\n"
+" </authentication>\n"
+"</application-policy>"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:780
@@ -2667,6 +3052,20 @@
" </authentication>\n"
"</application-policy>"
msgstr ""
+"<application-policy name=\"todo\">\n"
+" <authentication>\n"
+" <login-module code=\"org.jboss.security.auth.spi.LdapLoginModule"
+"\" \n"
+" flag=\"sufficient\">\n"
+" <!-- LDAP configuration -->\n"
+" </login-module>\n"
+" <login-module code=\"org.jboss.security.auth.spi."
+"DatabaseServerLoginModule\" \n"
+" flag=\"sufficient\">\n"
+" <!-- database configuration -->\n"
+" </login-module>\n"
+" </authentication>\n"
+"</application-policy>"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:812
@@ -2705,6 +3104,11 @@
"attribute>\n"
"</mbean>"
msgstr ""
+"<mbean code=\"org.jboss.security.auth.login.XMLLoginConfig\"\n"
+" name=\"jboss.security:service=XMLLoginConfig\">\n"
+" <attribute name=\"ConfigResource\">login-config.xml</"
+"attribute>\n"
+"</mbean>"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:821
@@ -2822,6 +3226,11 @@
"service=XMLLoginConfig</attribute>\n"
" </mbean>"
msgstr ""
+"<mbean code=\"org.jboss.security.plugins.SecurityConfig\" \n"
+" name=\"jboss.security:service=SecurityConfig\">\n"
+" <attribute name=\"LoginConfig\">jboss.security:"
+"service=XMLLoginConfig</attribute>\n"
+" </mbean>"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:875
@@ -2863,6 +3272,8 @@
"public void pushLoginConfig(String objectName) throws\n"
" JMException, MalformedObjectNameException;"
msgstr ""
+"public void pushLoginConfig(String objectName) throws\n"
+" JMException, MalformedObjectNameException;"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:889
@@ -2877,7 +3288,7 @@
#: J2EE_Security_On_JBOSS.xml:892
#, no-c-format
msgid "public void popLoginConfig() throws JMException;"
-msgstr ""
+msgstr "public void popLoginConfig() throws JMException;"
#. Tag: title
#: J2EE_Security_On_JBOSS.xml:896
@@ -2973,6 +3384,27 @@
" </mbean>\n"
"</server>"
msgstr ""
+"<server>\n"
+" <mbean code=\"org.jboss.security.auth.login.DynamicLoginConfig\" name="
+"\"...\">\n"
+" <attribute name=\"AuthConfig\">login-config.xml</"
+"attribute>\n"
+"\n"
+" <!-- The service which supports dynamic processing of login-"
+"config.xml\n"
+" configurations.\n"
+" -->\n"
+" <depends optional-attribute-name=\"LoginConfigService\">\n"
+" jboss.security:service=XMLLoginConfig </depends>\n"
+"\n"
+" <!-- Optionally specify the security mgr service to use when\n"
+" this service is stopped to flush the auth caches of the domains\n"
+" registered by this service.\n"
+" -->\n"
+" <depends optional-attribute-name=\"SecurityManagerService\">\n"
+" jboss.security:service=JaasSecurityManager </depends>\n"
+" </mbean>\n"
+"</server>"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:924
@@ -3060,7 +3492,7 @@
#. Tag: programlisting
#: J2EE_Security_On_JBOSS.xml:952
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<application-policy name=\"todo\">\n"
" <authentication>\n"
@@ -3081,28 +3513,21 @@
" </authentication>\n"
"</application-policy>"
msgstr ""
-"<application-policy name=\"digest\">\n"
+"<application-policy name=\"todo\">\n"
" <authentication>\n"
+" <login-module code=\"org.jboss.security.auth.spi.LdapLoginModule"
+"\" \n"
+" flag=\"required\">\n"
+" <!-- LDAP configuration -->\n"
+" <module-option name=\"password-stacking\">useFirstPass</"
+"module-option>\n"
+" </login-module>\n"
" <login-module code=\"org.jboss.security.auth.spi."
-"UsersRolesLoginModule\"\n"
+"DatabaseServerLoginModule\" \n"
" flag=\"required\">\n"
-" <module-option name=\"usersProperties\">digest-users."
-"properties</module-option>\n"
-" <module-option name=\"rolesProperties\">digest-roles."
-"properties</module-option>\n"
-" <module-option name=\"hashAlgorithm\">MD5</module-"
-"option>\n"
-" <module-option name=\"hashEncoding\">rfc2617</module-"
-"option>\n"
-" <module-option name=\"hashUserPassword\">false</module-"
-"option>\n"
-" <module-option name=\"hashStorePassword\">true</module-"
-"option>\n"
-" <module-option name=\"passwordIsA1Hash\">true</module-"
-"option>\n"
-" <module-option name=\"storeDigestCallback\">\n"
-" org.jboss.security.auth.spi.RFC2617Digest\n"
-" </module-option>\n"
+" <!-- database configuration --> \n"
+" <module-option name=\"password-stacking\">useFirstPass</"
+"module-option>\n"
" </login-module>\n"
" </authentication>\n"
"</application-policy>"
@@ -3218,6 +3643,20 @@
" </application-policy>\n"
"</policy>"
msgstr ""
+"<policy>\n"
+" <application-policy name=\"testUsersRoles\">\n"
+" <authentication>\n"
+" <login-module code=\"org.jboss.security.auth.spi."
+"UsersRolesLoginModule\"\n"
+" flag=\"required\">\n"
+" <module-option name=\"hashAlgorithm\">MD5</module-"
+"option>\n"
+" <module-option name=\"hashEncoding\">base64</module-"
+"option> \n"
+" </login-module>\n"
+" </authentication>\n"
+" </application-policy>\n"
+"</policy>"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:994
@@ -3238,19 +3677,23 @@
" null,\n"
" \"password\");"
msgstr ""
+"String hashedPassword = Util.createPasswordHash(\"MD5\",\n"
+" Util.BASE64_ENCODING,\n"
+" null,\n"
+" null,\n"
+" \"password\");"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:998
#, no-c-format
-msgid ""
-"OpenSSL provides an alternative way to quickly generate hashed passwords."
+msgid "OpenSSL provides an alternative way to quickly generate hashed passwords."
msgstr ""
#. Tag: programlisting
#: J2EE_Security_On_JBOSS.xml:1001
#, no-c-format
msgid "echo -n password | openssl dgst -md5 -binary | openssl base64"
-msgstr ""
+msgstr "echo -n password | openssl dgst -md5 -binary | openssl base64"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:1002
@@ -3292,7 +3735,7 @@
#: J2EE_Security_On_JBOSS.xml:1022
#, no-c-format
msgid "UsersRolesLoginModule"
-msgstr ""
+msgstr "UsersRolesLoginModule"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:1023
@@ -3328,6 +3771,9 @@
"username2=password2\n"
"..."
msgstr ""
+"username1=password1\n"
+"username2=password2\n"
+"..."
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:1030
@@ -3345,6 +3791,9 @@
"username1.RoleGroup1=role3,role4,...\n"
"username2=role1,role3,..."
msgstr ""
+"username1=role1,role2,...\n"
+"username1.RoleGroup1=role3,role4,...\n"
+"username2=role1,role3,..."
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:1034
@@ -3374,6 +3823,8 @@
"jduke=TheDuke,AnimatedCharacter\n"
"jduke.Roles=TheDuke,AnimatedCharacter"
msgstr ""
+"jduke=TheDuke,AnimatedCharacter\n"
+"jduke.Roles=TheDuke,AnimatedCharacter"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:1041 J2EE_Security_On_JBOSS.xml:1101
@@ -3418,7 +3869,7 @@
#: J2EE_Security_On_JBOSS.xml:1062
#, no-c-format
msgid "LdapLoginModule"
-msgstr ""
+msgstr "LdapLoginModule"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:1063
@@ -3680,7 +4131,7 @@
#. Tag: programlisting
#: J2EE_Security_On_JBOSS.xml:1175
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<application-policy name=\"testLDAP\">\n"
" <authentication>\n"
@@ -3719,31 +4170,42 @@
" </authentication>\n"
" </application-policy>"
msgstr ""
-"<application-policy name=\"digest\">\n"
-" <authentication>\n"
-" <login-module code=\"org.jboss.security.auth.spi."
-"UsersRolesLoginModule\"\n"
-" flag=\"required\">\n"
-" <module-option name=\"usersProperties\">digest-users."
-"properties</module-option>\n"
-" <module-option name=\"rolesProperties\">digest-roles."
-"properties</module-option>\n"
-" <module-option name=\"hashAlgorithm\">MD5</module-"
+"<application-policy name=\"testLDAP\">\n"
+" <authentication>\n"
+" <login-module code=\"org.jboss.security.auth.spi."
+"LdapLoginModule\"\n"
+" flag=\"required\">\n"
+" <module-option name=\"java.naming.factory.initial\"> \n"
+" com.sun.jndi.ldap.LdapCtxFactory\n"
+" </module-option>\n"
+" <module-option name=\"java.naming.provider.url\">\n"
+" ldap://ldaphost.jboss.org:1389/\n"
+" </module-option>\n"
+" <module-option name=\"java.naming.security.authentication"
+"\">\n"
+" simple\n"
+" </module-option>\n"
+" <module-option name=\"principalDNPrefix\">uid=</"
+"module-option> \n"
+" <module-option name=\"principalDNSuffix\">\n"
+" ,ou=People,dc=jboss,dc=org\n"
+" </module-option>\n"
+"\n"
+" <module-option name=\"rolesCtxDN\">\n"
+" ou=Roles,dc=jboss,dc=org\n"
+" </module-option>\n"
+" <module-option name=\"uidAttributeID\">member</"
+"module-option>\n"
+" <module-option name=\"matchOnUserDN\">true</module-"
"option>\n"
-" <module-option name=\"hashEncoding\">rfc2617</module-"
+"\n"
+" <module-option name=\"roleAttributeID\">cn</module-"
"option>\n"
-" <module-option name=\"hashUserPassword\">false</module-"
-"option>\n"
-" <module-option name=\"hashStorePassword\">true</module-"
-"option>\n"
-" <module-option name=\"passwordIsA1Hash\">true</module-"
-"option>\n"
-" <module-option name=\"storeDigestCallback\">\n"
-" org.jboss.security.auth.spi.RFC2617Digest\n"
-" </module-option>\n"
-" </login-module>\n"
-" </authentication>\n"
-"</application-policy>"
+" <module-option name=\"roleAttributeIsDN\">false </"
+"module-option>\n"
+" </login-module>\n"
+" </authentication>\n"
+" </application-policy>"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:1176
@@ -3790,6 +4252,38 @@
"member: uid=jduke,ou=People,dc=jboss,dc=org\n"
"description: the JBossAdmin group"
msgstr ""
+"dn: dc=jboss,dc=org\n"
+"objectclass: top\n"
+"objectclass: dcObject\n"
+"objectclass: organization\n"
+"dc: jboss\n"
+"o: JBoss\n"
+"\n"
+"dn: ou=People,dc=jboss,dc=org\n"
+"objectclass: top\n"
+"objectclass: organizationalUnit\n"
+"ou: People\n"
+"\n"
+"dn: uid=jduke,ou=People,dc=jboss,dc=org\n"
+"objectclass: top\n"
+"objectclass: uidObject\n"
+"objectclass: person\n"
+"uid: jduke\n"
+"cn: Java Duke\n"
+"sn: Duke\n"
+"userPassword: theduke\n"
+"\n"
+"dn: ou=Roles,dc=jboss,dc=org\n"
+"objectclass: top\n"
+"objectclass: organizationalUnit\n"
+"ou: Roles\n"
+"\n"
+"dn: cn=JBossAdmin,ou=Roles,dc=jboss,dc=org\n"
+"objectclass: top\n"
+"objectclass: groupOfNames\n"
+"cn: JBossAdmin\n"
+"member: uid=jduke,ou=People,dc=jboss,dc=org\n"
+"description: the JBossAdmin group"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:1180
@@ -3873,7 +4367,7 @@
#: J2EE_Security_On_JBOSS.xml:1201
#, no-c-format
msgid "DatabaseServerLoginModule"
-msgstr ""
+msgstr "DatabaseServerLoginModule"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:1202
@@ -3893,6 +4387,8 @@
"Table Principals(PrincipalID text, Password text)\n"
"Table Roles(PrincipalID text, Role text, RoleGroup text)"
msgstr ""
+"Table Principals(PrincipalID text, Password text)\n"
+"Table Roles(PrincipalID text, Role text, RoleGroup text)"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:1206
@@ -3931,6 +4427,10 @@
"INSERT INTO Roles VALUES('java', 'caller_java', '"
"CallerPrincipal')"
msgstr ""
+"INSERT INTO Principals VALUES('java', 'echoman')\n"
+"INSERT INTO Roles VALUES('java', 'Echo', 'Roles')\n"
+"INSERT INTO Roles VALUES('java', 'caller_java', '"
+"CallerPrincipal')"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:1215
@@ -4000,6 +4500,8 @@
"CREATE TABLE Users(username VARCHAR(64) PRIMARY KEY, passwd VARCHAR(64))\n"
"CREATE TABLE UserRoles(username VARCHAR(64), userRoles VARCHAR(32))"
msgstr ""
+"CREATE TABLE Users(username VARCHAR(64) PRIMARY KEY, passwd VARCHAR(64))\n"
+"CREATE TABLE UserRoles(username VARCHAR(64), userRoles VARCHAR(32))"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:1244
@@ -4009,7 +4511,7 @@
#. Tag: programlisting
#: J2EE_Security_On_JBOSS.xml:1247
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<policy>\n"
" <application-policy name=\"testDB\">\n"
@@ -4030,31 +4532,24 @@
" </application-policy>\n"
"</policy>"
msgstr ""
-"<application-policy name=\"digest\">\n"
-" <authentication>\n"
-" <login-module code=\"org.jboss.security.auth.spi."
-"UsersRolesLoginModule\"\n"
-" flag=\"required\">\n"
-" <module-option name=\"usersProperties\">digest-users."
-"properties</module-option>\n"
-" <module-option name=\"rolesProperties\">digest-roles."
-"properties</module-option>\n"
-" <module-option name=\"hashAlgorithm\">MD5</module-"
-"option>\n"
-" <module-option name=\"hashEncoding\">rfc2617</module-"
-"option>\n"
-" <module-option name=\"hashUserPassword\">false</module-"
-"option>\n"
-" <module-option name=\"hashStorePassword\">true</module-"
-"option>\n"
-" <module-option name=\"passwordIsA1Hash\">true</module-"
-"option>\n"
-" <module-option name=\"storeDigestCallback\">\n"
-" org.jboss.security.auth.spi.RFC2617Digest\n"
-" </module-option>\n"
-" </login-module>\n"
-" </authentication>\n"
-"</application-policy>"
+"<policy>\n"
+" <application-policy name=\"testDB\">\n"
+" <authentication>\n"
+" <login-module code=\"org.jboss.security.auth.spi."
+"DatabaseServerLoginModule\"\n"
+" flag=\"required\">\n"
+" <module-option name=\"dsJndiName\">java:/"
+"MyDatabaseDS</module-option>\n"
+" <module-option name=\"principalsQuery\">\n"
+" select passwd from Users username where username=?</"
+"module-option>\n"
+" <module-option name=\"rolesQuery\">\n"
+" select userRoles, 'Roles' from UserRoles where "
+"username=?</module-option>\n"
+" </login-module>\n"
+" </authentication>\n"
+" </application-policy>\n"
+"</policy>"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:1248
@@ -4068,7 +4563,7 @@
#: J2EE_Security_On_JBOSS.xml:1254
#, no-c-format
msgid "BaseCertLoginModule"
-msgstr ""
+msgstr "BaseCertLoginModule"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:1255
@@ -4099,7 +4594,7 @@
#. Tag: programlisting
#: J2EE_Security_On_JBOSS.xml:1261
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<mbean code=\"org.jboss.security.plugins.JaasSecurityDomain\"\n"
" name=\"jboss.ch8:service=SecurityDomain\">\n"
@@ -4112,12 +4607,15 @@
"attribute>\n"
"</mbean>"
msgstr ""
-"<mbean code=\"org.jboss.ha.jndi.HANamingService\" \n"
-" name=\"jboss:service=HAJNDI\"> \n"
-" <depends>jboss:service=MySpecialPartition</depends> \n"
-" <attribute name=\"PartitionName\">MySpecialPartition</"
-"attribute> \n"
-" <attribute name=\"Port\">56789</attribute> \n"
+"<mbean code=\"org.jboss.security.plugins.JaasSecurityDomain\"\n"
+" name=\"jboss.ch8:service=SecurityDomain\">\n"
+" <constructor>\n"
+" <arg type=\"java.lang.String\" value=\"jmx-console\"/>\n"
+" </constructor>\n"
+" <attribute name=\"KeyStoreURL\">resource:localhost.keystore</"
+"attribute>\n"
+" <attribute name=\"KeyStorePass\">unit-tests-server</"
+"attribute>\n"
"</mbean>"
#. Tag: para
@@ -4169,6 +4667,36 @@
" </security-role>\n"
"</web-app>"
msgstr ""
+"<?xml version=\"1.0\"?>\n"
+"<!DOCTYPE web-app PUBLIC\n"
+" \"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+"\"\n"
+" \"http://java.sun.com/dtd/web-app_2_3.dtd\">\n"
+"<web-app> \n"
+" ... \n"
+" <security-constraint>\n"
+" <web-resource-collection>\n"
+" <web-resource-name>HtmlAdaptor</web-resource-name>\n"
+" <description>An example security config that only allows "
+"users with\n"
+" the role JBossAdmin to access the HTML JMX console web\n"
+" application </description>\n"
+" <url-pattern>/*</url-pattern>\n"
+" <http-method>GET</http-method>\n"
+" <http-method>POST</http-method>\n"
+" </web-resource-collection>\n"
+" <auth-constraint>\n"
+" <role-name>JBossAdmin</role-name>\n"
+" </auth-constraint>\n"
+" </security-constraint>\n"
+" <login-config>\n"
+" <auth-method>CLIENT-CERT</auth-method>\n"
+" <realm-name>JBoss JMX Console</realm-name>\n"
+" </login-config>\n"
+" <security-role>\n"
+" <role-name>JBossAdmin</role-name>\n"
+" </security-role>\n"
+"</web-app>"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:1266
@@ -4180,14 +4708,14 @@
#. Tag: programlisting
#: J2EE_Security_On_JBOSS.xml:1269
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<jboss-web>\n"
" <security-domain>java:/jaas/jmx-console</security-domain>\n"
"</jboss-web>"
msgstr ""
"<jboss-web>\n"
-" <security-domain>java:/jaas/digest</security-domain>\n"
+" <security-domain>java:/jaas/jmx-console</security-domain>\n"
"</jboss-web>"
#. Tag: para
@@ -4201,7 +4729,7 @@
#. Tag: programlisting
#: J2EE_Security_On_JBOSS.xml:1273
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<application-policy name=\"jmx-console\">\n"
" <authentication>\n"
@@ -4226,28 +4754,25 @@
" </authentication>\n"
"</application-policy>"
msgstr ""
-"<application-policy name=\"digest\">\n"
+"<application-policy name=\"jmx-console\">\n"
" <authentication>\n"
" <login-module code=\"org.jboss.security.auth.spi."
-"UsersRolesLoginModule\"\n"
+"BaseCertLoginModule\" \n"
" flag=\"required\">\n"
-" <module-option name=\"usersProperties\">digest-users."
+" <module-option name=\"password-stacking\">useFirstPass</"
+"module-option>\n"
+" <module-option name=\"securityDomain\">java:/jaas/jmx-"
+"console</module-option>\n"
+" </login-module>\n"
+" <login-module code=\"org.jboss.security.auth.spi."
+"UsersRolesLoginModule\" \n"
+" flag=\"required\">\n"
+" <module-option name=\"password-stacking\">useFirstPass</"
+"module-option>\n"
+" <module-option name=\"usersProperties\">jmx-console-users."
"properties</module-option>\n"
-" <module-option name=\"rolesProperties\">digest-roles."
+" <module-option name=\"rolesProperties\">jmx-console-roles."
"properties</module-option>\n"
-" <module-option name=\"hashAlgorithm\">MD5</module-"
-"option>\n"
-" <module-option name=\"hashEncoding\">rfc2617</module-"
-"option>\n"
-" <module-option name=\"hashUserPassword\">false</module-"
-"option>\n"
-" <module-option name=\"hashStorePassword\">true</module-"
-"option>\n"
-" <module-option name=\"passwordIsA1Hash\">true</module-"
-"option>\n"
-" <module-option name=\"storeDigestCallback\">\n"
-" org.jboss.security.auth.spi.RFC2617Digest\n"
-" </module-option>\n"
" </login-module>\n"
" </authentication>\n"
"</application-policy>"
@@ -4284,6 +4809,19 @@
" MD5: 4A:9C:2B:CD:1B:50:AA:85:DD:89:F6:1D:F5:AF:9E:AB\n"
" SHA1: DE:DE:86:59:05:6C:00:E8:CC:C0:16:D3:C2:68:BF:95:B8:83:E9:58"
msgstr ""
+"[starksm at banshee9100 conf]$ keytool -printcert -file unit-tests-client."
+"export\n"
+"Owner: CN=unit-tests-client, OU=JBoss Inc., O=JBoss Inc., ST=Washington, "
+"C=US\n"
+"Issuer: CN=jboss.com, C=US, ST=Washington, L=Snoqualmie Pass, "
+"EMAILADDRESS=admin\n"
+"@jboss.com, OU=QA, O=JBoss Inc.\n"
+"Serial number: 100103\n"
+"Valid from: Wed May 26 07:34:34 PDT 2004 until: Thu May 26 07:34:34 PDT "
+"2005\n"
+"Certificate fingerprints:\n"
+" MD5: 4A:9C:2B:CD:1B:50:AA:85:DD:89:F6:1D:F5:AF:9E:AB\n"
+" SHA1: DE:DE:86:59:05:6C:00:E8:CC:C0:16:D3:C2:68:BF:95:B8:83:E9:58"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:1278
@@ -4307,12 +4845,16 @@
"\\=Washington,\\ C\\=US=JBossAdmin\n"
"admin=JBossAdmin"
msgstr ""
+"# A sample roles.properties file for use with the UsersRolesLoginModule\n"
+"CN\\=unit-tests-client,\\ OU\\=JBoss\\ Inc.,\\ O\\=JBoss\\ Inc.,\\ ST"
+"\\=Washington,\\ C\\=US=JBossAdmin\n"
+"admin=JBossAdmin"
#. Tag: title
#: J2EE_Security_On_JBOSS.xml:1285
#, no-c-format
msgid "IdentityLoginModule"
-msgstr ""
+msgstr "IdentityLoginModule"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:1286
@@ -4385,6 +4927,20 @@
" </application-policy>\n"
"</policy>"
msgstr ""
+"<policy>\n"
+" <application-policy name=\"testIdentity\">\n"
+" <authentication>\n"
+" <login-module code=\"org.jboss.security.auth.spi."
+"IdentityLoginModule\"\n"
+" flag=\"required\">\n"
+" <module-option name=\"principal\">jduke</module-"
+"option>\n"
+" <module-option name=\"roles\">TheDuke,"
+"AnimatedCharater</module-option>\n"
+" </login-module>\n"
+" </authentication>\n"
+" </application-policy>\n"
+"</policy>"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:1308
@@ -4396,7 +4952,7 @@
#: J2EE_Security_On_JBOSS.xml:1314
#, no-c-format
msgid "RunAsLoginModule"
-msgstr ""
+msgstr "RunAsLoginModule"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:1315
@@ -4434,7 +4990,7 @@
#: J2EE_Security_On_JBOSS.xml:1331
#, no-c-format
msgid "ClientLoginModule"
-msgstr ""
+msgstr "ClientLoginModule"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:1332
@@ -4533,6 +5089,14 @@
" // Put your login modules that need jBoss here\n"
"};"
msgstr ""
+"other {\n"
+" // Put your login modules that work without jBoss here\n"
+" \n"
+" // jBoss LoginModule\n"
+" org.jboss.security.ClientLoginModule required;\n"
+" \n"
+" // Put your login modules that need jBoss here\n"
+"};"
#. Tag: title
#: J2EE_Security_On_JBOSS.xml:1367
@@ -4576,6 +5140,12 @@
"java.util.Set getPublicCredentials()\n"
"java.util.Set getPublicCredentials(java.lang.Class c)"
msgstr ""
+"java.util.Set getPrincipals()\n"
+"java.util.Set getPrincipals(java.lang.Class c)\n"
+"java.util.Set getPrivateCredentials()\n"
+"java.util.Set getPrivateCredentials(java.lang.Class c)\n"
+"java.util.Set getPublicCredentials()\n"
+"java.util.Set getPublicCredentials(java.lang.Class c)"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:1375
@@ -4757,6 +5327,104 @@
" abstract protected Group[] getRoleSets() throws LoginException;\n"
"}"
msgstr ""
+"package org.jboss.security.auth.spi;\n"
+"/**\n"
+" * This class implements the common functionality required for a JAAS\n"
+" * server-side LoginModule and implements the JBossSX standard\n"
+" * Subject usage pattern of storing identities and roles. Subclass\n"
+" * this module to create your own custom LoginModule and override the\n"
+" * login(), getRoleSets(), and getIdentity() methods.\n"
+" */\n"
+"public abstract class AbstractServerLoginModule\n"
+" implements javax.security.auth.spi.LoginModule\n"
+"{\n"
+" protected Subject subject;\n"
+" protected CallbackHandler callbackHandler;\n"
+" protected Map sharedState;\n"
+" protected Map options;\n"
+" protected Logger log;\n"
+"\n"
+" /** Flag indicating if the shared credential should be used */\n"
+" protected boolean useFirstPass;\n"
+" /** \n"
+" * Flag indicating if the login phase succeeded. Subclasses that\n"
+" * override the login method must set this to true on successful\n"
+" * completion of login\n"
+" */\n"
+" protected boolean loginOk;\n"
+" \n"
+" // ...\n"
+" /**\n"
+" * Initialize the login module. This stores the subject,\n"
+" * callbackHandler and sharedState and options for the login\n"
+" * session. Subclasses should override if they need to process\n"
+" * their own options. A call to super.initialize(...) must be\n"
+" * made in the case of an override.\n"
+" *\n"
+" * <p>\n"
+" * The options are checked for the <em>password-stacking</"
+"em> parameter.\n"
+" * If this is set to \"useFirstPass\", the login identity will be taken "
+"from the\n"
+" * <code>javax.security.auth.login.name</code> value of the "
+"sharedState map,\n"
+" * and the proof of identity from the\n"
+" * <code>javax.security.auth.login.password</code> value of "
+"the sharedState map.\n"
+" *\n"
+" * @param subject the Subject to update after a successful login.\n"
+" * @param callbackHandler the CallbackHandler that will be used to "
+"obtain the\n"
+" * the user identity and credentials.\n"
+" * @param sharedState a Map shared between all configured login module "
+"instances\n"
+" * @param options the parameters passed to the login module.\n"
+" */\n"
+" public void initialize(Subject subject,\n"
+" CallbackHandler callbackHandler,\n"
+" Map sharedState,\n"
+" Map options)\n"
+" {\n"
+" // ...\n"
+" }\n"
+" \n"
+"\n"
+" /**\n"
+" * Looks for javax.security.auth.login.name and\n"
+" * javax.security.auth.login.password values in the sharedState\n"
+" * map if the useFirstPass option was true and returns true if\n"
+" * they exist. If they do not or are null this method returns\n"
+" * false. \n"
+" * Note that subclasses that override the login method\n"
+" * must set the loginOk var to true if the login succeeds in\n"
+" * order for the commit phase to populate the Subject. This\n"
+" * implementation sets loginOk to true if the login() method\n"
+" * returns true, otherwise, it sets loginOk to false.\n"
+" */\n"
+" public boolean login() \n"
+" throws LoginException\n"
+" {\n"
+" // ...\n"
+" }\n"
+" \n"
+" /**\n"
+" * Overridden by subclasses to return the Principal that\n"
+" * corresponds to the user primary identity.\n"
+" */\n"
+" abstract protected Principal getIdentity();\n"
+" \n"
+" /**\n"
+" * Overridden by subclasses to return the Groups that correspond\n"
+" * to the role sets assigned to the user. Subclasses should\n"
+" * create at least a Group named \"Roles\" that contains the roles\n"
+" * assigned to the user. A second common group is\n"
+" * \"CallerPrincipal,\" which provides the application identity of\n"
+" * the user rather than the security domain identity.\n"
+" * \n"
+" * @return Group[] containing the sets of roles\n"
+" */\n"
+" abstract protected Group[] getRoleSets() throws LoginException;\n"
+"}"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:1396
@@ -4883,6 +5551,97 @@
" throws LoginException;\n"
"}"
msgstr ""
+"package org.jboss.security.auth.spi;\n"
+"\n"
+"/**\n"
+" * An abstract subclass of AbstractServerLoginModule that imposes a\n"
+" * an identity == String username, credentials == String password\n"
+" * view on the login process. Subclasses override the\n"
+" * getUsersPassword() and getUsersRoles() methods to return the\n"
+" * expected password and roles for the user.\n"
+" */\n"
+"public abstract class UsernamePasswordLoginModule\n"
+" extends AbstractServerLoginModule\n"
+"{\n"
+" /** The login identity */\n"
+" private Principal identity;\n"
+" /** The proof of login identity */\n"
+" private char[] credential;\n"
+" /** The principal to use when a null username and password are seen */\n"
+" private Principal unauthenticatedIdentity;\n"
+"\n"
+" /**\n"
+" * The message digest algorithm used to hash passwords. If null then\n"
+" * plain passwords will be used. */\n"
+" private String hashAlgorithm = null;\n"
+"\n"
+" /**\n"
+" * The name of the charset/encoding to use when converting the\n"
+" * password String to a byte array. Default is the platform's\n"
+" * default encoding.\n"
+" */\n"
+" private String hashCharset = null;\n"
+"\n"
+" /** The string encoding format to use. Defaults to base64. */\n"
+" private String hashEncoding = null;\n"
+" \n"
+" // ...\n"
+" \n"
+" /** \n"
+" * Override the superclass method to look for an\n"
+" * unauthenticatedIdentity property. This method first invokes\n"
+" * the super version.\n"
+" *\n"
+" * @param options,\n"
+" * @option unauthenticatedIdentity: the name of the principal to\n"
+" * assign and authenticate when a null username and password are\n"
+" * seen.\n"
+" */\n"
+" public void initialize(Subject subject,\n"
+" CallbackHandler callbackHandler,\n"
+" Map sharedState,\n"
+" Map options)\n"
+" {\n"
+" super.initialize(subject, callbackHandler, sharedState,\n"
+" options);\n"
+" // Check for unauthenticatedIdentity option.\n"
+" Object option = options.get(\"unauthenticatedIdentity\");\n"
+" String name = (String) option;\n"
+" if (name != null) {\n"
+" unauthenticatedIdentity = new SimplePrincipal(name);\n"
+" }\n"
+" }\n"
+" \n"
+" // ...\n"
+" \n"
+" /**\n"
+" * A hook that allows subclasses to change the validation of the\n"
+" * input password against the expected password. This version\n"
+" * checks that neither inputPassword or expectedPassword are null\n"
+" * and that inputPassword.equals(expectedPassword) is true;\n"
+" *\n"
+" * @return true if the inputPassword is valid, false otherwise.\n"
+" */\n"
+" protected boolean validatePassword(String inputPassword,\n"
+" String expectedPassword)\n"
+" {\n"
+" if (inputPassword == null || expectedPassword == null) {\n"
+" return false;\n"
+" }\n"
+" return inputPassword.equals(expectedPassword);\n"
+" }\n"
+" \n"
+" /**\n"
+" * Get the expected password for the current username available\n"
+" * via the getUsername() method. This is called from within the\n"
+" * login() method after the CallbackHandler has returned the\n"
+" * username and candidate password.\n"
+" *\n"
+" * @return the valid password String\n"
+" */\n"
+" abstract protected String getUsersPassword()\n"
+" throws LoginException;\n"
+"}"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:1403
@@ -5115,6 +5874,98 @@
" } \n"
"}"
msgstr ""
+"package org.jboss.book.security.ex2;\n"
+" \n"
+"import java.security.acl.Group;\n"
+"import java.util.Map;\n"
+"import javax.naming.InitialContext;\n"
+"import javax.naming.NamingException;\n"
+"import javax.security.auth.Subject;\n"
+"import javax.security.auth.callback.CallbackHandler;\n"
+"import javax.security.auth.login.LoginException;\n"
+"\n"
+"import org.jboss.security.SimpleGroup;\n"
+"import org.jboss.security.SimplePrincipal;\n"
+"import org.jboss.security.auth.spi.UsernamePasswordLoginModule;\n"
+"\n"
+"/** \n"
+" * An example custom login module that obtains passwords and roles\n"
+" * for a user from a JNDI lookup.\n"
+" * \n"
+" * @author Scott.Stark at jboss.org\n"
+" * @version $Revision: 1.4 $\n"
+"*/\n"
+"public class JndiUserAndPass \n"
+" extends UsernamePasswordLoginModule\n"
+"{\n"
+" /** The JNDI name to the context that handles the password/username "
+"lookup */\n"
+" private String userPathPrefix;\n"
+" /** The JNDI name to the context that handles the roles/ username lookup "
+"*/\n"
+" private String rolesPathPrefix;\n"
+" \n"
+" /**\n"
+" * Override to obtain the userPathPrefix and rolesPathPrefix options.\n"
+" */\n"
+" public void initialize(Subject subject, CallbackHandler "
+"callbackHandler,\n"
+" Map sharedState, Map options)\n"
+" {\n"
+" super.initialize(subject, callbackHandler, sharedState, options);\n"
+" userPathPrefix = (String) options.get(\"userPathPrefix\");\n"
+" rolesPathPrefix = (String) options.get(\"rolesPathPrefix\");\n"
+" }\n"
+" \n"
+" /**\n"
+" * Get the roles the current user belongs to by querying the\n"
+" * rolesPathPrefix + '/' + super.getUsername() JNDI location.\n"
+" */\n"
+" protected Group[] getRoleSets() throws LoginException\n"
+" {\n"
+" try {\n"
+" InitialContext ctx = new InitialContext();\n"
+" String rolesPath = rolesPathPrefix + '/' + super."
+"getUsername();\n"
+"\n"
+" String[] roles = (String[]) ctx.lookup(rolesPath);\n"
+" Group[] groups = {new SimpleGroup(\"Roles\")};\n"
+" log.info(\"Getting roles for user=\"+super.getUsername());\n"
+" for(int r = 0; r < roles.length; r ++) {\n"
+" SimplePrincipal role = new SimplePrincipal(roles[r]);\n"
+" log.info(\"Found role=\"+roles[r]);\n"
+" groups[0].addMember(role);\n"
+" }\n"
+" return groups;\n"
+" } catch(NamingException e) {\n"
+" log.error(\"Failed to obtain groups for\n"
+" user=\"+super.getUsername(), e);\n"
+" throw new LoginException(e.toString(true));\n"
+" }\n"
+" }\n"
+" \n"
+" /** \n"
+" * Get the password of the current user by querying the\n"
+" * userPathPrefix + '/' + super.getUsername() JNDI location.\n"
+" */\n"
+" protected String getUsersPassword() \n"
+" throws LoginException\n"
+" {\n"
+" try {\n"
+" InitialContext ctx = new InitialContext();\n"
+" String userPath = userPathPrefix + '/' + super."
+"getUsername();\n"
+" log.info(\"Getting password for user=\"+super.getUsername());\n"
+" String passwd = (String) ctx.lookup(userPath);\n"
+" log.info(\"Found password=\"+passwd);\n"
+" return passwd;\n"
+" } catch(NamingException e) {\n"
+" log.error(\"Failed to obtain password for\n"
+" user=\"+super.getUsername(), e);\n"
+" throw new LoginException(e.toString(true));\n"
+" }\n"
+" } \n"
+"}"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:1466
@@ -5156,6 +6007,14 @@
" [java] [INFO,ExClient] Created Echo\n"
" [java] [INFO,ExClient] Echo.echo('Hello') = Hello"
msgstr ""
+"[examples]$ ant -Dchap=security -Dex=2 run-example\n"
+"...\n"
+"run-example2:\n"
+" [echo] Waiting for 5 seconds for deploy...\n"
+" [java] [INFO,ExClient] Login with username=jduke, password=theduke\n"
+" [java] [INFO,ExClient] Looking up EchoBean2\n"
+" [java] [INFO,ExClient] Created Echo\n"
+" [java] [INFO,ExClient] Echo.echo('Hello') = Hello"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:1473
@@ -5169,16 +6028,17 @@
#. Tag: programlisting
#: J2EE_Security_On_JBOSS.xml:1476
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<?xml version=\"1.0\"?>\n"
"<jboss>\n"
" <security-domain>java:/jaas/security-ex2</security-domain>\n"
"</jboss>"
msgstr ""
-"<jboss-web>\n"
-" <security-domain>java:/jaas/digest</security-domain>\n"
-"</jboss-web>"
+"<?xml version=\"1.0\"?>\n"
+"<jboss>\n"
+" <security-domain>java:/jaas/security-ex2</security-domain>\n"
+"</jboss>"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:1477
@@ -5205,6 +6065,18 @@
" </authentication>\n"
"</application-policy>"
msgstr ""
+"<application-policy name = \"security-ex2\">\n"
+" <authentication>\n"
+" <login-module code=\"org.jboss.book.security.ex2.JndiUserAndPass"
+"\"\n"
+" flag=\"required\">\n"
+" <module-option name = \"userPathPrefix\">/security/store/"
+"password</module-option>\n"
+" <module-option name = \"rolesPathPrefix\">/security/store/"
+"roles</module-option>\n"
+" </login-module>\n"
+" </authentication>\n"
+"</application-policy>"
#. Tag: title
#: J2EE_Security_On_JBOSS.xml:1488
@@ -5453,6 +6325,15 @@
" ;\n"
"};"
msgstr ""
+"srp {\n"
+" org.jboss.security.srp.jaas.SRPLoginModule required\n"
+" srpServerJndiName=\"SRPServerInterface\"\n"
+" ;\n"
+" \n"
+" org.jboss.security.ClientLoginModule required\n"
+" password-stacking=\"useFirstPass\"\n"
+" ;\n"
+"};"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:1587
@@ -5641,6 +6522,8 @@
"public void addUser(String username, String password) throws IOException;\n"
"public void delUser(String username) throws IOException;"
msgstr ""
+"public void addUser(String username, String password) throws IOException;\n"
+"public void delUser(String username) throws IOException;"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:1661
@@ -5731,6 +6614,57 @@
" throws SecurityException;\n"
"}"
msgstr ""
+"package org.jboss.security.srp;\n"
+"\n"
+"import java.io.IOException;\n"
+"import java.io.Serializable;\n"
+"import java.security.KeyException;\n"
+"\n"
+"public interface SRPVerifierStore\n"
+"{\n"
+" public static class VerifierInfo implements Serializable\n"
+" {\n"
+" /**\n"
+" * The username the information applies to. Perhaps redundant\n"
+" * but it makes the object self contained.\n"
+" */\n"
+" public String username;\n"
+"\n"
+" /** The SRP password verifier hash */\n"
+" public byte[] verifier;\n"
+" /** The random password salt originally used to verify the password "
+"*/\n"
+" public byte[] salt;\n"
+" /** The SRP algorithm primitive generator */\n"
+" public byte[] g;\n"
+" /** The algorithm safe-prime modulus */\n"
+" public byte[] N;\n"
+" }\n"
+" \n"
+" /**\n"
+" * Get the indicated user's password verifier information.\n"
+" */\n"
+" public VerifierInfo getUserVerifier(String username)\n"
+" throws KeyException, IOException;\n"
+" /** \n"
+" * Set the indicated users' password verifier information. This\n"
+" * is equivalent to changing a user's password and should\n"
+" * generally invalidate any existing SRP sessions and caches.\n"
+" */\n"
+" public void setUserVerifier(String username, VerifierInfo info)\n"
+" throws IOException;\n"
+"\n"
+" /** \n"
+" * Verify an optional auxiliary challenge sent from the client to\n"
+" * the server. The auxChallenge object will have been decrypted\n"
+" * if it was sent encrypted from the client. An example of a\n"
+" * auxiliary challenge would be the validation of a hardware token\n"
+" * (SafeWord, SecureID, iButton) that the server validates to\n"
+" * further strengthen the SRP password exchange.\n"
+" */\n"
+" public void verifyUserChallenge(String username, Object auxChallenge)\n"
+" throws SecurityException;\n"
+"}"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:1671
@@ -6021,7 +6955,7 @@
#: J2EE_Security_On_JBOSS.xml:1782
#, no-c-format
msgid "An SRP example"
-msgstr ""
+msgstr "Un ejemplo SRP"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:1783
@@ -6059,6 +6993,16 @@
"users.properties\n"
"security-ex3.sar"
msgstr ""
+"[examples]$ jar tf output/security/security-ex3.jar \n"
+"META-INF/MANIFEST.MF\n"
+"META-INF/ejb-jar.xml\n"
+"META-INF/jboss.xml\n"
+"org/jboss/book/security/ex3/Echo.class\n"
+"org/jboss/book/security/ex3/EchoBean.class\n"
+"org/jboss/book/security/ex3/EchoHome.class\n"
+"roles.properties\n"
+"users.properties\n"
+"security-ex3.sar"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:1787
@@ -6125,6 +7069,45 @@
" </mbean>\n"
"</server>"
msgstr ""
+"<server>\n"
+" <!-- The custom JAAS login configuration that installs\n"
+" a Configuration capable of dynamically updating the\n"
+" config settings -->\n"
+"\n"
+" <mbean code=\"org.jboss.book.security.service.SecurityConfig\" \n"
+" name=\"jboss.docs.security:service=LoginConfig-EX3\">\n"
+" <attribute name=\"AuthConfig\">META-INF/login-config.xml</"
+"attribute>\n"
+" <attribute name=\"SecurityConfigName\">jboss.security:"
+"name=SecurityConfig</attribute>\n"
+" </mbean>\n"
+"\n"
+" <!-- The SRP service that provides the SRP RMI server and server "
+"side\n"
+" authentication cache -->\n"
+" <mbean code=\"org.jboss.security.srp.SRPService\" \n"
+" name=\"jboss.docs.security:service=SRPService\">\n"
+" <attribute name=\"VerifierSourceJndiName\">srp-test/security-"
+"ex3</attribute>\n"
+" <attribute name=\"JndiName\">srp-test/SRPServerInterface</"
+"attribute>\n"
+" <attribute name=\"AuthenticationCacheJndiName\">srp-test/"
+"AuthenticationCache</attribute>\n"
+" <attribute name=\"ServerPort\">0</attribute>\n"
+" <depends>jboss.docs.security:"
+"service=PropertiesVerifierStore</depends>\n"
+" </mbean>\n"
+"\n"
+" <!-- The SRP store handler service that provides the user password "
+"verifier\n"
+" information -->\n"
+" <mbean code=\"org.jboss.security.ex3.service.PropertiesVerifierStore"
+"\"\n"
+" name=\"jboss.docs.security:service=PropertiesVerifierStore\">\n"
+" <attribute name=\"JndiName\">srp-test/security-ex3</"
+"attribute>\n"
+" </mbean>\n"
+"</server>"
#. Tag: title
#: J2EE_Security_On_JBOSS.xml:1792
@@ -6146,6 +7129,15 @@
" ;\n"
"};"
msgstr ""
+"srp {\n"
+" org.jboss.security.srp.jaas.SRPLoginModule required\n"
+" srpServerJndiName=\"srp-test/SRPServerInterface\"\n"
+" ;\n"
+" \n"
+" org.jboss.security.ClientLoginModule required\n"
+" password-stacking=\"useFirstPass\"\n"
+" ;\n"
+"};"
#. Tag: title
#: J2EE_Security_On_JBOSS.xml:1794
@@ -6174,6 +7166,22 @@
" </authentication>\n"
"</application-policy>"
msgstr ""
+"<application-policy name=\"security-ex3\">\n"
+" <authentication>\n"
+" <login-module code=\"org.jboss.security.srp.jaas."
+"SRPCacheLoginModule\"\n"
+" flag = \"required\">\n"
+" <module-option name=\"cacheJndiName\">srp-test/"
+"AuthenticationCache</module-option>\n"
+" </login-module>\n"
+" <login-module code=\"org.jboss.security.auth.spi."
+"UsersRolesLoginModule\"\n"
+" flag = \"required\">\n"
+" <module-option name=\"password-stacking\">useFirstPass</"
+"module-option>\n"
+" </login-module>\n"
+" </authentication>\n"
+"</application-policy>"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:1796
@@ -6252,6 +7260,14 @@
" [java] Echo.echo()#1 = This is call 1\n"
" [java] Echo.echo()#2 = This is call 2"
msgstr ""
+"[examples]$ ant -Dchap=security -Dex=3 run-example\n"
+"...\n"
+"run-example3:\n"
+" [echo] Waiting for 5 seconds for deploy...\n"
+" [java] Logging in using the 'srp' configuration\n"
+" [java] Created Echo\n"
+" [java] Echo.echo()#1 = This is call 1\n"
+" [java] Echo.echo()#2 = This is call 2"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:1809
@@ -6357,6 +7373,10 @@
" permission java.security.AllPermission;\n"
"};"
msgstr ""
+"grant {\n"
+" // Allow everything for now\n"
+" permission java.security.AllPermission;\n"
+"};"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:1845
@@ -6379,7 +7399,7 @@
#: J2EE_Security_On_JBOSS.xml:1854
#, no-c-format
msgid "TargetName"
-msgstr ""
+msgstr "TargetName"
#. Tag: entry
#: J2EE_Security_On_JBOSS.xml:1857
@@ -6391,13 +7411,13 @@
#: J2EE_Security_On_JBOSS.xml:1860
#, no-c-format
msgid "Risks"
-msgstr ""
+msgstr "Riesgos"
#. Tag: entry
#: J2EE_Security_On_JBOSS.xml:1867
#, no-c-format
msgid "org.jboss.security.SecurityAssociation.getPrincipalInfo"
-msgstr ""
+msgstr "org.jboss.security.SecurityAssociation.getPrincipalInfo"
#. Tag: entry
#: J2EE_Security_On_JBOSS.xml:1870
@@ -6417,7 +7437,7 @@
#: J2EE_Security_On_JBOSS.xml:1878
#, no-c-format
msgid "org.jboss.security.SecurityAssociation.setPrincipalInfo"
-msgstr ""
+msgstr "org.jboss.security.SecurityAssociation.setPrincipalInfo"
#. Tag: entry
#: J2EE_Security_On_JBOSS.xml:1881
@@ -6437,7 +7457,7 @@
#: J2EE_Security_On_JBOSS.xml:1889
#, no-c-format
msgid "org.jboss.security.SecurityAssociation.setServer"
-msgstr ""
+msgstr "org.jboss.security.SecurityAssociation.setServer"
#. Tag: entry
#: J2EE_Security_On_JBOSS.xml:1892
@@ -6457,7 +7477,7 @@
#: J2EE_Security_On_JBOSS.xml:1900
#, no-c-format
msgid "org.jboss.security.SecurityAssociation.setRunAsRole"
-msgstr ""
+msgstr "org.jboss.security.SecurityAssociation.setRunAsRole"
#. Tag: entry
#: J2EE_Security_On_JBOSS.xml:1903
@@ -6508,6 +7528,25 @@
"\n"
"Note: Separate multiple options with a comma"
msgstr ""
+"[bin]$ java -Djava.security.debug=help\n"
+" \n"
+"all turn on all debugging\n"
+"access print all checkPermission results\n"
+"combiner SubjectDomainCombiner debugging\n"
+"jar jar verification\n"
+"logincontext login context results\n"
+"policy loading and granting\n"
+"provider security provider debugging\n"
+"scl permissions SecureClassLoader assigns\n"
+"\n"
+"The following can be used with access:\n"
+"\n"
+"stack include stack trace\n"
+"domain dumps all domains in context\n"
+"failure before throwing exception, dump stack\n"
+" and domain that didn't have permission\n"
+"\n"
+"Note: Separate multiple options with a comma"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:1916
@@ -6526,7 +7565,7 @@
#: J2EE_Security_On_JBOSS.xml:1922
#, no-c-format
msgid "Using SSL with JBoss"
-msgstr ""
+msgstr "Uso de SSL con JBoss"
#. Tag: title
#: J2EE_Security_On_JBOSS.xml:1924
@@ -6604,6 +7643,10 @@
" Enter keystore password: opensource\n"
" Certificate stored in file <mycert.cer>"
msgstr ""
+"$ keytool -export -alias ejb3-ssl -file mycert.cer -keystore localhost."
+"keystore\n"
+" Enter keystore password: opensource\n"
+" Certificate stored in file <mycert.cer>"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:1939
@@ -6634,6 +7677,22 @@
" Trust this certificate? [no]: yes\n"
" Certificate was added to keystore"
msgstr ""
+"$ keytool -import -alias ejb3-ssl -file mycert.cer -keystore localhost."
+"truststore\n"
+" Enter keystore password: opensource\n"
+" Owner: CN=Unknown, OU=Unknown, O=Unknown, L=Unknown, ST=Unknown, "
+"C=Unknown\n"
+" Issuer: CN=Unknown, OU=Unknown, O=Unknown, L=Unknown, ST=Unknown, "
+"C=Unknown\n"
+" Serial number: 43bff927\n"
+" Valid from: Sat Jan 07 18:23:51 CET 2006 until: Fri Apr 07 19:23:51 CEST "
+"2006\n"
+" Certificate fingerprints:\n"
+" MD5: CF:DC:71:A8:F4:EA:8F:5A:E9:94:E3:E6:5B:A9:C8:F3\n"
+" SHA1: 0E:AD:F3:D6:41:5E:F6:84:9A:D1:54:3D:DE:A9:B2:01:28:"
+"F6:7C:26\n"
+" Trust this certificate? [no]: yes\n"
+" Certificate was added to keystore"
#. Tag: title
#: J2EE_Security_On_JBOSS.xml:1945 J2EE_Security_On_JBOSS.xml:1989
@@ -6670,6 +7729,21 @@
" </attribute>\n"
" </mbean>"
msgstr ""
+"<mbean code=\"org.jboss.remoting.transport.Connector\"\n"
+" xmbean-dd=\"org/jboss/remoting/transport/Connector.xml\"\n"
+" name=\"jboss.remoting:type=Connector,transport=socket3843,handler=ejb3"
+"\">\n"
+" <depends>jboss.aop:service=AspectDeployer</depends>\n"
+" <attribute name=\"InvokerLocator\">sslsocket://0.0.0.0:3843</"
+"attribute>\n"
+" <attribute name=\"Configuration\">\n"
+" <handlers>\n"
+" <handler subsystem=\"AOP\">\n"
+" org.jboss.aspects.remoting.AOPRemotingInvocationHandler\n"
+" </handler>\n"
+" </handlers>\n"
+" </attribute>\n"
+" </mbean>"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:1950 J2EE_Security_On_JBOSS.xml:1990
@@ -6691,6 +7765,10 @@
"keystore \n"
" -Djavax.net.ssl.keyStorePassword=opensource"
msgstr ""
+"$cd $JBOSS_HOME/bin\n"
+" $ run -Djavax.net.ssl.keyStore=../server/production/conf/localhost."
+"keystore \n"
+" -Djavax.net.ssl.keyStorePassword=opensource"
#. Tag: title
#: J2EE_Security_On_JBOSS.xml:1956 J2EE_Security_On_JBOSS.xml:2001
@@ -6720,6 +7798,13 @@
" ...\n"
" }"
msgstr ""
+"@RemoteBinding(clientBindUrl=\"sslsocket://0.0.0.0:3843\", jndiBinding="
+"\"StatefulSSL\"),\n"
+" @Remote(BusinessInterface.class)\n"
+" public class StatefulBean implements BusinessInterface\n"
+" {\n"
+" ...\n"
+" }"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:1961
@@ -6751,6 +7836,16 @@
" ...\n"
" }"
msgstr ""
+"@RemoteBindings({\n"
+" @RemoteBinding(clientBindUrl=\"sslsocket://0.0.0.0:3843\", jndiBinding="
+"\"StatefulSSL\"),\n"
+" @RemoteBinding(jndiBinding=\"StatefulNormal\")\n"
+" })\n"
+" @Remote(BusinessInterface.class)\n"
+" public class StatefulBean implements BusinessInterface\n"
+" {\n"
+" ...\n"
+" }"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:1968
@@ -6786,6 +7881,8 @@
"java -Djavax.net.ssl.trustStore=${resources}/test/ssl/localhost.truststore\n"
" -Djavax.net.ssl.trustStorePassword=opensource com.acme.RunClient"
msgstr ""
+"java -Djavax.net.ssl.trustStore=${resources}/test/ssl/localhost.truststore\n"
+" -Djavax.net.ssl.trustStorePassword=opensource com.acme.RunClient"
#. Tag: title
#: J2EE_Security_On_JBOSS.xml:1981
@@ -6849,6 +7946,42 @@
" <attribute name=\"KeyStoreType\">JKS</attribute>\n"
" </mbean>"
msgstr ""
+"<!-- This section is for custom (SSL) server socket factory -->\n"
+" <mbean code=\"org.jboss.remoting.security.SSLSocketBuilder\"\n"
+" name=\"jboss.remoting:service=SocketBuilder,type=SSL\"\n"
+" display-name=\"SSL Server Socket Factory Builder\">\n"
+" <!-- IMPORTANT - If making ANY customizations, this MUST be set to "
+"false. -->\n"
+" <!-- Otherwise, will used default settings and the following "
+"attributes will be ignored. -->\n"
+" <attribute name=\"UseSSLServerSocketFactory\">false</"
+"attribute>\n"
+" <!-- This is the url string to the key store to use -->\n"
+" <attribute name=\"KeyStoreURL\">localhost.keystore</"
+"attribute>\n"
+" <!-- The password for the key store -->\n"
+" <attribute name=\"KeyStorePassword\">sslsocket</"
+"attribute>\n"
+" <!-- The password for the keys (will use KeystorePassword if this "
+"is not set explicitly. -->\n"
+" <attribute name=\"KeyPassword\">sslsocket</attribute>\n"
+" <!-- The protocol for the SSLContext. Default is TLS. -->\n"
+" <attribute name=\"SecureSocketProtocol\">TLS</attribute>\n"
+" <!-- The algorithm for the key manager factory. Default is "
+"SunX509. -->\n"
+" <attribute name=\"KeyManagementAlgorithm\">SunX509</"
+"attribute>\n"
+" <!-- The type to be used for the key store. -->\n"
+" <!-- Defaults to JKS. Some acceptable values are JKS (Java "
+"Keystore - Sun's keystore format), -->\n"
+" <!-- JCEKS (Java Cryptography Extension keystore - More secure "
+"version of JKS), and -->\n"
+" <!-- PKCS12 (Public-Key Cryptography Standards #12 \n"
+" keystore - RSA's Personal Information Exchange Syntax "
+"Standard). -->\n"
+" <!-- These are not case sensitive. -->\n"
+" <attribute name=\"KeyStoreType\">JKS</attribute>\n"
+" </mbean>"
#. Tag: programlisting
#: J2EE_Security_On_JBOSS.xml:1997
@@ -6863,6 +7996,14 @@
"type=SSL</depends>\n"
" </mbean>"
msgstr ""
+"<mbean code=\"org.jboss.remoting.security.SSLServerSocketFactoryService"
+"\"\n"
+" name=\"jboss.remoting:service=ServerSocketFactory,type=SSL\"\n"
+" display-name=\"SSL Server Socket Factory\">\n"
+" <depends optional-attribute-name=\"SSLSocketBuilder\"\n"
+" proxy-type=\"attribute\">jboss.remoting:service=SocketBuilder,"
+"type=SSL</depends>\n"
+" </mbean>"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:2002
@@ -7026,6 +8167,36 @@
" <depends>jboss.remoting:service=NetworkRegistry</depends>\n"
" </mbean>"
msgstr ""
+"<mbean code=\"org.jboss.remoting.transport.Connector\"\n"
+" xmbean-dd=\"org/jboss/remoting/transport/Connector.xml\"\n"
+" name=\"jboss.remoting:service=Connector,transport=sslsocket\"> \n"
+" display-name=\"SSL Socket transport Connector\">\n"
+"\n"
+" <attribute name=\"Configuration\">\n"
+" <config>\n"
+" <invoker transport=\"sslsocket\">\n"
+" <attribute name=\"serverSocketFactory\">\n"
+" jboss.remoting:service=ServerSocketFactory,type=SSL\n"
+" </attribute>\n"
+" <attribute name=\"serverBindAddress\">${jboss.bind."
+"address}</attribute>\n"
+" <attribute name=\"serverBindPort\">3843</"
+"attribute>\n"
+" </invoker>\n"
+" <handlers>\n"
+" <handler subsystem=\"invoker\">jboss:service=invoker,"
+"type=unified</handler> \n"
+" </handlers>\n"
+" </config>\n"
+" </attribute>\n"
+" <!--If you specify the keystore and password in the command line and "
+"you're \n"
+" not using the custom ServerSocketFactory, you should take out the "
+"following line-->\n"
+" <depends>jboss.remoting:service=ServerSocketFactory,type=SSL</"
+"depends>\n"
+" <depends>jboss.remoting:service=NetworkRegistry</depends>\n"
+" </mbean>"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:2011
@@ -7063,7 +8234,7 @@
#: J2EE_Security_On_JBOSS.xml:2031 J2EE_Security_On_JBOSS.xml:2170
#, no-c-format
msgid "Port"
-msgstr ""
+msgstr "Puerto"
#. Tag: entry
#: J2EE_Security_On_JBOSS.xml:2034 J2EE_Security_On_JBOSS.xml:2173
@@ -7073,9 +8244,9 @@
#. Tag: entry
#: J2EE_Security_On_JBOSS.xml:2037 J2EE_Security_On_JBOSS.xml:2176
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Service"
-msgstr "Servicios HTTP"
+msgstr "Servicio"
#. Tag: entry
#: J2EE_Security_On_JBOSS.xml:2040 J2EE_Security_On_JBOSS.xml:2179
@@ -7087,7 +8258,7 @@
#: J2EE_Security_On_JBOSS.xml:2047
#, no-c-format
msgid "1098"
-msgstr ""
+msgstr "1098"
#. Tag: entry
#: J2EE_Security_On_JBOSS.xml:2050 J2EE_Security_On_JBOSS.xml:2061
@@ -7100,80 +8271,79 @@
#: J2EE_Security_On_JBOSS.xml:2269
#, no-c-format
msgid "<entry>TCP</entry>"
-msgstr ""
+msgstr "<entry>TCP</entry>"
#. Tag: literal
#: J2EE_Security_On_JBOSS.xml:2054 J2EE_Security_On_JBOSS.xml:2065
#, no-c-format
msgid "org.jboss.naming.NamingService"
-msgstr ""
+msgstr "org.jboss.naming.NamingService"
#. Tag: entry
#: J2EE_Security_On_JBOSS.xml:2058
#, no-c-format
msgid "1099"
-msgstr ""
+msgstr "1099"
#. Tag: entry
#: J2EE_Security_On_JBOSS.xml:2069
#, no-c-format
msgid "3873"
-msgstr ""
+msgstr "3873"
#. Tag: entry
#: J2EE_Security_On_JBOSS.xml:2075
#, no-c-format
msgid "<literal>org.jboss.remoting.transport.Connector</literal> (EJB3)"
-msgstr ""
+msgstr "<literal>org.jboss.remoting.transport.Connector</literal> (EJB3)"
#. Tag: entry
#: J2EE_Security_On_JBOSS.xml:2080
#, no-c-format
msgid "4444"
-msgstr ""
+msgstr "4444"
#. Tag: literal
#: J2EE_Security_On_JBOSS.xml:2087
#, no-c-format
msgid "org.jboss.invocation.jrmp.server.JRMPInvoker"
-msgstr ""
+msgstr "org.jboss.invocation.jrmp.server.JRMPInvoker"
#. Tag: entry
#: J2EE_Security_On_JBOSS.xml:2091
#, no-c-format
msgid "4445"
-msgstr ""
+msgstr "4445"
#. Tag: literal
#: J2EE_Security_On_JBOSS.xml:2098
#, no-c-format
msgid "org.jboss.invocation.pooled.server.PooledInvoker"
-msgstr ""
+msgstr "org.jboss.invocation.pooled.server.PooledInvoker"
#. Tag: entry
#: J2EE_Security_On_JBOSS.xml:2102
#, no-c-format
msgid "4446"
-msgstr ""
+msgstr "4446"
#. Tag: entry
#: J2EE_Security_On_JBOSS.xml:2108
#, no-c-format
-msgid ""
-"<literal>org.jboss.remoting.transport.Connector</literal> (UnifiedInvoker)"
-msgstr ""
+msgid "<literal>org.jboss.remoting.transport.Connector</literal> (UnifiedInvoker)"
+msgstr "<literal>org.jboss.remoting.transport.Connector</literal> (UnifiedInvoker)"
#. Tag: entry
#: J2EE_Security_On_JBOSS.xml:2113
#, no-c-format
msgid "4457"
-msgstr ""
+msgstr "4457"
#. Tag: entry
#: J2EE_Security_On_JBOSS.xml:2119
#, no-c-format
msgid "<literal>org.jboss.remoting.transport.Connector</literal> (Messaging)"
-msgstr ""
+msgstr "<literal>org.jboss.remoting.transport.Connector</literal> (Messaging)"
#. Tag: entry
#: J2EE_Security_On_JBOSS.xml:2122
@@ -7188,31 +8358,31 @@
#: J2EE_Security_On_JBOSS.xml:2127
#, no-c-format
msgid "8009"
-msgstr ""
+msgstr "8009"
#. Tag: literal
#: J2EE_Security_On_JBOSS.xml:2134 J2EE_Security_On_JBOSS.xml:2145
#, no-c-format
msgid "org.jboss.web.tomcat.service.JBossWeb"
-msgstr ""
+msgstr "org.jboss.web.tomcat.service.JBossWeb"
#. Tag: entry
#: J2EE_Security_On_JBOSS.xml:2138
#, no-c-format
msgid "8080"
-msgstr ""
+msgstr "8080"
#. Tag: entry
#: J2EE_Security_On_JBOSS.xml:2149
#, no-c-format
msgid "8083"
-msgstr ""
+msgstr "8083"
#. Tag: literal
#: J2EE_Security_On_JBOSS.xml:2156
#, no-c-format
msgid "org.jboss.web.WebService"
-msgstr ""
+msgstr "org.jboss.web.WebService"
#. Tag: title
#: J2EE_Security_On_JBOSS.xml:2163
@@ -7224,26 +8394,26 @@
#: J2EE_Security_On_JBOSS.xml:2186
#, no-c-format
msgid "1100"
-msgstr ""
+msgstr "1100"
#. Tag: literal
#: J2EE_Security_On_JBOSS.xml:2193 J2EE_Security_On_JBOSS.xml:2204
#: J2EE_Security_On_JBOSS.xml:2215
#, no-c-format
msgid "org.jboss.ha.jndi.HANamingService"
-msgstr ""
+msgstr "org.jboss.ha.jndi.HANamingService"
#. Tag: entry
#: J2EE_Security_On_JBOSS.xml:2197
#, no-c-format
msgid "1101"
-msgstr ""
+msgstr "1101"
#. Tag: entry
#: J2EE_Security_On_JBOSS.xml:2208
#, no-c-format
msgid "1102"
-msgstr ""
+msgstr "1102"
#. Tag: entry
#: J2EE_Security_On_JBOSS.xml:2211 J2EE_Security_On_JBOSS.xml:2222
@@ -7253,19 +8423,19 @@
#: J2EE_Security_On_JBOSS.xml:2350
#, no-c-format
msgid "<entry>UDP</entry>"
-msgstr ""
+msgstr "<entry>UDP</entry>"
#. Tag: entry
#: J2EE_Security_On_JBOSS.xml:2219
#, no-c-format
msgid "1161"
-msgstr ""
+msgstr "1161"
#. Tag: literal
#: J2EE_Security_On_JBOSS.xml:2226
#, no-c-format
msgid "org.jboss.jmx.adaptor.snmp.agent.SnmpAgentService"
-msgstr ""
+msgstr "org.jboss.jmx.adaptor.snmp.agent.SnmpAgentService"
#. Tag: entry
#: J2EE_Security_On_JBOSS.xml:2228
@@ -7279,43 +8449,43 @@
#: J2EE_Security_On_JBOSS.xml:2233
#, no-c-format
msgid "1162"
-msgstr ""
+msgstr "1162"
#. Tag: literal
#: J2EE_Security_On_JBOSS.xml:2240
#, no-c-format
msgid "org.jboss.jmx.adaptor.snmp.trapd.TrapdService"
-msgstr ""
+msgstr "org.jboss.jmx.adaptor.snmp.trapd.TrapdService"
#. Tag: entry
#: J2EE_Security_On_JBOSS.xml:2244
#, no-c-format
msgid "3528"
-msgstr ""
+msgstr "3528"
#. Tag: literal
#: J2EE_Security_On_JBOSS.xml:2251
#, no-c-format
msgid "org.jboss.invocation.iiop.IIOPInvoker"
-msgstr ""
+msgstr "org.jboss.invocation.iiop.IIOPInvoker"
#. Tag: entry
#: J2EE_Security_On_JBOSS.xml:2255
#, no-c-format
msgid "4447"
-msgstr ""
+msgstr "4447"
#. Tag: literal
#: J2EE_Security_On_JBOSS.xml:2262
#, no-c-format
msgid "org.jboss.invocation.jrmp.server.JRMPInvokerHA"
-msgstr ""
+msgstr "org.jboss.invocation.jrmp.server.JRMPInvokerHA"
#. Tag: entry
#: J2EE_Security_On_JBOSS.xml:2266
#, no-c-format
msgid "7900"
-msgstr ""
+msgstr "7900"
#. Tag: entry
#: J2EE_Security_On_JBOSS.xml:2272
@@ -7337,13 +8507,13 @@
#: J2EE_Security_On_JBOSS.xml:2280
#, no-c-format
msgid "43333"
-msgstr ""
+msgstr "43333"
#. Tag: entry
#: J2EE_Security_On_JBOSS.xml:2286
#, no-c-format
msgid "<literal>org.jboss.cache.TreeCache</literal> (EJB3Entity)"
-msgstr ""
+msgstr "<literal>org.jboss.cache.TreeCache</literal> (EJB3Entity)"
#. Tag: entry
#: J2EE_Security_On_JBOSS.xml:2289 J2EE_Security_On_JBOSS.xml:2303
@@ -7360,31 +8530,31 @@
#: J2EE_Security_On_JBOSS.xml:2294
#, no-c-format
msgid "45551"
-msgstr ""
+msgstr "45551"
#. Tag: entry
#: J2EE_Security_On_JBOSS.xml:2300
#, no-c-format
msgid "<literal>org.jboss.cache.TreeCache</literal> (EJB3SFSB)"
-msgstr ""
+msgstr "<literal>org.jboss.cache.TreeCache</literal> (EJB3SFSB)"
#. Tag: entry
#: J2EE_Security_On_JBOSS.xml:2308
#, no-c-format
msgid "45566"
-msgstr ""
+msgstr "45566"
#. Tag: literal
#: J2EE_Security_On_JBOSS.xml:2315
#, no-c-format
msgid "org.jboss.ha.framework.server.ClusterPartition"
-msgstr ""
+msgstr "org.jboss.ha.framework.server.ClusterPartition"
#. Tag: entry
#: J2EE_Security_On_JBOSS.xml:2322
#, no-c-format
msgid "45567"
-msgstr ""
+msgstr "45567"
#. Tag: entry
#: J2EE_Security_On_JBOSS.xml:2328
@@ -7398,7 +8568,7 @@
#: J2EE_Security_On_JBOSS.xml:2333
#, no-c-format
msgid "45568"
-msgstr ""
+msgstr "45568"
#. Tag: entry
#: J2EE_Security_On_JBOSS.xml:2339
@@ -7407,18 +8577,20 @@
"<literal>org.jboss.messaging.core.jmx.MessagingPostOfficeService</literal> "
"(Messaging, ControlChannel)"
msgstr ""
+"<literal>org.jboss.messaging.core.jmx.MessagingPostOfficeService</literal> "
+"(Messaging, ControlChannel)"
#. Tag: entry
#: J2EE_Security_On_JBOSS.xml:2347
#, no-c-format
msgid "45577"
-msgstr ""
+msgstr "45577"
#. Tag: entry
#: J2EE_Security_On_JBOSS.xml:2353
#, no-c-format
msgid "<literal>org.jboss.cache.TreeCache</literal> (JBossWebCluster)"
-msgstr ""
+msgstr "<literal>org.jboss.cache.TreeCache</literal> (JBossWebCluster)"
#. Tag: title
#: J2EE_Security_On_JBOSS.xml:2366
@@ -7457,7 +8629,7 @@
#: J2EE_Security_On_JBOSS.xml:2378
#, no-c-format
msgid "The Web Console"
-msgstr ""
+msgstr "La consola web"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:2379
@@ -7478,7 +8650,7 @@
#: J2EE_Security_On_JBOSS.xml:2385
#, no-c-format
msgid "The HTTP Invokers"
-msgstr ""
+msgstr "Los invocadores HTTP"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:2386
@@ -7505,7 +8677,7 @@
#: J2EE_Security_On_JBOSS.xml:2392
#, no-c-format
msgid "The JMX Invoker"
-msgstr ""
+msgstr "El invocador JMX"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:2393
@@ -7519,3 +8691,4 @@
"the future this service will be deployed as an XMBean with a security "
"interceptor that supports role based access checks."
msgstr ""
+
Modified: projects/docs/enterprise/4.3.3/Server_Configuration_Guide/es-ES/Web_Services.po
===================================================================
--- projects/docs/enterprise/4.3.3/Server_Configuration_Guide/es-ES/Web_Services.po 2009-05-11 06:54:15 UTC (rev 88595)
+++ projects/docs/enterprise/4.3.3/Server_Configuration_Guide/es-ES/Web_Services.po 2009-05-11 07:00:53 UTC (rev 88596)
@@ -1,24 +1,26 @@
+# translation of Web_Services.po to
# Language /tmp/mike/JBEAP420/JBAS translations for JBEAP package.
-# Copyright (C) 2007 Free Software Foundation, Inc.
+# Copyright (C) 2007, 2009 Free Software Foundation, Inc.
# Automatically generated, 2007.
#
msgid ""
msgstr ""
-"Project-Id-Version: JBEAP 420\n"
+"Project-Id-Version: Web_Services\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2009-01-20 02:37+0000\n"
-"PO-Revision-Date: 2001-02-09 01:25+0100\n"
-"Last-Translator: Automatically generated\n"
-"Language-Team: none\n"
+"PO-Revision-Date: 2009-05-11 11:21+1000\n"
+"Last-Translator: Angela Garcia\n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
#: Web_Services.xml:5
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Web Services"
-msgstr "Servicios HTTP"
+msgstr "Servicios web"
#. Tag: para
#: Web_Services.xml:6
@@ -67,6 +69,20 @@
" </operation>\n"
" </binding>"
msgstr ""
+"<binding name='EndpointInterfaceBinding' type='tns:"
+"EndpointInterface'>\n"
+" <soap:binding style='document' transport='http://"
+"schemas.xmlsoap.org/soap/http'/>\n"
+" <operation name='concat'>\n"
+" <soap:operation soapAction=''/>\n"
+" <input>\n"
+" <soap:body use='literal'/>\n"
+" </input>\n"
+" <output>\n"
+" <soap:body use='literal'/>\n"
+" </output>\n"
+" </operation>\n"
+" </binding>"
#. Tag: para
#: Web_Services.xml:17
@@ -100,6 +116,25 @@
">\n"
"</message>"
msgstr ""
+"<complexType name='concatType'>\n"
+" <sequence>\n"
+" <element name='String_1' nillable='true' "
+"type='string'/>\n"
+" <element name='long_1' type='long'/>\n"
+" </sequence>\n"
+" </complexType>\n"
+" <element name='concat' type='tns:concatType'/"
+">\n"
+" Therefore, message parts must refer to an element from the schema. \n"
+" <message name='EndpointInterface_concat'>\n"
+" <part name='parameters' element='tns:"
+"concat'/>\n"
+" </message>\n"
+"The following message definition is invalid. \n"
+"<message name='EndpointInterface_concat'>\n"
+" <part name='parameters' type='tns:concatType'/"
+">\n"
+"</message>"
#. Tag: title
#: Web_Services.xml:24
@@ -132,6 +167,16 @@
" }\n"
" }"
msgstr ""
+"@WebService\n"
+" @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n"
+" public class DocBareServiceImpl\n"
+" {\n"
+" @WebMethod\n"
+" public SubmitBareResponse submitPO(SubmitBareRequest poRequest)\n"
+" {\n"
+" ...\n"
+" }\n"
+" }"
#. Tag: para
#: Web_Services.xml:29
@@ -158,6 +203,18 @@
" ...\n"
" }"
msgstr ""
+"@XmlAccessorType(XmlAccessType.FIELD)\n"
+" @XmlType(name = \"SubmitBareRequest\", namespace=\"http://soapbinding."
+"samples.jaxws.ws.test.jboss.org/\", propOrder = { \"product\" })\n"
+" @XmlRootElement(namespace=\"http://soapbinding.samples.jaxws.ws.test.jboss."
+"org/\", name = \"SubmitPO\")\n"
+" public class SubmitBareRequest\n"
+" {\n"
+" @XmlElement(namespace=\"http://soapbinding.samples.jaxws.ws.test.jboss.org/"
+"\", required = true)\n"
+" private String product;\n"
+" ...\n"
+" }"
#. Tag: title
#: Web_Services.xml:36
@@ -231,6 +288,22 @@
" </operation>\n"
" </binding>"
msgstr ""
+"<binding name='EndpointInterfaceBinding' type='tns:"
+"EndpointInterface'>\n"
+" <soap:binding style='rpc' transport='http://schemas."
+"xmlsoap.org/soap/http'/>\n"
+" <operation name='echo'>\n"
+" <soap:operation soapAction=''/>\n"
+" <input>\n"
+" <soap:body namespace='http://org.jboss.ws/"
+"samples/jsr181pojo' use='literal'/>\n"
+" </input>\n"
+" <output>\n"
+" <soap:body namespace='http://org.jboss.ws/"
+"samples/jsr181pojo' use='literal'/>\n"
+" </output>\n"
+" </operation>\n"
+" </binding>"
#. Tag: para
#: Web_Services.xml:62
@@ -355,6 +428,16 @@
" }\n"
" }"
msgstr ""
+"@WebService\n"
+"@SOAPBinding(style = SOAPBinding.Style.RPC)\n"
+"public class JSEBean01\n"
+" {\n"
+" @WebMethod\n"
+" public String echo(String input)\n"
+" {\n"
+" ...\n"
+" }\n"
+" }"
#. Tag: title
#: Web_Services.xml:105
@@ -370,7 +453,7 @@
#. Tag: programlisting
#: Web_Services.xml:108
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<web-app ...>\n"
" <servlet>\n"
@@ -384,17 +467,17 @@
" </servlet-mapping>\n"
"</web-app>"
msgstr ""
-"<servlet>\n"
-" <servlet-name>Faces Servlet</servlet-name>\n"
-" <servlet-class>javax.faces.webapp.FacesServlet</servlet-"
-"class>\n"
-" <load-on-startup>1</load-on-startup>\n"
-"</servlet>\n"
-"\n"
-"<servlet-mapping>\n"
-" <servlet-name>Faces Servlet</servlet-name>\n"
-" <url-pattern>*.jsf</url-pattern>\n"
-"</servlet-mapping>"
+"<web-app ...>\n"
+" <servlet>\n"
+" <servlet-name>TestService</servlet-name>\n"
+" <servlet-class>org.jboss.test.ws.jaxws.samples.jsr181pojo."
+"JSEBean01</servlet-class>\n"
+" </servlet>\n"
+" <servlet-mapping>\n"
+" <servlet-name>TestService</servlet-name>\n"
+" <url-pattern>/*</url-pattern>\n"
+" </servlet-mapping>\n"
+"</web-app>"
#. Tag: title
#: Web_Services.xml:113
@@ -440,7 +523,7 @@
#: Web_Services.xml:127 Web_Services.xml:154
#, no-c-format
msgid "http://yourhost:8080/jbossws/services"
-msgstr ""
+msgstr "http://yourhost:8080/jbossws/services"
#. Tag: para
#: Web_Services.xml:127 Web_Services.xml:155
@@ -488,6 +571,20 @@
" }\n"
" }"
msgstr ""
+"@Stateless\n"
+" @Remote(EJB3RemoteInterface.class)\n"
+" @RemoteBinding(jndiBinding = "/ejb3/EJB3EndpointInterface")\n"
+" \n"
+" @WebService\n"
+" @SOAPBinding(style = SOAPBinding.Style.RPC)\n"
+" public class EJB3Bean01 implements EJB3RemoteInterface\n"
+" {\n"
+" @WebMethod\n"
+" public String echo(String input)\n"
+" {\n"
+" ...\n"
+" }\n"
+" }"
#. Tag: para
#: Web_Services.xml:138
@@ -506,8 +603,7 @@
#. Tag: para
#: Web_Services.xml:144
#, no-c-format
-msgid ""
-"A JSR-181 EJB service endpoint is packaged as an ordinary ejb deployment."
+msgid "A JSR-181 EJB service endpoint is packaged as an ordinary ejb deployment."
msgstr ""
#. Tag: programlisting
@@ -524,6 +620,15 @@
"</fileset>\n"
"</jar>"
msgstr ""
+"<jar jarfile="${build.dir}/libs/jbossws-samples-jsr181ejb.jar""
+">\n"
+"<fileset dir="${build.dir}/classes">\n"
+"<include name="org/jboss/test/ws/samples/jsr181ejb/EJB3Bean01."
+"class"/>\n"
+"<include name="org/jboss/test/ws/samples/jsr181ejb/"
+"EJB3RemoteInterface.class"/>\n"
+"</fileset>\n"
+"</jar>"
#. Tag: emphasis
#: Web_Services.xml:149
@@ -580,6 +685,15 @@
" }\n"
"}"
msgstr ""
+"@WebServiceProvider\n"
+"@ServiceMode(value = Service.Mode.PAYLOAD)\n"
+"public class ProviderBeanPayload implements Provider<Source>\n"
+"{\n"
+"public Source invoke(Source req)\n"
+"{\n"
+"// Access the entire request PAYLOAD and return the response PAYLOAD\n"
+" }\n"
+"}"
#. Tag: para
#: Web_Services.xml:172
@@ -592,9 +706,9 @@
#. Tag: title
#: Web_Services.xml:178
-#, fuzzy, no-c-format
+#, no-c-format
msgid "WebServiceContext"
-msgstr "Servir Contenido Estático"
+msgstr "WebServiceContext"
#. Tag: para
#: Web_Services.xml:179
@@ -639,6 +753,33 @@
"}\n"
"}"
msgstr ""
+"@WebService\n"
+"public class EndpointJSE\n"
+"{\n"
+"@Resource\n"
+"WebServiceContext wsCtx;\n"
+" \n"
+"@WebMethod\n"
+"public String testGetMessageContext()\n"
+"{\n"
+"SOAPMessageContext jaxwsContext = (SOAPMessageContext)wsCtx.getMessageContext"
+"();\n"
+"return jaxwsContext != null ? "pass" : "fail";\n"
+"}\n"
+"..\n"
+"@WebMethod\n"
+"public String testGetUserPrincipal()\n"
+"{\n"
+"Principal principal = wsCtx.getUserPrincipal();\n"
+"return principal.getName();\n"
+"}\n"
+" \n"
+"@WebMethod\n"
+"public boolean testIsUserInRole(String role)\n"
+"{\n"
+"return wsCtx.isUserInRole(role);\n"
+"}\n"
+"}"
#. Tag: title
#: Web_Services.xml:186
@@ -648,9 +789,9 @@
#. Tag: title
#: Web_Services.xml:188
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Service"
-msgstr "Servicios HTTP"
+msgstr "Servicio"
#. Tag: para
#: Web_Services.xml:189
@@ -673,9 +814,9 @@
#. Tag: title
#: Web_Services.xml:196
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Service Usage"
-msgstr "Servicios HTTP"
+msgstr "Uso del servicio"
#. Tag: emphasis
#: Web_Services.xml:198
@@ -746,6 +887,26 @@
"...\n"
"}"
msgstr ""
+"// Generated Service Class\n"
+" \n"
+" @WebServiceClient(name="StockQuoteService", targetNamespace=""
+"http://example.com/stocks", wsdlLocation="http://example.com/"
+"stocks.wsdl")\n"
+"public class StockQuoteService extends javax.xml.ws.Service \n"
+"{\n"
+"public StockQuoteService() \n"
+"{\n"
+"super(new URL("http://example.com/stocks.wsdl"), new QName(""
+"http://example.com/stocks", "StockQuoteService"));\n"
+"}\n"
+" \n"
+"public StockQuoteService(String wsdlLocation, QName serviceName) \n"
+"{\n"
+"super(wsdlLocation, serviceName);\n"
+"}\n"
+" \n"
+"...\n"
+"}"
#. Tag: para
#: Web_Services.xml:213
@@ -783,6 +944,10 @@
"MyService");\n"
"Service service = Service.create(wsdlLocation, serviceName);"
msgstr ""
+"URL wsdlLocation = new URL("http://example.org/my.wsdl");\n"
+"QName serviceName = new QName("http://example.org/sample", ""
+"MyService");\n"
+"Service service = Service.create(wsdlLocation, serviceName);"
#. Tag: para
#: Web_Services.xml:223
@@ -933,12 +1098,32 @@
" }\n"
" }"
msgstr ""
+"@WebServiceClient(name = "TestEndpointService", targetNamespace = "
+""http://org.jboss.ws/wsref", \n"
+" wsdlLocation = "http://localhost.localdomain:8080/jaxws-samples-"
+"webserviceref?wsdl")\n"
+" \n"
+" public class TestEndpointService extends Service\n"
+" {\n"
+" ...\n"
+" \n"
+" public TestEndpointService(URL wsdlLocation, QName serviceName) {\n"
+" super(wsdlLocation, serviceName);\n"
+" }\n"
+" \n"
+" @WebEndpoint(name = "TestEndpointPort")\n"
+" public TestEndpoint getTestEndpointPort() \n"
+" {\n"
+" return (TestEndpoint)super.getPort(TESTENDPOINTPORT, TestEndpoint."
+"class);\n"
+" }\n"
+" }"
#. Tag: title
#: Web_Services.xml:263
#, no-c-format
msgid "WebServiceRef"
-msgstr ""
+msgstr "WebServiceRef"
#. Tag: para
#: Web_Services.xml:264
@@ -993,6 +1178,13 @@
" @WebServiceRef\n"
" public TestEndpoint port3;"
msgstr ""
+"public class EJB3Client implements EJB3Remote\n"
+"{\n"
+" @WebServiceRef\n"
+" public TestEndpointService service4;\n"
+" \n"
+" @WebServiceRef\n"
+" public TestEndpoint port3;"
#. Tag: emphasis
#: Web_Services.xml:284
@@ -1030,7 +1222,7 @@
#: Web_Services.xml:306
#, no-c-format
msgid "Example:"
-msgstr ""
+msgstr "Ejemplo:"
#. Tag: programlisting
#: Web_Services.xml:309
@@ -1072,6 +1264,41 @@
"</port-info>\n"
"</service-ref>"
msgstr ""
+"<service-ref>\n"
+"<service-ref-name>OrganizationService</service-ref-name>\n"
+"<wsdl-override>file:/wsdlRepository/organization-service.wsdl</wsdl-"
+"override>\n"
+"</service-ref>\n"
+".. \n"
+"<service-ref>\n"
+"<service-ref-name>OrganizationService</service-ref-name>\n"
+"<config-name>Secure Client Config</config-name>\n"
+"<config-file>META-INF/jbossws-client-config.xml</config-file>\n"
+"<handler-chain>META-INF/jbossws-client-handlers.xml</handler-"
+"chain>\n"
+"</service-ref>\n"
+" \n"
+"<service-ref>\n"
+"<service-ref-name>SecureService</service-ref-name>\n"
+"<service-class-name>org.jboss.tests.ws.jaxws.webserviceref."
+"SecureEndpointService</service-class-name>\n"
+"<service-qname>{http://org.jboss.ws/wsref}SecureEndpointService</"
+"service-qname>\n"
+"<port-info>\n"
+"<service-endpoint-interface>org.jboss.tests.ws.jaxws.webserviceref."
+"SecureEndpoint</service-endpoint-interface>\n"
+"<port-qname>{http://org.jboss.ws/wsref}SecureEndpointPort</port-"
+"qname>\n"
+"<stub-property>\n"
+"<name>javax.xml.ws.security.auth.username</name>\n"
+"<value>kermit</value>\n"
+"</stub-property>\n"
+"<stub-property>\n"
+"<name>javax.xml.ws.security.auth.password</name>\n"
+"<value>thefrog</value>\n"
+"</stub-property>\n"
+"</port-info>\n"
+"</service-ref>"
#. Tag: para
#: Web_Services.xml:310
@@ -1201,6 +1428,20 @@
"assertEquals("Async", retStr);\n"
"}"
msgstr ""
+"public void testInvokeAsync() throws Exception\n"
+"{\n"
+"URL wsdlURL = new URL("http://" + getServerHost() + ":8080/"
+"jaxws-samples-asynchronous?wsdl");\n"
+"QName serviceName = new QName(targetNS, "TestEndpointService");\n"
+"Service service = Service.create(wsdlURL, serviceName);\n"
+"TestEndpoint port = service.getPort(TestEndpoint.class);\n"
+" \n"
+"Response response = port.echoAsync("Async");\n"
+" \n"
+"// access future\n"
+"String retStr = (String) response.get();\n"
+"assertEquals("Async", retStr);\n"
+"}"
#. Tag: title
#: Web_Services.xml:347
@@ -1243,6 +1484,27 @@
"}\n"
"}"
msgstr ""
+"@WebService (name="PingEndpoint")\n"
+"@SOAPBinding(style = SOAPBinding.Style.RPC)\n"
+"public class PingEndpointImpl\n"
+"{\n"
+" private static String feedback;\n"
+".. \n"
+"@WebMethod\n"
+"@Oneway\n"
+"public void ping()\n"
+"{\n"
+"log.info("ping");\n"
+"feedback = "ok";\n"
+"}\n"
+".. \n"
+"@WebMethod\n"
+"public String feedback()\n"
+"{\n"
+"log.info("feedback");\n"
+"return feedback;\n"
+"}\n"
+"}"
#. Tag: title
#: Web_Services.xml:357
@@ -1358,6 +1620,12 @@
"...\n"
"}"
msgstr ""
+"@WebService\n"
+"@HandlerChain(file = "jaxws-server-source-handlers.xml")\n"
+"public class SOAPEndpointSourceImpl\n"
+"{\n"
+"...\n"
+"}"
#. Tag: para
#: Web_Services.xml:392
@@ -1410,6 +1678,15 @@
"handlerChain.add(new RoutingHandler());\n"
"bindingProvider.getBinding().setHandlerChain(handlerChain); // important!"
msgstr ""
+"Service service = Service.create(wsdlURL, serviceName);\n"
+"Endpoint port = (Endpoint)service.getPort(Endpoint.class);\n"
+" \n"
+"BindingProvider bindingProvider = (BindingProvider)port;\n"
+"List<Handler> handlerChain = new ArrayList<Handler>();\n"
+"handlerChain.add(new LogHandler());\n"
+"handlerChain.add(new AuthorizationHandler());\n"
+"handlerChain.add(new RoutingHandler());\n"
+"bindingProvider.getBinding().setHandlerChain(handlerChain); // important!"
#. Tag: title
#: Web_Services.xml:414
@@ -1504,6 +1781,15 @@
"throw new SOAPFaultException(fault);\n"
"}"
msgstr ""
+"public void throwSoapFaultException()\n"
+"{\n"
+"SOAPFactory factory = SOAPFactory.newInstance();\n"
+"SOAPFault fault = factory.createFault("this is a fault string!", "
+"new QName("http://foo", "FooCode"));\n"
+"fault.setFaultActor("mr.actor");\n"
+"fault.addDetail().addChildElement("test");\n"
+"throw new SOAPFaultException(fault);\n"
+"}"
#. Tag: para
#: Web_Services.xml:443
@@ -1521,15 +1807,20 @@
"error");\n"
"}"
msgstr ""
+"public void throwApplicationException() throws UserException\n"
+"{\n"
+"throw new UserException("validation", 123, "Some validation "
+"error");\n"
+"}"
#. Tag: title
#: Web_Services.xml:449 Web_Services.xml:576 Web_Services.xml:609
#: Web_Services.xml:781 Web_Services.xml:814 Web_Services.xml:956
#: Web_Services.xml:1128 Web_Services.xml:1362 Web_Services.xml:1486
#: Web_Services.xml:1501
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Note"
-msgstr "Notas"
+msgstr "Nota"
#. Tag: para
#: Web_Services.xml:450
@@ -1543,7 +1834,7 @@
#: Web_Services.xml:460
#, no-c-format
msgid "DataBinding"
-msgstr ""
+msgstr "DataBinding"
#. Tag: title
#: Web_Services.xml:462
@@ -1555,7 +1846,7 @@
#: Web_Services.xml:463
#, no-c-format
msgid "Since 2.0.2"
-msgstr ""
+msgstr "Desde 2.0.2"
#. Tag: para
#: Web_Services.xml:466
@@ -1593,7 +1884,7 @@
#: Web_Services.xml:478
#, no-c-format
msgid "http://anonsvn.jboss.org/repos/jbossws/projects/jaxbintros/"
-msgstr ""
+msgstr "http://anonsvn.jboss.org/repos/jbossws/projects/jaxbintros/"
#. Tag: para
#: Web_Services.xml:482
@@ -1617,7 +1908,7 @@
#: Web_Services.xml:499
#, no-c-format
msgid "MTOM/XOP"
-msgstr ""
+msgstr "MTOM/XOP"
#. Tag: para
#: Web_Services.xml:500
@@ -1657,19 +1948,19 @@
#: Web_Services.xml:528
#, no-c-format
msgid "java.awt.Image"
-msgstr ""
+msgstr "java.awt.Image"
#. Tag: para
#: Web_Services.xml:535
#, no-c-format
msgid "text/xml"
-msgstr ""
+msgstr "texto/xml"
#. Tag: para
#: Web_Services.xml:540 Web_Services.xml:552
#, no-c-format
msgid "javax.xml.transform.Source"
-msgstr ""
+msgstr "javax.xml.transform.Source"
#. Tag: para
#: Web_Services.xml:547
@@ -1687,7 +1978,7 @@
#: Web_Services.xml:564
#, no-c-format
msgid "javax.activation.DataHandler"
-msgstr ""
+msgstr "javax.activation.DataHandler"
#. Tag: para
#: Web_Services.xml:571
@@ -1751,6 +2042,23 @@
"[...]\n"
"}"
msgstr ""
+"package org.jboss.test.ws.jaxws.samples.xop.doclit;\n"
+" \n"
+"import javax.ejb.Remote;\n"
+"import javax.jws.WebService;\n"
+"import javax.jws.soap.SOAPBinding;\n"
+"import javax.xml.ws.BindingType;\n"
+" \n"
+"@Remote\n"
+"@WebService(targetNamespace = "http://org.jboss.ws/xop/doclit")\n"
+"@SOAPBinding(style = SOAPBinding.Style.DOCUMENT, parameterStyle = "
+"SOAPBinding.ParameterStyle.BARE)\n"
+"@BindingType(value="http://schemas.xmlsoap.org/wsdl/soap/http?"
+"mtom=true") (1)\n"
+"public interface MTOMEndpoint {\n"
+" \n"
+"[...]\n"
+"}"
#. Tag: para
#: Web_Services.xml:595
@@ -1785,6 +2093,13 @@
"binding = (SOAPBinding)((BindingProvider)port).getBinding();\n"
"binding.setMTOMEnabled(true);"
msgstr ""
+"[...]\n"
+"Service service = Service.create(wsdlURL, serviceName);\n"
+"port = service.getPort(MTOMEndpoint.class);\n"
+" \n"
+"// enable MTOM\n"
+"binding = (SOAPBinding)((BindingProvider)port).getBinding();\n"
+"binding.setMTOMEnabled(true);"
#. Tag: para
#: Web_Services.xml:610
@@ -1798,13 +2113,13 @@
#: Web_Services.xml:620
#, no-c-format
msgid "SwaRef"
-msgstr ""
+msgstr "SwaRef"
#. Tag: para
#: Web_Services.xml:621
#, no-c-format
msgid "Since 2.0"
-msgstr ""
+msgstr "Desde 2.0"
#. Tag: para
#: Web_Services.xml:624
@@ -1871,6 +2186,35 @@
"}\n"
"}"
msgstr ""
+"/**\n"
+"* Payload bean that will use SwaRef encoding\n"
+"*/\n"
+"@XmlRootElement\n"
+"public class DocumentPayload\n"
+"{\n"
+"private DataHandler data;\n"
+" \n"
+"public DocumentPayload()\n"
+"{\n"
+"}\n"
+" \n"
+"public DocumentPayload(DataHandler data)\n"
+"{\n"
+"this.data = data;\n"
+"}\n"
+" \n"
+"@XmlElement\n"
+"@XmlAttachmentRef\n"
+"public DataHandler getData()\n"
+"{\n"
+"return data;\n"
+"}\n"
+" \n"
+"public void setData(DataHandler data)\n"
+"{\n"
+"this.data = data;\n"
+"}\n"
+"}"
#. Tag: para
#: Web_Services.xml:633
@@ -1898,6 +2242,18 @@
" \n"
"}"
msgstr ""
+"@WebService\n"
+"public interface DocWrappedEndpoint\n"
+"{\n"
+"@WebMethod\n"
+"DocumentPayload beanAnnotation(DocumentPayload dhw, String test);\n"
+" \n"
+"@WebMethod\n"
+"@XmlAttachmentRef\n"
+"DataHandler parameterAnnotation(@XmlAttachmentRef DataHandler data, String "
+"test);\n"
+" \n"
+"}"
#. Tag: para
#: Web_Services.xml:637
@@ -1921,6 +2277,17 @@
"</env:Body>\n"
"</env:Envelope>"
msgstr ""
+"<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/"
+"'>\n"
+"<env:Header/>\n"
+"<env:Body>\n"
+"<ns2:parameterAnnotation xmlns:ns2='http://swaref.samples.jaxws.ws."
+"test.jboss.org/'>\n"
+"<arg0>cid:0-1180017772935-32455963 at ws.jboss.org</arg0>\n"
+"<arg1>Wrapped test</arg1>\n"
+"</ns2:parameterAnnotation>\n"
+"</env:Body>\n"
+"</env:Envelope>"
#. Tag: title
#: Web_Services.xml:644
@@ -1944,6 +2311,8 @@
"<element name="data" type="wsi:swaRef" \n"
"xmlns:wsi="http://ws-i.org/profiles/basic/1.1/xsd"/>"
msgstr ""
+"<element name="data" type="wsi:swaRef" \n"
+"xmlns:wsi="http://ws-i.org/profiles/basic/1.1/xsd"/>"
#. Tag: para
#: Web_Services.xml:649
@@ -1955,7 +2324,7 @@
#: Web_Services.xml:659
#, no-c-format
msgid "Tools"
-msgstr ""
+msgstr "Herramientas"
#. Tag: para
#: Web_Services.xml:660
@@ -1988,8 +2357,7 @@
#. Tag: para
#: Web_Services.xml:673
#, no-c-format
-msgid ""
-"Providing a new service, and you want the contract to be generated for you"
+msgid "Providing a new service, and you want the contract to be generated for you"
msgstr ""
#. Tag: para
@@ -2032,7 +2400,7 @@
#: Web_Services.xml:708
#, no-c-format
msgid "Command"
-msgstr ""
+msgstr "Comando"
#. Tag: emphasis
#: Web_Services.xml:713
@@ -2044,7 +2412,7 @@
#: Web_Services.xml:720
#, no-c-format
msgid "wsprovide"
-msgstr ""
+msgstr "wsprovide"
#. Tag: para
#: Web_Services.xml:724
@@ -2058,7 +2426,7 @@
#: Web_Services.xml:732
#, no-c-format
msgid "wsconsume"
-msgstr ""
+msgstr "wsconsume"
#. Tag: para
#: Web_Services.xml:736
@@ -2071,9 +2439,9 @@
#. Tag: ulink
#: Web_Services.xml:744
-#, fuzzy, no-c-format
+#, no-c-format
msgid "wsrunclient"
-msgstr "client"
+msgstr "wsrunclient"
#. Tag: para
#: Web_Services.xml:748
@@ -2120,6 +2488,16 @@
"}\n"
"}"
msgstr ""
+"package echo;\n"
+" \n"
+"@javax.jws.WebService\n"
+"public class Echo\n"
+"{\n"
+"public String echo(String input)\n"
+"{\n"
+"return input;\n"
+"}\n"
+"}"
#. Tag: para
#: Web_Services.xml:764
@@ -2161,6 +2539,13 @@
"echo/jaxws/Echo.class\n"
"echo/jaxws/EchoResponse.class"
msgstr ""
+"$ javac -d . -classpath jboss-jaxws.jar Echo.java\n"
+"$ wsprovide -w echo.Echo\n"
+"Generating WSDL:\n"
+"EchoService.wsdl\n"
+"Writing Classes:\n"
+"echo/jaxws/Echo.class\n"
+"echo/jaxws/EchoResponse.class"
#. Tag: para
#: Web_Services.xml:771
@@ -2178,6 +2563,11 @@
"</port>\n"
"</service>"
msgstr ""
+"<service name='EchoService'>\n"
+"<port binding='tns:EchoBinding' name='EchoPort'>\n"
+"<soap:address location='REPLACE_WITH_ACTUAL_URL'/>\n"
+"</port>\n"
+"</service>"
#. Tag: para
#: Web_Services.xml:775
@@ -2196,6 +2586,12 @@
"</operation>\n"
"</portType>"
msgstr ""
+"<portType name='Echo'>\n"
+"<operation name='echo' parameterOrder='echo'>\n"
+"<input message='tns:Echo_echo'/>\n"
+"<output message='tns:Echo_echoResponse'/>\n"
+"</operation>\n"
+"</portType>"
#. Tag: para
#: Web_Services.xml:782
@@ -2235,6 +2631,22 @@
"</servlet-mapping>\n"
"</web-app>"
msgstr ""
+"<web-app xmlns="http://java.sun.com/xml/ns/j2ee"\n"
+"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"\n"
+"xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/"
+"xml/ns/j2ee/web-app_2_4.xsd"\n"
+"version="2.4">\n"
+" \n"
+"<servlet>\n"
+"<servlet-name>Echo</servlet-name>\n"
+"<servlet-class>echo.Echo</servlet-class>\n"
+"</servlet>\n"
+" \n"
+"<servlet-mapping>\n"
+"<servlet-name>Echo</servlet-name>\n"
+"<url-pattern>/Echo</url-pattern>\n"
+"</servlet-mapping>\n"
+"</web-app>"
#. Tag: para
#: Web_Services.xml:791
@@ -2257,6 +2669,16 @@
"adding: WEB-INF/classes/echo/Echo.class(in = 340) (out= 247)(deflated 27%)\n"
"adding: WEB-INF/web.xml(in = 576) (out= 271)(deflated 52%)"
msgstr ""
+"$ mkdir -p WEB-INF/classes\n"
+"$ cp -rp echo WEB-INF/classes/\n"
+"$ cp web.xml WEB-INF\n"
+"$ jar cvf echo.war WEB-INF\n"
+"added manifest\n"
+"adding: WEB-INF/(in = 0) (out= 0)(stored 0%)\n"
+"adding: WEB-INF/classes/(in = 0) (out= 0)(stored 0%)\n"
+"adding: WEB-INF/classes/echo/(in = 0) (out= 0)(stored 0%)\n"
+"adding: WEB-INF/classes/echo/Echo.class(in = 340) (out= 247)(deflated 27%)\n"
+"adding: WEB-INF/web.xml(in = 576) (out= 271)(deflated 52%)"
#. Tag: para
#: Web_Services.xml:795
@@ -2268,7 +2690,7 @@
#: Web_Services.xml:798
#, no-c-format
msgid "cp echo.war jboss-as/server/default/deploy"
-msgstr ""
+msgstr "cp echo.war jboss-as/server/default/deploy"
#. Tag: para
#: Web_Services.xml:799
@@ -2341,6 +2763,19 @@
"echo/ObjectFactory.java\n"
"echo/package-info.java"
msgstr ""
+"$ wsconsume -k EchoService.wsdl\n"
+"echo/Echo.java\n"
+"echo/EchoResponse.java\n"
+"echo/EchoService.java\n"
+"echo/Echo_Type.java\n"
+"echo/ObjectFactory.java\n"
+"echo/package-info.java\n"
+"echo/Echo.java\n"
+"echo/EchoResponse.java\n"
+"echo/EchoService.java\n"
+"echo/Echo_Type.java\n"
+"echo/ObjectFactory.java\n"
+"echo/package-info.java"
#. Tag: para
#: Web_Services.xml:824
@@ -2352,19 +2787,19 @@
#: Web_Services.xml:834
#, no-c-format
msgid "File"
-msgstr ""
+msgstr "Archivo"
#. Tag: emphasis
#: Web_Services.xml:839
#, no-c-format
msgid "Purpose"
-msgstr ""
+msgstr "Propósito"
#. Tag: para
#: Web_Services.xml:845
#, no-c-format
msgid "Echo.java"
-msgstr ""
+msgstr "Echo.java"
#. Tag: para
#: Web_Services.xml:850
@@ -2376,7 +2811,7 @@
#: Web_Services.xml:857
#, no-c-format
msgid "Echo_Type.java"
-msgstr ""
+msgstr "Echo_Type.java"
#. Tag: para
#: Web_Services.xml:862
@@ -2388,7 +2823,7 @@
#: Web_Services.xml:869
#, no-c-format
msgid "EchoResponse.java"
-msgstr ""
+msgstr "EchoResponse.java"
#. Tag: para
#: Web_Services.xml:874
@@ -2400,7 +2835,7 @@
#: Web_Services.xml:881
#, no-c-format
msgid "ObjectFactory.java"
-msgstr ""
+msgstr "ObjectFactory.java"
#. Tag: para
#: Web_Services.xml:886
@@ -2412,7 +2847,7 @@
#: Web_Services.xml:893
#, no-c-format
msgid "package-info.java"
-msgstr ""
+msgstr "package-info.java"
#. Tag: para
#: Web_Services.xml:898
@@ -2424,7 +2859,7 @@
#: Web_Services.xml:905
#, no-c-format
msgid "EchoService.java"
-msgstr ""
+msgstr "EchoService.java"
#. Tag: para
#: Web_Services.xml:910
@@ -2460,6 +2895,20 @@
" \n"
"}"
msgstr ""
+"@WebService(name = "Echo", targetNamespace = "http://echo/"
+"")\n"
+"public interface Echo {\n"
+"@WebMethod\n"
+"@WebResult(targetNamespace = "")\n"
+"@RequestWrapper(localName = "echo", targetNamespace = "http://"
+"echo/", className = "echo.Echo_Type")\n"
+"@ResponseWrapper(localName = "echoResponse", targetNamespace = "
+""http://echo/", className = "echo.EchoResponse")\n"
+"public String echo(\n"
+"@WebParam(name = "arg0", targetNamespace = "")\n"
+"String arg0);\n"
+" \n"
+"}"
#. Tag: para
#: Web_Services.xml:921
@@ -2484,6 +2933,16 @@
"}\n"
"}"
msgstr ""
+"package echo;\n"
+" \n"
+"@javax.jws.WebService(endpointInterface="echo.Echo")\n"
+"public class EchoImpl implements Echo\n"
+"{\n"
+"public String echo(String arg0)\n"
+"{\n"
+"return arg0;\n"
+"}\n"
+"}"
#. Tag: title
#: Web_Services.xml:928
@@ -2536,7 +2995,7 @@
#: Web_Services.xml:939
#, no-c-format
msgid "Online version:"
-msgstr ""
+msgstr "Versión en línea:"
#. Tag: programlisting
#: Web_Services.xml:942
@@ -2549,6 +3008,12 @@
"</port>\n"
"</service>"
msgstr ""
+"<service name="EchoService">\n"
+"<port binding="tns:EchoBinding" name="EchoPort">\n"
+"<soap:address location="http://localhost.localdomain:8080/echo/"
+"Echo"/>\n"
+"</port>\n"
+"</service>"
#. Tag: para
#: Web_Services.xml:943
@@ -2576,6 +3041,19 @@
"echo/ObjectFactory.java\n"
"echo/package-info.java"
msgstr ""
+"$ wsconsume -k http://localhost:8080/echo/Echo?wsdl\n"
+"echo/Echo.java\n"
+"echo/EchoResponse.java\n"
+"echo/EchoService.java\n"
+"echo/Echo_Type.java\n"
+"echo/ObjectFactory.java\n"
+"echo/package-info.java\n"
+"echo/Echo.java\n"
+"echo/EchoResponse.java\n"
+"echo/EchoService.java\n"
+"echo/Echo_Type.java\n"
+"echo/ObjectFactory.java\n"
+"echo/package-info.java"
#. Tag: para
#: Web_Services.xml:947
@@ -2622,6 +3100,38 @@
"}\n"
"}"
msgstr ""
+"@WebServiceClient(name = "EchoService", targetNamespace = ""
+"http://echo/", wsdlLocation = "http://localhost:8080/echo/Echo?"
+"wsdl")\n"
+"public class EchoService extends Service\n"
+"{\n"
+"private final static URL ECHOSERVICE_WSDL_LOCATION;\n"
+" \n"
+"static {\n"
+"URL url = null;\n"
+"try {\n"
+"url = new URL("http://localhost:8080/echo/Echo?wsdl");\n"
+"} catch (MalformedURLException e) {\n"
+"e.printStackTrace();\n"
+"}\n"
+"ECHOSERVICE_WSDL_LOCATION = url;\n"
+"}\n"
+" \n"
+"public EchoService(URL wsdlLocation, QName serviceName) {\n"
+"super(wsdlLocation, serviceName);\n"
+"}\n"
+" \n"
+"public EchoService() {\n"
+"super(ECHOSERVICE_WSDL_LOCATION, new QName("http://echo/", ""
+"EchoService"));\n"
+"}\n"
+" \n"
+"@WebEndpoint(name = "EchoPort")\n"
+"public Echo getEchoPort() {\n"
+"return (Echo)super.getPort(new QName("http://echo/", ""
+"EchoPort"), Echo.class);\n"
+"}\n"
+"}"
#. Tag: para
#: Web_Services.xml:951
@@ -2673,6 +3183,23 @@
"} \n"
"}"
msgstr ""
+"import echo.*;\n"
+"..\n"
+"public class EchoClient\n"
+"{\n"
+"public static void main(String args[])\n"
+"{\n"
+"if (args.length != 1)\n"
+"{\n"
+"System.err.println("usage: EchoClient <message>");\n"
+"System.exit(1);\n"
+"}\n"
+" \n"
+"EchoService service = new EchoService();\n"
+"Echo echo = service.getEchoPort();\n"
+"System.out.println("Server said: " + echo.echo(args[0]));\n"
+"} \n"
+"}"
#. Tag: para
#: Web_Services.xml:966
@@ -2690,6 +3217,8 @@
"$ wsrunclient EchoClient 'Hello World!'\n"
"Server said: Hello World!"
msgstr ""
+"$ wsrunclient EchoClient 'Hello World!'\n"
+"Server said: Hello World!"
#. Tag: para
#: Web_Services.xml:970
@@ -2716,6 +3245,18 @@
"System.out.println("Server said: " + echo.echo(args[0]));\n"
"..."
msgstr ""
+"...\n"
+"EchoService service = new EchoService();\n"
+"Echo echo = service.getEchoPort();\n"
+" \n"
+"/* Set NEW Endpoint Location */\n"
+"String endpointURL = "http://NEW_ENDPOINT_URL";\n"
+"BindingProvider bp = (BindingProvider)echo;\n"
+"bp.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, "
+"endpointURL);\n"
+" \n"
+"System.out.println("Server said: " + echo.echo(args[0]));\n"
+"..."
#. Tag: title
#: Web_Services.xml:977
@@ -2727,19 +3268,19 @@
#: Web_Services.xml:981
#, no-c-format
msgid "wsconsume reference page"
-msgstr ""
+msgstr "Página de referencia wsconsume"
#. Tag: ulink
#: Web_Services.xml:986
#, no-c-format
msgid "wsprovide reference page"
-msgstr ""
+msgstr "Página de referencia wsprovide"
#. Tag: ulink
#: Web_Services.xml:991
#, no-c-format
msgid "wsrunclient reference page"
-msgstr ""
+msgstr "Página de referencia wsrunclient"
#. Tag: title
#: Web_Services.xml:998
@@ -2757,7 +3298,7 @@
#: Web_Services.xml:1005
#, no-c-format
msgid "http://java.sun.com/webservices/docs/2.0/jaxws/customizations.html"
-msgstr ""
+msgstr "http://java.sun.com/webservices/docs/2.0/jaxws/customizations.html"
#. Tag: para
#: Web_Services.xml:1009
@@ -2793,9 +3334,9 @@
#. Tag: title
#: Web_Services.xml:1031 Web_Services.xml:1107
-#, fuzzy, no-c-format
+#, no-c-format
msgid "<title>Specifications</title>"
-msgstr "<title>FD</title>"
+msgstr "<title>Especificaciones</title>"
#. Tag: para
#: Web_Services.xml:1032
@@ -2860,6 +3401,28 @@
"{ ... }\n"
"}"
msgstr ""
+"@WebService(name = "StatefulEndpoint", targetNamespace = ""
+"http://org.jboss.ws/samples/wsaddressing\n"
+" ", serviceName = ""
+"TestService")\n"
+"@EndpointConfig(configName = "Standard WSAddressing Endpoint")\n"
+"@HandlerChain(file = "WEB-INF/jaxws-handlers.xml")\n"
+"@SOAPBinding(style = SOAPBinding.Style.RPC)\n"
+"public class StatefulEndpointImpl implements StatefulEndpoint, "
+"ServiceLifecycle\n"
+"{\n"
+"@WebMethod\n"
+"public void addItem(String item)\n"
+"{ ... }\n"
+" \n"
+"@WebMethod\n"
+"public void checkout()\n"
+"{ ... }\n"
+" \n"
+"@WebMethod\n"
+"public String getItems()\n"
+"{ ... }\n"
+"}"
#. Tag: para
#: Web_Services.xml:1055
@@ -2899,6 +3462,22 @@
" \n"
"</handler-chains>"
msgstr ""
+"<handler-chains xmlns="http://java.sun.com/xml/ns/javaee" \n"
+" xmlns:xsi="http://www.w3.org/2001/"
+"XMLSchema-instance"\n"
+"xsi:schemaLocation="http://java.sun.com/xml/ns/javaee "
+"javaee_web_services_1_2.xsd">\n"
+" \n"
+"<handler-chain>\n"
+"<protocol-bindings>##SOAP11_HTTP</protocol-bindings>\n"
+"<handler>\n"
+"<handler-name>Application Server Handler</handler-name>\n"
+"<handler-class>org.jboss.test.ws.jaxws.samples.wsaddressing."
+"ServerHandler</handler-class>\n"
+"</handler>\n"
+"</handler-chain>\n"
+" \n"
+"</handler-chains>"
#. Tag: para
#: Web_Services.xml:1062
@@ -2942,6 +3521,14 @@
"customHandlerChain.add(new WSAddressingClientHandler());\n"
"bindingProvider.getBinding().setHandlerChain(customHandlerChain);"
msgstr ""
+"Service service = Service.create(wsdlURL, serviceName);\n"
+"port1 = (StatefulEndpoint)service.getPort(StatefulEndpoint.class);\n"
+"BindingProvider bindingProvider = (BindingProvider)port1;\n"
+" \n"
+"List<Handler> customHandlerChain = new ArrayList<Handler>();\n"
+"customHandlerChain.add(new ClientHandler());\n"
+"customHandlerChain.add(new WSAddressingClientHandler());\n"
+"bindingProvider.getBinding().setHandlerChain(customHandlerChain);"
#. Tag: para
#: Web_Services.xml:1076
@@ -2982,6 +3569,26 @@
"}\n"
"}"
msgstr ""
+"public class AddressingStatefulTestCase extends JBossWSTest\n"
+"{\n"
+"public void testAddItem() throws Exception\n"
+"{\n"
+"port1.addItem("Ice Cream");\n"
+"port1.addItem("Ferrari");\n"
+" \n"
+"port2.addItem("Mars Bar");\n"
+"port2.addItem("Porsche");\n"
+"}\n"
+" \n"
+"public void testGetItems() throws Exception\n"
+"{\n"
+"String items1 = port1.getItems();\n"
+"assertEquals("[Ice Cream, Ferrari]", items1);\n"
+" \n"
+"String items2 = port2.getItems();\n"
+"assertEquals("[Mars Bar, Porsche]", items2);\n"
+"}\n"
+"}"
#. Tag: emphasis
#: Web_Services.xml:1084 Web_Services.xml:1459
@@ -3073,6 +3680,79 @@
"</env:Body>\n"
"</env:Envelope>"
msgstr ""
+"<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/"
+"'>\n"
+"<env:Header xmlns:wsa='http://schemas.xmlsoap.org/ws/2004/08/"
+"addressing'>\n"
+"<wsa:To>uri:jbossws-samples-wsaddr/TestService</wsa:To>\n"
+"<wsa:Action>http://org.jboss.ws/addressing/stateful/action</wsa:"
+"Action>\n"
+"<wsa:ReferenceParameters>\n"
+"<ns1:clientid xmlns:ns1='http://somens'>clientid-1</ns1:"
+"clientid>\n"
+"</wsa:ReferenceParameters>\n"
+"</env:Header>\n"
+"<env:Body>\n"
+"<ns1:addItem xmlns:ns1='http://org.jboss.ws/samples/wsaddr'"
+">\n"
+"<String_1>Ice Cream</String_1>\n"
+"</ns1:addItem>\n"
+"</env:Body>\n"
+"</env:Envelope>\n"
+" \n"
+"<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/"
+"'>\n"
+"<env:Header xmlns:wsa='http://schemas.xmlsoap.org/ws/2004/08/"
+"addressing'>\n"
+"<wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>\n"
+"<wsa:Action>http://org.jboss.ws/addressing/stateful/actionReply</"
+"wsa:Action>\n"
+"<ns1:clientid xmlns:ns1='http://somens'>clientid-1</ns1:"
+"clientid>\n"
+"</env:Header>\n"
+"<env:Body>\n"
+"<ns1:addItemResponse xmlns:ns1='http://org.jboss.ws/samples/"
+"wsaddr'/>\n"
+"</env:Body>\n"
+"</env:Envelope>\n"
+" \n"
+"...\n"
+" \n"
+"<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/"
+"'>\n"
+"<env:Header xmlns:wsa='http://schemas.xmlsoap.org/ws/2004/08/"
+"addressing'>\n"
+"<wsa:To>uri:jbossws-samples-wsaddr/TestService</wsa:To>\n"
+"<wsa:Action>http://org.jboss.ws/addressing/stateful/action</wsa:"
+"Action>\n"
+"<wsa:ReferenceParameters>\n"
+"<ns1:clientid xmlns:ns1='http://somens'>clientid-1</ns1:"
+"clientid>\n"
+"</wsa:ReferenceParameters>\n"
+"</env:Header>\n"
+"<env:Body>\n"
+"<ns1:getItems xmlns:ns1='http://org.jboss.ws/samples/wsaddr'/"
+">\n"
+"</env:Body>\n"
+"</env:Envelope>\n"
+" \n"
+"<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/"
+"'>\n"
+"<env:Header xmlns:wsa='http://schemas.xmlsoap.org/ws/2004/08/"
+"addressing'>\n"
+"<wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>\n"
+"<wsa:Action>http://org.jboss.ws/addressing/stateful/actionReply</"
+"wsa:Action>\n"
+"<ns1:clientid xmlns:ns1='http://somens'>clientid-1</ns1:"
+"clientid>\n"
+"</env:Header>\n"
+"<env:Body>\n"
+"<ns1:getItemsResponse xmlns:ns1='http://org.jboss.ws/samples/"
+"wsaddr'>\n"
+"<result>[Ice Cream, Ferrari]</result>\n"
+"</ns1:getItemsResponse>\n"
+"</env:Body>\n"
+"</env:Envelope>"
#. Tag: title
#: Web_Services.xml:1095
@@ -3107,8 +3787,7 @@
#. Tag: para
#: Web_Services.xml:1108
#, no-c-format
-msgid ""
-"WS-Eventing is defined by the combination of the following specifications:"
+msgid "WS-Eventing is defined by the combination of the following specifications:"
msgstr ""
#. Tag: ulink
@@ -3129,8 +3808,7 @@
msgid ""
"The following section will introduce the main eventing actors and their "
"responsiblities."
-msgstr ""
-"Los siguientes son los archivos en el directorio deploy y sus funciones:"
+msgstr "Los siguientes son los archivos en el directorio deploy y sus funciones:"
#. Tag: para
#: Web_Services.xml:1129
@@ -3145,7 +3823,7 @@
#: Web_Services.xml:1137
#, no-c-format
msgid "Collaboration"
-msgstr ""
+msgstr "Colaboración"
#. Tag: para
#: Web_Services.xml:1141
@@ -3204,7 +3882,7 @@
#: Web_Services.xml:1165
#, no-c-format
msgid "The relevant steps are:"
-msgstr ""
+msgstr "Los pasos relevantes son:"
#. Tag: para
#: Web_Services.xml:1170
@@ -3283,12 +3961,48 @@
"}\n"
"}"
msgstr ""
+"package org.jboss.test.ws.jaxws.samples.wseventing;\n"
+"..\n"
+"import javax.jws.WebService;\n"
+"\n"
+"import org.jboss.logging.Logger;\n"
+"import org.jboss.ws.annotation.EndpointConfig;\n"
+"import org.jboss.ws.extensions.eventing.jaxws.AbstractEventSourceEndpoint;\n"
+" \n"
+"/**\n"
+"* @author Heiko.Braun at jboss.org\n"
+"* @version $Id: Web_Services.xml,v 1.2 2007/11/22 13:30:13 vrenish Exp $\n"
+"* @since 18.01.2007\n"
+"*/\n"
+"@WebService"
+"( (1)\n"
+"name = "EventSource",\n"
+"portName = "EventSourcePort",\n"
+"targetNamespace = "http://schemas.xmlsoap.org/ws/2004/08/"
+"eventing",\n"
+"wsdlLocation = "/WEB-INF/wsdl/sysmon."
+"wsdl", (2)\n"
+"endpointInterface = "org.jboss.ws.extensions.eventing.jaxws."
+"EventSourceEndpoint")\n"
+"@EndpointConfig(configName = "Standard WSAddressing "
+"Endpoint") (3)\n"
+"public class SysmonRegistrationEndpoint extends AbstractEventSourceEndpoint "
+"{ (4)\n"
+" \n"
+"private static final Logger log = Logger.getLogger"
+"(SysmonRegistrationEndpoint.class);\n"
+" \n"
+"protected Logger getLogger()\n"
+"{\n"
+"return log;\n"
+"}\n"
+"}"
#. Tag: para
#: Web_Services.xml:1190
#, no-c-format
msgid "Of course we need a <literal>@WebService</literal> annotation"
-msgstr ""
+msgstr "Por supuesto necesitamos una anotación <literal>@WebService</literal>"
#. Tag: para
#: Web_Services.xml:1195
@@ -3299,8 +4013,7 @@
#. Tag: para
#: Web_Services.xml:1200
#, no-c-format
-msgid ""
-"You need to tell JBossWS that it requires WS-Addressing for this endpoint"
+msgid "You need to tell JBossWS that it requires WS-Addressing for this endpoint"
msgstr ""
#. Tag: para
@@ -3407,6 +4120,75 @@
" \n"
"</wsdl:definitions>"
msgstr ""
+"<?xml version="1.0" encoding="UTF-8"?>\n"
+" \n"
+"<wsdl:definitions\n"
+"targetNamespace="http://www.jboss.org/sysmon"\n"
+"xmlns:tns="http://www.jboss.org/sysmon"\n"
+"xmlns:wse='http://schemas.xmlsoap.org/ws/2004/08/eventing'\n"
+"xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/'\n"
+"xmlns:wsa10='http://www.w3.org/2005/08/addressing'\n"
+"xmlns:xs='http://www.w3.org/2001/XMLSchema'\n"
+"xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">\n"
+" \n"
+"<wsdl:import\n"
+"(1) namespace='http://schemas.xmlsoap.org/ws/2004/08/"
+"eventing'\n"
+"location='jbwse.wsdl' />\n"
+" \n"
+"<wsdl:types>\n"
+" \n"
+"<xs:schema targetNamespace='http://schemas.xmlsoap.org/ws/2004/08/"
+"eventing'>\n"
+"(2) <xs:include schemaLocation='jbwse.xsd'/>\n"
+"</xs:schema>\n"
+" \n"
+"(3) <xs:schema\n"
+"targetNamespace="http://www.jboss.org/sysmon"\n"
+"elementFormDefault="qualified"\n"
+"blockDefault="#all">\n"
+"<xs:element name="SystemStatus">\n"
+"<xs:complexType>\n"
+"<xs:sequence>\n"
+"<xs:element name="Time " type="xs:dateTime"/>\n"
+"<xs:element name="HostName" type="xs:string"/>\n"
+"<xs:element name="HostAddress" type="xs:string"/>\n"
+"<xs:element name="ActiveThreadCount" type="xs:int"/"
+">\n"
+"<xs:element name="FreeMemory" type="xs:string"/>\n"
+"<xs:element name="MaxMemory" type="xs:string"/>\n"
+"</xs:sequence>\n"
+"</xs:complexType>\n"
+"</xs:element>\n"
+"</xs:schema>\n"
+" \n"
+"</wsdl:types>\n"
+" \n"
+"<wsdl:message name='SystemInfoMsg'>\n"
+"<wsdl:part name='body' element='tns:SystemStatus'/"
+">\n"
+"</wsdl:message>\n"
+" \n"
+"(4) <wsdl:portType name='SystemInfo' wse:EventSource='"
+"true'>\n"
+"<wsdl:operation name='SysmonOp'>\n"
+"<wsdl:output message='tns:SystemInfoMsg'/>\n"
+"</wsdl:operation>\n"
+"</wsdl:portType>\n"
+" \n"
+"<wsdl:binding name="SystemInfoBinding" type="tns:"
+"SystemInfo">\n"
+"<soap:binding style="document" transport="http://schemas."
+"xmlsoap.org/soap/http"/>\n"
+"<wsdl:operation name="SysmonOp">\n"
+"<soap:operation soapAction=""/>\n"
+"<wsdl:output>\n"
+"<soap:body use="literal"/>\n"
+"</wsdl:output>\n"
+"</wsdl:operation>\n"
+"</wsdl:binding>\n"
+" \n"
+"</wsdl:definitions>"
#. Tag: para
#: Web_Services.xml:1223
@@ -3454,7 +4236,7 @@
#: Web_Services.xml:1250
#, no-c-format
msgid "java:/EventDispatcher"
-msgstr ""
+msgstr "java:/EventDispatcher"
#. Tag: para
#: Web_Services.xml:1251
@@ -3471,12 +4253,16 @@
"void dispatch(URI eventSourceNS, Element payload);\n"
"}"
msgstr ""
+"public interface EventDispatcher\n"
+"{\n"
+"void dispatch(URI eventSourceNS, Element payload);\n"
+"}"
#. Tag: emphasis
#: Web_Services.xml:1256
#, no-c-format
msgid "Example notification"
-msgstr ""
+msgstr "Notificación de ejemplo"
#. Tag: programlisting
#: Web_Services.xml:1258
@@ -3497,6 +4283,20 @@
"//\n"
"}"
msgstr ""
+"(1) URI eventSourceURI = new URI("http://http://www.jboss.org/sysmon/"
+"SystemInfo");\n"
+"(2) Element payload = DOMUtils.parse("SOME XML STRING");\n"
+"try\n"
+"{\n"
+"InitialContext iniCtx = getInitialContext();\n"
+"(3) EventDispatcher delegate = (EventDispatcher)\n"
+"iniCtx.lookup(EventingConstants.DISPATCHER_JNDI_NAME);\n"
+"(4) delegate.dispatch(eventSourceURI, payload);\n"
+"}\n"
+"catch (Exception e)\n"
+"{\n"
+"//\n"
+"}"
#. Tag: para
#: Web_Services.xml:1261
@@ -3534,7 +4334,7 @@
#: Web_Services.xml:1284
#, no-c-format
msgid "jboss.ws.eventing:service=SubscriptionManager"
-msgstr ""
+msgstr "jboss.ws.eventing:service=SubscriptionManager"
#. Tag: para
#: Web_Services.xml:1285
@@ -3556,20 +4356,19 @@
#: Web_Services.xml:1295
#, no-c-format
msgid "maximumPoolSize - maximum number of threads"
-msgstr ""
+msgstr "maximumPoolSize - número máximo de hilos"
#. Tag: para
#: Web_Services.xml:1300
#, no-c-format
-msgid ""
-"eventKeepAlive - keep alive before an undelivered event message is discarded."
+msgid "eventKeepAlive - keep alive before an undelivered event message is discarded."
msgstr ""
#. Tag: title
#: Web_Services.xml:1310
#, no-c-format
msgid "WS-Security"
-msgstr ""
+msgstr "WS-Security"
#. Tag: para
#: Web_Services.xml:1311
@@ -3595,13 +4394,12 @@
#: Web_Services.xml:1318
#, no-c-format
msgid "<emphasis>Specifications</emphasis>"
-msgstr ""
+msgstr "<emphasis>Especificaciones</emphasis>"
#. Tag: para
#: Web_Services.xml:1320
#, no-c-format
-msgid ""
-"WS-Security is defined by the combination of the following specifications:"
+msgid "WS-Security is defined by the combination of the following specifications:"
msgstr ""
#. Tag: ulink
@@ -3707,6 +4505,23 @@
"</config>\n"
"</jboss-ws-security>"
msgstr ""
+"<jboss-ws-security xmlns="http://www.jboss.com/ws-security/"
+"config" \n"
+"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"\n"
+"xsi:schemaLocation="http://www.jboss.com/ws-security/config \n"
+"http://www.jboss.com/ws-security/schema/jboss-ws-security_1_0.xsd">\n"
+"(1) <key-store-file>WEB-INF/wsse.keystore</key-store-file>\n"
+"(2) <key-store-password>jbossws</key-store-password>\n"
+"(3) <trust-store-file>WEB-INF/wsse.truststore</trust-store-"
+"file>\n"
+"(4) <trust-store-password>jbossws</trust-store-password>\n"
+"(5) <config>\n"
+"(6) <sign type="x509v3" alias="wsse"/>\n"
+"(7) <requires>\n"
+"(8) <signature/>\n"
+"</requires>\n"
+"</config>\n"
+"</jboss-ws-security>"
#. Tag: para
#: Web_Services.xml:1378
@@ -3798,6 +4613,12 @@
"...\n"
"}"
msgstr ""
+"@WebService\n"
+"@EndpointConfig(configName = "Standard WSSecurity Endpoint")\n"
+"public class HelloJavaBean\n"
+"{\n"
+"...\n"
+"}"
#. Tag: title
#: Web_Services.xml:1425
@@ -3822,6 +4643,18 @@
"</config>\n"
"</jboss-ws-security>"
msgstr ""
+"<jboss-ws-security xmlns="http://www.jboss.com/ws-security/"
+"config" \n"
+"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"\n"
+"xsi:schemaLocation="http://www.jboss.com/ws-security/config \n"
+"http://www.jboss.com/ws-security/schema/jboss-ws-security_1_0.xsd">\n"
+"(1) <config>\n"
+"(2) <sign type="x509v3" alias="wsse"/>\n"
+"(3) <requires>\n"
+"(4) <signature/>\n"
+"</requires>\n"
+"</config>\n"
+"</jboss-ws-security>"
#. Tag: para
#: Web_Services.xml:1429
@@ -3898,6 +4731,20 @@
"<sysproperty key="org.jboss.ws.wsse.trustStoreType" value=""
"jks"/>"
msgstr ""
+"<sysproperty key="org.jboss.ws.wsse.keyStore"\n"
+"value="${tests.output.dir}/resources/jaxrpc/samples/wssecurity/wsse."
+"keystore"/>\n"
+"<sysproperty key="org.jboss.ws.wsse.trustStore" \n"
+"value="${tests.output.dir}/resources/jaxrpc/samples/wssecurity/wsse."
+"truststore"/>\n"
+"<sysproperty key="org.jboss.ws.wsse.keyStorePassword" "
+"value="jbossws"/>\n"
+"<sysproperty key="org.jboss.ws.wsse.trustStorePassword" "
+"value="jbossws"/>\n"
+"<sysproperty key="org.jboss.ws.wsse.keyStoreType" value=""
+"jks"/>\n"
+"<sysproperty key="org.jboss.ws.wsse.trustStoreType" value=""
+"jks"/>"
#. Tag: para
#: Web_Services.xml:1461
@@ -3944,6 +4791,30 @@
"</env:Body>\n"
"</env:Envelope>"
msgstr ""
+"<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
+"">\n"
+"<env:Header>\n"
+"<wsse:Security env:mustUnderstand="1" ...>\n"
+"<wsu:Timestamp wsu:Id="timestamp">...</wsu:Timestamp>\n"
+"<wsse:BinarySecurityToken ...>\n"
+"...\n"
+"</wsse:BinarySecurityToken>\n"
+"<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#""
+">\n"
+"...\n"
+"</ds:Signature>\n"
+"</wsse:Security>\n"
+"</env:Header>\n"
+"<env:Body wsu:Id="element-1-1140197309843-12388840" ...>\n"
+"<ns1:echoUserType xmlns:ns1="http://org.jboss.ws/samples/"
+"wssecurity">\n"
+"<UserType_1 xmlns:xsi="http://www.w3.org/2001/XMLSchema-"
+"instance">\n"
+"<msg>Kermit</msg>\n"
+"</UserType_1>\n"
+"</ns1:echoUserType>\n"
+"</env:Body>\n"
+"</env:Envelope>"
#. Tag: title
#: Web_Services.xml:1473
@@ -3978,6 +4849,8 @@
"security.provider.<n>=org.bouncycastle.jce.provider."
"BouncyCastleProvider"
msgstr ""
+"security.provider.<n>=org.bouncycastle.jce.provider."
+"BouncyCastleProvider"
#. Tag: para
#: Web_Services.xml:1481
@@ -4086,9 +4959,9 @@
#. Tag: para
#: Web_Services.xml:1534
-#, fuzzy, no-c-format
+#, no-c-format
msgid "DataSources configuration"
-msgstr "Configuración de JBoss"
+msgstr "Configuración de DataSources"
#. Tag: programlisting
#: Web_Services.xml:1537
@@ -4098,6 +4971,9 @@
"<attribute name="DataSourceUrl">java:/DefaultDS</"
"attribute>"
msgstr ""
+"<!-- Datasource to Database-->\n"
+"<attribute name="DataSourceUrl">java:/DefaultDS</"
+"attribute>"
#. Tag: para
#: Web_Services.xml:1538
@@ -4123,6 +4999,17 @@
" <attribute "
"name="DropOnStart">false</attribute>"
msgstr ""
+"<!-- Should all tables be created on Start-->\n"
+" <attribute "
+"name="CreateOnStart">false</attribute>\n"
+" <!-- Should all "
+"tables be dropped on Stop-->\n"
+" <attribute "
+"name="DropOnStop">true</attribute>\n"
+" <!-- Should all "
+"tables be dropped on Start-->\n"
+" <attribute "
+"name="DropOnStart">false</attribute>"
#. Tag: para
#: Web_Services.xml:1542
@@ -4149,9 +5036,9 @@
#. Tag: para
#: Web_Services.xml:1546
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Other common configuration:"
-msgstr "Configuración del cliente"
+msgstr "Otra configuración común:"
#. Tag: para
#: Web_Services.xml:1549
@@ -4176,9 +5063,9 @@
#. Tag: title
#: Web_Services.xml:1556
-#, fuzzy, no-c-format
+#, no-c-format
msgid "JBoss JAXR Configuration"
-msgstr "Configuración de JBoss"
+msgstr "Configuración de JBoss JAXR"
#. Tag: para
#: Web_Services.xml:1557
@@ -4199,6 +5086,11 @@
"jaxr.publish.url=http://localhost:8080/juddi/publish\n"
"juddi.proxy.transportClass=org.jboss.jaxr.juddi.transport.SaajTransport"
msgstr ""
+"javax.xml.registry.ConnectionFactoryClass=org.apache.ws.scout.registry."
+"ConnectionFactoryImpl \n"
+"jaxr.query.url=http://localhost:8080/juddi/inquiry \n"
+"jaxr.publish.url=http://localhost:8080/juddi/publish\n"
+"juddi.proxy.transportClass=org.jboss.jaxr.juddi.transport.SaajTransport"
#. Tag: para
#: Web_Services.xml:1561
@@ -4236,7 +5128,7 @@
#: Web_Services.xml:1579
#, no-c-format
msgid "System.setProperty(propertyname, propertyvalue);"
-msgstr ""
+msgstr "System.setProperty(propertyname, propertyvalue);"
#. Tag: title
#: Web_Services.xml:1583
@@ -4353,6 +5245,18 @@
"connection.setCredentials(creds);\n"
"}"
msgstr ""
+"/**\n"
+"* Does authentication with the uddi registry\n"
+"*/\n"
+"protected void login() throws JAXRException\n"
+"{\n"
+"PasswordAuthentication passwdAuth = new PasswordAuthentication(userid, "
+"passwd.toCharArray());\n"
+"Set creds = new HashSet();\n"
+"creds.add(passwdAuth);\n"
+" \n"
+"connection.setCredentials(creds);\n"
+"}"
#. Tag: para
#: Web_Services.xml:1615
@@ -4431,6 +5335,72 @@
"return org;\n"
"}"
msgstr ""
+"/**\n"
+"* Creates a Jaxr Organization with 1 or more services\n"
+"*/\n"
+"protected Organization createOrganization(String orgname) throws "
+"JAXRException\n"
+"{\n"
+"Organization org = blm.createOrganization(getIString(orgname));\n"
+"org.setDescription(getIString("JBoss Inc"));\n"
+"Service service = blm.createService(getIString("JBOSS JAXR "
+"Service"));\n"
+"service.setDescription(getIString("Services of XML Registry"));\n"
+"//Create serviceBinding\n"
+"ServiceBinding serviceBinding = blm.createServiceBinding();\n"
+"serviceBinding.setDescription(blm.createInternationalString("Test "
+"Service Binding"));\n"
+" \n"
+"//Turn validation of URI off\n"
+"serviceBinding.setValidateURI(false);\n"
+"serviceBinding.setAccessURI("http://testjboss.org");\n"
+".. \n"
+"// Add the serviceBinding to the service\n"
+"service.addServiceBinding(serviceBinding);\n"
+" \n"
+"User user = blm.createUser();\n"
+"org.setPrimaryContact(user);\n"
+"PersonName personName = blm.createPersonName("Anil S");\n"
+"TelephoneNumber telephoneNumber = blm.createTelephoneNumber();\n"
+"telephoneNumber.setNumber("111-111-7777");\n"
+"telephoneNumber.setType(null);\n"
+"PostalAddress address = blm.createPostalAddress("111", "My "
+"Drive", "BuckHead", "GA", "USA", "
+""1111-111", "");\n"
+"Collection postalAddresses = new ArrayList();\n"
+"postalAddresses.add(address);\n"
+"Collection emailAddresses = new ArrayList();\n"
+"EmailAddress emailAddress = blm.createEmailAddress("anil at apache."
+"org");\n"
+"emailAddresses.add(emailAddress);\n"
+" \n"
+"Collection numbers = new ArrayList();\n"
+"numbers.add(telephoneNumber);\n"
+"user.setPersonName(personName);\n"
+"user.setPostalAddresses(postalAddresses);\n"
+"user.setEmailAddresses(emailAddresses);\n"
+"user.setTelephoneNumbers(numbers);\n"
+" \n"
+"ClassificationScheme cScheme = getClassificationScheme("ntis-gov:"
+"naics", "");\n"
+"Key cKey = blm.createKey("uuid:C0B9FE13-324F-413D-5A5B-"
+"2004DB8E5CC2");\n"
+"cScheme.setKey(cKey);\n"
+"Classification classification = blm.createClassification(cScheme, \n"
+" "Computer Systems Design and Related "
+"Services", "5415");\n"
+"org.addClassification(classification);\n"
+"ClassificationScheme cScheme1 = getClassificationScheme("D-U-N-S", "
+""");\n"
+"Key cKey1 = blm.createKey("uuid:3367C81E-FF1F-4D5A-B202-"
+"3EB13AD02423");\n"
+"cScheme1.setKey(cKey1);\n"
+"ExternalIdentifier ei = blm.createExternalIdentifier(cScheme1, "D-U-N-S "
+"number", "08-146-6849");\n"
+"org.addExternalIdentifier(ei);\n"
+"org.addService(service);\n"
+"return org;\n"
+"}"
#. Tag: para
#: Web_Services.xml:1619
@@ -4495,6 +5465,58 @@
"}\n"
"}"
msgstr ""
+"/**\n"
+"* Locale aware Search a business in the registry\n"
+"*/\n"
+"public void searchBusiness(String bizname) throws JAXRException\n"
+"{\n"
+"try\n"
+"{\n"
+"// Get registry service and business query manager\n"
+"this.getJAXREssentials();\n"
+" \n"
+"// Define find qualifiers and name patterns\n"
+"Collection findQualifiers = new ArrayList();\n"
+"findQualifiers.add(FindQualifier.SORT_BY_NAME_ASC);\n"
+"Collection namePatterns = new ArrayList();\n"
+"String pattern = "%" + bizname + "%";\n"
+"LocalizedString ls = blm.createLocalizedString(Locale.getDefault(), "
+"pattern);\n"
+"namePatterns.add(ls);\n"
+" \n"
+"// Find based upon qualifier type and values\n"
+"BulkResponse response = bqm.findOrganizations(findQualifiers, namePatterns, "
+"null, null, null, null);\n"
+" \n"
+"// check how many organisation we have matched\n"
+"Collection orgs = response.getCollection();\n"
+"if (orgs == null)\n"
+"{\n"
+"log.debug(" -- Matched 0 orgs");\n"
+" \n"
+"}\n"
+"else\n"
+"{\n"
+"log.debug(" -- Matched " + orgs.size() + " organizations -- "
+"");\n"
+" \n"
+"// then step through them\n"
+"for (Iterator orgIter = orgs.iterator(); orgIter.hasNext();)\n"
+"{\n"
+"Organization org = (Organization)orgIter.next();\n"
+"log.debug("Org name: " + getName(org));\n"
+"log.debug("Org description: " + getDescription(org));\n"
+"log.debug("Org key id: " + getKey(org));\n"
+"checkUser(org);\n"
+"checkServices(org);\n"
+"}\n"
+"}\n"
+"}\n"
+"finally\n"
+"{\n"
+"connection.close();\n"
+"}\n"
+"}"
#. Tag: para
#: Web_Services.xml:1623
@@ -4552,7 +5574,7 @@
#: Web_Services.xml:1655
#, no-c-format
msgid "Resources"
-msgstr ""
+msgstr "Recursos"
#. Tag: ulink
#: Web_Services.xml:1659
@@ -4564,7 +5586,7 @@
#: Web_Services.xml:1664
#, no-c-format
msgid "J2EE 1.4 Tutorial"
-msgstr ""
+msgstr "Tutorial J2EE 1.4"
#. Tag: ulink
#: Web_Services.xml:1669
@@ -4576,7 +5598,7 @@
#: Web_Services.xml:1678
#, no-c-format
msgid "WS-Policy"
-msgstr ""
+msgstr "WS-Policy"
#. Tag: para
#: Web_Services.xml:1679
@@ -4626,13 +5648,12 @@
#: Web_Services.xml:1692
#, no-c-format
msgid "Specification"
-msgstr ""
+msgstr "Especificación"
#. Tag: para
#: Web_Services.xml:1693
#, no-c-format
-msgid ""
-"WS-Policy is defined by the combination of the following specifications:"
+msgid "WS-Policy is defined by the combination of the following specifications:"
msgstr ""
#. Tag: programlisting
@@ -4644,6 +5665,10 @@
"* <ulink url=\"http://www.w3.org/Submission/WS-PolicyAttachment/\"> WS-"
"Policy-Attachment specification</ulink>"
msgstr ""
+"* <ulink url=\"http://www.w3.org/Submission/WS-Policy/\"> WS-Policy "
+"specification</ulink>\n"
+"* <ulink url=\"http://www.w3.org/Submission/WS-PolicyAttachment/\"> WS-"
+"Policy-Attachment specification</ulink>"
#. Tag: title
#: Web_Services.xml:1700
@@ -4767,6 +5792,98 @@
"</service>\n"
"</definitions>"
msgstr ""
+"@WebService(name = "Hello", \n"
+"targetNamespace = "http://org.jboss.ws/samples/wssecuritypolicy",\n"
+"wsdlLocation="WEB-INF/wsdl/HelloService.wsdl")\n"
+"@SOAPBinding(style = SOAPBinding.Style.RPC)\n"
+"public class HelloJavaBean\n"
+"{\n"
+"private Logger log = Logger.getLogger(HelloJavaBean.class);\n"
+"..\n"
+"@WebMethod\n"
+"public UserType echoUserType(@WebParam(name = "user") UserType "
+"in0)\n"
+"{\n"
+"log.info(in0);\n"
+"return in0;\n"
+"}\n"
+"}\n"
+"<?xml version="1.0" encoding="UTF-8"?>\n"
+"<definitions name='HelloService' targetNamespace='http://"
+"org.jboss.ws/samples/wssecuritypolicy' xmlns='http://schemas."
+"xmlsoap.org/wsdl/' xmlns:ns1='http://org.jboss.ws/samples/"
+"wssecurity' xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/"
+"' xmlns:tns='http://org.jboss.ws/samples/wssecuritypolicy' "
+"xmlns:wsp='http://schemas.xmlsoap.org/ws/2004/09/policy' xmlns:"
+"xsd='http://www.w3.org/2001/XMLSchema'>\n"
+"<types>\n"
+"<xs:schema targetNamespace='http://org.jboss.ws/samples/"
+"wssecurity' version='1.0' \n"
+" xmlns:xs='http://www.w3.org/2001/XMLSchema'>\n"
+"<xs:complexType name='UserType'>\n"
+"<xs:sequence>\n"
+"<xs:element minOccurs='0' name='msg' type='xs:"
+"string'/>\n"
+"</xs:sequence>\n"
+"</xs:complexType>\n"
+"</xs:schema>\n"
+"</types>\n"
+"<wsp:Policy wsu:Id='X509EndpointPolicy'\n"
+" xmlns:wsu='http://docs.oasis-open.org/wss/2004/01/oasis-200401-"
+"wss-wssecurity-utility-1.0.xsd'>\n"
+"<wsp:All>\n"
+"<sp:jboss-ws-security xmlns:sp='http://www.jboss.com/ws-security/"
+"schema/jboss-ws-security_1_0.xsd'>\n"
+"<sp:key-store-file>WEB-INF/wsse.keystore</sp:key-store-file>\n"
+"<sp:key-store-password>jbossws</sp:key-store-password>\n"
+"<sp:trust-store-file>WEB-INF/wsse.truststore</sp:trust-store-"
+"file>\n"
+"<sp:trust-store-password>jbossws</sp:trust-store-password>\n"
+"<sp:config>\n"
+"<sp:encrypt alias='wsse' type='x509v3'/>\n"
+"<sp:requires>\n"
+"<sp:encryption/>\n"
+"</sp:requires>\n"
+"</sp:config>\n"
+"</sp:jboss-ws-security>\n"
+"</wsp:All>\n"
+"</wsp:Policy>\n"
+"<message name='Hello_echoUserType'>\n"
+"<part name='user' type='ns1:UserType'/>\n"
+"</message>\n"
+"<message name='Hello_echoUserTypeResponse'>\n"
+"<part name='return' type='ns1:UserType'/>\n"
+"</message>\n"
+"<portType name='Hello'>\n"
+"<operation name='echoUserType' parameterOrder='user'"
+">\n"
+"<input message='tns:Hello_echoUserType'/>\n"
+"<output message='tns:Hello_echoUserTypeResponse'/>\n"
+"</operation>\n"
+"</portType>\n"
+"<binding name='HelloBinding' type='tns:Hello'>\n"
+"<wsp:PolicyReference URI='#X509EndpointPolicy'/>\n"
+"<soap:binding style='rpc' transport='http://schemas."
+"xmlsoap.org/soap/http'/>\n"
+"<operation name='echoUserType'>\n"
+"<soap:operation soapAction=''/>\n"
+"<input>\n"
+"<soap:body namespace='http://org.jboss.ws/samples/"
+"wssecuritypolicy' use='literal'/>\n"
+"</input>\n"
+"<output>\n"
+"<soap:body namespace='http://org.jboss.ws/samples/"
+"wssecuritypolicy' use='literal'/>\n"
+"</output>\n"
+"</operation>\n"
+"</binding>\n"
+"<service name='HelloService'>\n"
+"<port binding='tns:HelloBinding' name='HelloPort'"
+">\n"
+"<soap:address location='REPLACE_WITH_ACTUAL_URL'/>\n"
+"</port>\n"
+"</service>\n"
+"</definitions>"
#. Tag: para
#: Web_Services.xml:1708
@@ -4780,7 +5897,7 @@
#: Web_Services.xml:1714
#, no-c-format
msgid "Using policies with JBoss annotations"
-msgstr ""
+msgstr "Uso de políticas con anotaciones de JBoss"
#. Tag: para
#: Web_Services.xml:1715
@@ -4823,6 +5940,21 @@
"public PolicyScopeLevel scope();\n"
"}"
msgstr ""
+"/**\n"
+" \n"
+"@Target(ElementType.TYPE) \n"
+"@Retention(RetentionPolicy.RUNTIME)\n"
+"public @interface PolicyAttachment {\n"
+"Policy[] value();\n"
+"}\n"
+"...\n"
+"@Retention(RetentionPolicy.RUNTIME)\n"
+"public @interface Policy {\n"
+" \n"
+"public String policyFileLocation();\n"
+" \n"
+"public PolicyScopeLevel scope();\n"
+"}"
#. Tag: para
#: Web_Services.xml:1722
@@ -4879,12 +6011,54 @@
"</wsp:ExactlyOne> \n"
"</wsp:Policy>"
msgstr ""
+"@WebService(name = "Hello", targetNamespace = "http://org."
+"jboss.ws/samples/wssecurityAnnotatedpolicy")\n"
+"@PolicyAttachment({@Policy( policyFileLocation="WEB-INF/Policy."
+"xml", scope = PolicyScopeLevel.WSDL_PORT ) })\n"
+"@SOAPBinding(style = SOAPBinding.Style.RPC)\n"
+"public class HelloJavaBean\n"
+"{\n"
+"private Logger log = Logger.getLogger(HelloJavaBean.class);\n"
+" \n"
+"@WebMethod\n"
+"public UserType echoUserType(@WebParam(name = "user") UserType "
+"in0)\n"
+"{\n"
+"log.info(in0);\n"
+"return in0;\n"
+"}\n"
+"}\n"
+"<?xml version="1.0" encoding="UTF-8"?>\n"
+"...\n"
+"<wsp:Policy wsu:Id="X509EndpointPolicy" xmlns:wsp="http://"
+"schemas.xmlsoap.org/ws/2004/09/policy" \n"
+"xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-"
+"wssecurity-utility-1.0.xsd">\n"
+"<wsp:ExactlyOne>\n"
+"<wsp:All>\n"
+"<sp:jboss-ws-security xmlns:sp="http://www.jboss.com/ws-security/"
+"schema/jboss-ws-security_1_0.xsd">\n"
+"<sp:key-store-file>WEB-INF/wsse.keystore</sp:key-store-file>\n"
+"<sp:key-store-password>jbossws</sp:key-store-password>\n"
+"<sp:trust-store-file>WEB-INF/wsse.truststore</sp:trust-store-"
+"file>\n"
+"<sp:trust-store-password>jbossws</sp:trust-store-password>\n"
+"<sp:config>\n"
+"<sp:encrypt type="x509v3" alias="wsse"/>\n"
+"<sp:requires>\n"
+"<sp:encryption/>\n"
+"</sp:requires>\n"
+"</sp:config>\n"
+"</sp:jboss-ws-security>\n"
+"</wsp:All>\n"
+"</wsp:ExactlyOne> \n"
+"</wsp:Policy>"
#. Tag: title
#: Web_Services.xml:1733
#, no-c-format
msgid "JBossWS Extensions"
-msgstr ""
+msgstr "Extensiones JBossWS"
#. Tag: para
#: Web_Services.xml:1734
@@ -4911,7 +6085,7 @@
#: Web_Services.xml:1743
#, no-c-format
msgid "EndpointConfig"
-msgstr ""
+msgstr "EndpointConfig"
#. Tag: programlisting
#: Web_Services.xml:1744
@@ -4948,12 +6122,42 @@
"String configFile() default "";\n"
"}"
msgstr ""
+"/**\n"
+"* Defines an endpoint or client configuration. \n"
+"* This annotation is valid on an endpoint implementaion bean or a SEI.\n"
+"* \n"
+"* @author Heiko.Braun at jboss.org\n"
+"* @since 16.01.2007\n"
+"*/\n"
+"@Retention(value = RetentionPolicy.RUNTIME)\n"
+"@Target(value = { ElementType.TYPE })\n"
+"public @interface EndpointConfig {\n"
+"... \n"
+"/**\n"
+"* The optional config-name element gives the configuration name that must be "
+"present in\n"
+"* the configuration given by element config-file.\n"
+"* \n"
+"* Server side default: Standard Endpoint\n"
+"* Client side default: Standard Client\n"
+"*/\n"
+"String configName() default "";\n"
+"...\n"
+"/**\n"
+"* The optional config-file element is a URL or resource name for the "
+"configuration.\n"
+"*\n"
+"* Server side default: standard-jaxws-endpoint-config.xml\n"
+"* Client side default: standard-jaxws-client-config.xml\n"
+"*/\n"
+"String configFile() default "";\n"
+"}"
#. Tag: title
#: Web_Services.xml:1748
#, no-c-format
msgid "WebContext"
-msgstr ""
+msgstr "WebContext"
#. Tag: programlisting
#: Web_Services.xml:1749
@@ -5032,12 +6236,84 @@
"boolean secureWSDLAccess() default true;\n"
"}"
msgstr ""
+"/**\n"
+"* Provides web context specific meta data to EJB based web service "
+"endpoints.\n"
+"*\n"
+"* @author thomas.diesler at jboss.org\n"
+"* @since 26-Apr-2005\n"
+"*/\n"
+"@Retention(value = RetentionPolicy.RUNTIME)\n"
+"@Target(value = { ElementType.TYPE })\n"
+"public @interface WebContext {\n"
+"... \n"
+"/** \n"
+"* The contextRoot element specifies the context root that the web service "
+"endpoint is deployed to.\n"
+"* If it is not specified it will be derived from the deployment short name.\n"
+"* \n"
+"* Applies to server side port components only. \n"
+"*/\n"
+"String contextRoot() default "";\n"
+"...\n"
+"/** \n"
+"* The virtual hosts that the web service endpoint is deployed to.\n"
+"* \n"
+"* Applies to server side port components only.\n"
+"*/\n"
+"String[] virtualHosts() default {};\n"
+" \n"
+"/** \n"
+"* Relative path that is appended to the contextRoot to form fully qualified\n"
+"* endpoint address for the web service endpoint.\n"
+"* \n"
+"* Applies to server side port components only. \n"
+"*/\n"
+"String urlPattern() default "";\n"
+" \n"
+"/**\n"
+"* The authMethod is used to configure the authentication mechanism for the "
+"web service. \n"
+"* As a prerequisite to gaining access to any web service which are protected "
+"by an authorization\n"
+"* constraint, a user must have authenticated using the configured "
+"mechanism.\n"
+"*\n"
+"* Legal values for this element are "BASIC", or "CLIENT-"
+"CERT".\n"
+"*/\n"
+"String authMethod() default "";\n"
+" \n"
+"/**\n"
+"* The transportGuarantee specifies that the communication\n"
+"* between client and server should be NONE, INTEGRAL, or\n"
+"* CONFIDENTIAL. NONE means that the application does not require any\n"
+"* transport guarantees. A value of INTEGRAL means that the application\n"
+"* requires that the data sent between the client and server be sent in\n"
+"* such a way that it can't be changed in transit. CONFIDENTIAL means\n"
+"* that the application requires that the data be transmitted in a\n"
+"* fashion that prevents other entities from observing the contents of\n"
+"* the transmission. In most cases, the presence of the INTEGRAL or\n"
+"* CONFIDENTIAL flag will indicate that the use of SSL is required.\n"
+"*/\n"
+"String transportGuarantee() default "";\n"
+" \n"
+"/**\n"
+"* A secure endpoint does not by default publish it's wsdl on an "
+"unsecure transport.\n"
+"* You can override this behaviour by explicitly setting the secureWSDLAccess "
+"flag to false.\n"
+"* \n"
+"* Protect access to WSDL. See http://jira.jboss.org/jira/browse/JBWS-723 \n"
+"*/\n"
+"boolean secureWSDLAccess() default true;\n"
+"}"
#. Tag: title
#: Web_Services.xml:1753
#, no-c-format
msgid "SecurityDomain"
-msgstr ""
+msgstr "SecurityDomain"
#. Tag: programlisting
#: Web_Services.xml:1754
@@ -5068,3 +6344,28 @@
"String unauthenticatedPrincipal() default "";\n"
"}"
msgstr ""
+"/**\n"
+"* Annotation for specifying the JBoss security domain for an EJB\n"
+"* \n"
+"* @author <a href="mailto:bill at jboss.org">Bill Burke</"
+"a>\n"
+"**/\n"
+"@Target(ElementType.TYPE) @Retention(RetentionPolicy.RUNTIME)\n"
+"public @interface SecurityDomain\n"
+"{\n"
+"/**\n"
+"* The required name for the security domain.\n"
+"* \n"
+"* Do not use the JNDI name\n"
+"* \n"
+"* Good: "MyDomain"\n"
+"* Bad: "java:/jaas/MyDomain"\n"
+"*/\n"
+"String value();\n"
+" \n"
+"/**\n"
+"* The name for the unauthenticated pricipal\n"
+"*/\n"
+"String unauthenticatedPrincipal() default "";\n"
+"}"
+
More information about the jboss-cvs-commits
mailing list