[jboss-cvs] JBossAS SVN: r88851 - projects/docs/enterprise/4.3.3/Server_Configuration_Guide/zh-CN.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu May 14 02:22:05 EDT 2009
Author: xhuang at jboss.com
Date: 2009-05-14 02:22:05 -0400 (Thu, 14 May 2009)
New Revision: 88851
Modified:
projects/docs/enterprise/4.3.3/Server_Configuration_Guide/zh-CN/J2EE_Security_On_JBOSS.po
Log:
update
Modified: projects/docs/enterprise/4.3.3/Server_Configuration_Guide/zh-CN/J2EE_Security_On_JBOSS.po
===================================================================
--- projects/docs/enterprise/4.3.3/Server_Configuration_Guide/zh-CN/J2EE_Security_On_JBOSS.po 2009-05-14 06:15:09 UTC (rev 88850)
+++ projects/docs/enterprise/4.3.3/Server_Configuration_Guide/zh-CN/J2EE_Security_On_JBOSS.po 2009-05-14 06:22:05 UTC (rev 88851)
@@ -9,7 +9,7 @@
"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: 2009-05-12 15:02+1000\n"
+"PO-Revision-Date: 2009-05-14 16:21+1000\n"
"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
@@ -229,9 +229,9 @@
#. Tag: title
#: J2EE_Security_On_JBOSS.xml:51
-#, fuzzy, no-c-format
+#, no-c-format
msgid "The security-identity element"
-msgstr "Host 元素"
+msgstr "security-identity 元素"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:58
@@ -245,6 +245,8 @@
"Propagation of the caller's identity is the default used in the absence "
"of an explicit <literal>security-identity</literal> element declaration."
msgstr ""
+"调用标识符可以是当前的调用者也可以是特殊的角色。应用程序组装者使用带有 <literal>use-caller-identity</literal> 子元素的 <literal>security-"
+"identity</literal> 元素来指明当前调用者的标识符应该填充为 EJB 调用方法的安全标识符。当没有显性地声明 <literal>security-identity</literal> 元素时,缺省使用调用者标识。"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:61
@@ -266,6 +268,12 @@
"following descriptor fragment that illustrates <literal>security-identity</"
"literal> element usage."
msgstr ""
+"或者,应用程序组装者可以使用 <literal>run-as/role-"
+"name</literal> 子元素来指定 <literal>role-name</literal> 值给出的特殊安全角色应该用作 EJB 所调用的方法的安全标识符。请注意这不会改变 <literal>EJBContext."
+"getCallerPrincipal()</literal> 所获得的调用者的标识符。而调用者的安全角色被设置为 <literal>run-as/role-name</"
+"literal> 元素指定的单一角色。<literal>run-as</literal> 的一个例子是阻止外部的客户访问内部的 EJB。你通过内部的 EJB <literal>method-permission</"
+"literal> 元素并限制不分配给外部客户的角色的访问权限来实现这一点。需要使用内部 EJB 的 EJB 则配置和受限角色相等的 <literal>run-as/role-name</literal>。下面的描述符片段解释了 <literal>security-identity</"
+"literal> 元素的用法。"
#. Tag: programlisting
#: J2EE_Security_On_JBOSS.xml:64
@@ -296,6 +304,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
@@ -309,6 +341,8 @@
"principal named <literal>internal</literal> with <literal>RunAsBean</"
"literal> from the prior example."
msgstr ""
+"当你使用 <literal>run-as</literal> 来为转出的调用分配特定角色时,JBoss 将关联一个名为 <literal>anonymous</literal> 的 principal。如果你希望使用另外一个 principal,你需要将 <literal>run-as-principal</literal> 和 <literal>jboss.xml</literal> 文件里的 bean 进行关联。下面的片段将前面例子里的 <literal>RunAsBean</"
+"literal> 和名为 <literal>internal</literal> 的 principal 进行了关联。"
#. Tag: programlisting
#: J2EE_Security_On_JBOSS.xml:68
@@ -321,6 +355,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
@@ -329,11 +369,11 @@
"The <literal>run-as</literal> element is also available in servlet "
"definitions in a <literal>web.xml</literal> file. The following example "
"shows how to assign the role <literal>InternalRole</literal> to a servlet:"
-msgstr ""
+msgstr "在 <literal>web.xml</literal> 文件里也可以使用 <literal>run-as</literal> 元素。下面的例子显示了如何把 <literal>InternalRole</literal> 角色分配给一个 servlet:"
#. Tag: programlisting
#: J2EE_Security_On_JBOSS.xml:72
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<servlet>\n"
" <servlet-name>AServlet</servlet-name>\n"
@@ -344,16 +384,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
@@ -365,7 +401,7 @@
"a specific principal to go along with the <literal>run-as</literal> role. "
"The following fragment shows how to associate a principal named "
"<literal>internal</literal> to the servlet in the prior example."
-msgstr ""
+msgstr "这个 servlet 里的调用将和匿名的 <literal>principal</literal> 相关联。<literal>jboss-web.xml</literal> 文件里也可以使用 <literal>run-as-principal</literal> 元素分配特定的 principal 和 <literal>run-as</literal> 角色。下面的片段显示了如何把名为 <literal>internal</literal> 的 principal 给前面例子里的 servlet。"
#. Tag: programlisting
#: J2EE_Security_On_JBOSS.xml:76
@@ -376,12 +412,16 @@
" <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
#, no-c-format
msgid "Security roles"
-msgstr ""
+msgstr "安全角色"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:81
@@ -394,10 +434,13 @@
"elements. The <literal>role-name</literal> value is a logical application "
"role name like Administrator, Architect, SalesManager, etc."
msgstr ""
+"<literal>security-role-ref</"
+"literal> 或 <literal>security-identity</literal> 元素引用的安全角色名称需要匹配一个应用程序声明的角色。应用程序组装者通过声明 <literal>security-role</literal> 元素定义逻辑的安全角色。<literal>role-name</literal> 的值是一个逻辑应用程序角色名如 Administrator、 Architect、SalesManager 等。"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:84
#, no-c-format
+#, fuzzy
msgid ""
"The J2EE specifications note that it is important to keep in mind that the "
"security roles in the deployment descriptor are used to define the logical "
@@ -407,13 +450,13 @@
"environment. The deployment descriptor roles are application constructs with "
"application domain-specific names. For example, a banking application might "
"use role names such as BankManager, Teller, or Customer."
-msgstr ""
+msgstr "J2EE 规格"
#. Tag: title
#: J2EE_Security_On_JBOSS.xml:88
-#, fuzzy, no-c-format
+#, no-c-format
msgid "The security-role element"
-msgstr "Connector 元素"
+msgstr "security-role 元素"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:95
@@ -440,7 +483,7 @@
msgid ""
"An ejb-jar.xml descriptor fragment that illustrates the security-role "
"element usage."
-msgstr ""
+msgstr "解释 security-role 元素用法的一个 ejb-jar.xml 描述符片段。"
#. Tag: programlisting
#: J2EE_Security_On_JBOSS.xml:99
@@ -458,6 +501,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
@@ -466,16 +520,16 @@
"shows the usage of the <literal>security-role</literal> in an <literal>web."
"xml</literal> file."
msgstr ""
+"显示了 <literal>web."
+"xml</literal> 文件里的 <literal>security-role</literal> 的用法。"
#. Tag: title
#: J2EE_Security_On_JBOSS.xml:103
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"An example web.xml descriptor fragment that illustrates the security-role "
"element usage."
-msgstr ""
-"The jmx-console.war web.xml descriptors with the security elements "
-"uncommented."
+msgstr "解释 security-role 元素用法的一个 web.xml 描述符示例。"
#. Tag: programlisting
#: J2EE_Security_On_JBOSS.xml:104
@@ -490,12 +544,20 @@
" </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
#, no-c-format
msgid "EJB method permissions"
-msgstr ""
+msgstr "EJB 方法的权限"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:110
@@ -504,13 +566,13 @@
"An application assembler can set the roles that are allowed to invoke an "
"EJB's home and remote interface methods through method-permission "
"element declarations."
-msgstr ""
+msgstr "应用程序组合者(application assembler)可以通过 method-permission 元素声明设置允许调用 EJB 的 home 和 remote 接口方法的角色。"
#. Tag: title
#: J2EE_Security_On_JBOSS.xml:114
-#, fuzzy, no-c-format
+#, no-c-format
msgid "The method-permissions element"
-msgstr "Connector 元素"
+msgstr "method-permissions 元素"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:121
@@ -531,15 +593,15 @@
#. Tag: title
#: J2EE_Security_On_JBOSS.xml:125
-#, fuzzy, no-c-format
+#, no-c-format
msgid "The method element"
-msgstr "Connector 元素"
+msgstr "method 元素"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:132
#, no-c-format
msgid "There are three supported styles of method element declarations."
-msgstr ""
+msgstr "method 元素的声明有三种风格。"
#. Tag: para
#: J2EE_Security_On_JBOSS.xml:135
@@ -547,21 +609,21 @@
msgid ""
"The first is used for referring to all the home and component interface "
"methods of the named enterprise bean:"
-msgstr ""
+msgstr "第一种用于引用 enterprise bean 的所有 home 和 component 接口方法:"
#. 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
More information about the jboss-cvs-commits
mailing list