?? rfc2714.txt
字號(hào):
組織:中國(guó)互動(dòng)出版網(wǎng)(http://www.china-pub.com/)
RFC文檔中文翻譯計(jì)劃(http://www.china-pub.com/compters/emook/aboutemook.htm)
E-mail:ouyang@china-pub.com
譯者:ouseka (ouseka, ouseka@sina.com)
譯文發(fā)布時(shí)間:2001-4-20
版權(quán):本中文翻譯文檔版權(quán)歸中國(guó)互動(dòng)出版網(wǎng)所有。可以用于非商業(yè)用途自由轉(zhuǎn)載,但必須
保留本文檔的翻譯及版權(quán)信息。
Network Working Group V. Ryan
Request for Comments: 2714 R. Lee
Category: Informational S. Seligman
Sun Microsystems, Inc.
October 1999
LDAP(輕型目錄存取協(xié)議)目錄中的CORBA對(duì)象參考方案
(RFC 2714 Schema for Representing CORBA Object References in an LDAP Directory)
本備忘錄狀態(tài)
This memo provides information for the Internet community. It does
not specify an Internet standard of any kind. Distribution of this
memo is unlimited.
版權(quán)聲明
Copyright (C) The Internet Society (1999). All Rights Reserved.
目 錄
摘要 2
1、緒論 2
2、CORBA對(duì)象參考陳述 2
3、屬性類型定義 3
3.1 corbaIor 3
3.2 corbaRepositoryId 3
4、對(duì)象類定義 4
4.1 corbaContainer 5
4.2 corbaObject 5
4.3 corbaObjectReference 5
5、安全考慮 6
6、鳴謝 6
7、參考 6
8、作者地址 6
9、附錄 - LDAP 方案 7
10.完整的版權(quán)聲明 9
鳴謝 9
摘要
CORBA [CORBA] 即“公共對(duì)象請(qǐng)求代理體系”(Common Object Request Broker
Architecture),是由對(duì)象管理組集團(tuán)(OMG)所定義。該文檔為L(zhǎng)DAP目錄中的CORBA
對(duì)象參考方案 [LDAPv3] 進(jìn)行定義。
1、緒論
該文檔假設(shè)讀者已經(jīng)對(duì)CORBA有了一般性的理解。
一般地, LDAP目錄被用來存儲(chǔ)數(shù)據(jù)。用戶與程序員把目錄看成是具有一系列屬性的目
錄層次。你從目錄中查尋一條記錄并且抽取你所感興趣的一個(gè)或多個(gè)屬性。例如:你可
以從目錄中查尋某人的電話號(hào)碼。或者,你可以在目錄中搜索具體特殊屬性的記錄。比
如,你可以在目錄中查找所有姓氏為Smith的人員。
CORBA應(yīng)用需要訪問CORBA對(duì)象。一般地,CORBA應(yīng)用使用COS名字服務(wù)來存儲(chǔ)
和讀取CORBA對(duì)象參考。在有目錄的環(huán)境下,CORBA應(yīng)用應(yīng)該能夠把目錄作為CORBA
對(duì)象參考的庫(kù)來使用。目錄提供核心管理,并且是可復(fù)制的,通過網(wǎng)絡(luò)服務(wù)于分布式的
CORBA應(yīng)用。
比如,一個(gè)應(yīng)用服務(wù)器可能用目錄來“注冊(cè)”CORBA對(duì)象以執(zhí)行它所管理的服務(wù),所
以一個(gè)客戶能隨后查找目錄來定位所需服務(wù)。
本文的目的是來定義應(yīng)用程序從目錄中存儲(chǔ)與讀取CORBA對(duì)象參考的公共方法。使用
這種公共方案,任何需要讀取或存儲(chǔ)目錄中的CORBA對(duì)象參考的CORBA應(yīng)用都能使
用一種能公共操作的方法。
注意本方案是為存儲(chǔ)CORBA“對(duì)象參考”而定義的,不是一般情形下的CORBA對(duì)象。
可能還存在其它沒有被本方案代替的在LDAP目錄中保存CORBA對(duì)象的方法。
2、CORBA對(duì)象參考陳述
本文定義方案基礎(chǔ)來描述LDAP目錄中的一個(gè)CORBA對(duì)象參考。擁有對(duì)象的一個(gè)參考
的應(yīng)用可以調(diào)用該對(duì)象有調(diào)用。這樣的參考被稱為“可公共操作的對(duì)象參考”或簡(jiǎn)稱IOR
(Interoperable Object Reference)。依據(jù)一般的Inter-ORB協(xié)議,使用IOR訪問CORBA
對(duì)象對(duì)于應(yīng)用來說是透明地完成的。
一個(gè)CORBA對(duì)象參考是由corbaObjectReference對(duì)象類在目錄中來扮演。它是個(gè)結(jié)構(gòu)上
的對(duì)象類,當(dāng)扮演一個(gè)對(duì)象參考時(shí),corbaObjectReference對(duì)象類也應(yīng)該是存在于記錄中
的。當(dāng)一個(gè)corbaObjet的子類(如corbaObjectReference)與其它結(jié)構(gòu)上的對(duì)象類混合在
一起時(shí),corbaContainer不是必需的。
關(guān)于對(duì)象類corbaOject,corbaObjectReference,和corbaContainer的定義在第4節(jié)中。
corbaObject類有兩個(gè)可選的屬性:corbaRepositoryId與description。corbaRepositoryId是
用來保存一個(gè)CORBA對(duì)象實(shí)現(xiàn)接口的repository id的多值屬性。
corbaObjectReference類有一個(gè)固有屬性:corbaIor。corbaIor是用來存儲(chǔ)對(duì)象的IOR。
corbaIor與corbaRepositoryId在第3節(jié)中定義;描述在 [v3Schema] 中定義。
3、屬性類型定義
以下屬性類型在本文中定義:
corbaIor
corbaRepositoryId
3.1 corbaIor
此屬性保存一個(gè)CORBA對(duì)象的可公共操作的對(duì)象參考(IOR)的字符串類型陳述。IOR
是一個(gè)對(duì)于包含有定位對(duì)象必需信息的對(duì)象來說是不透明的操作。
此屬性的語法是 'IA5 String' 并且是大小寫無關(guān)的。
( 1.3.6.1.4.1.42.2.27.4.1.14
NAME 'corbaIor'
DESC 'Stringified interoperable object reference of a CORBA object'
EQUALITY caseIgnoreIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26
SINGLE-VALUE
)
3.2 corbaRepositoryId
每一個(gè)CORBA接口都有個(gè)唯一的“repository id”(也叫作“type id”)用來確定接口。
一個(gè)CORBA對(duì)象有一個(gè)或多個(gè)repository id,每一個(gè)對(duì)應(yīng)那個(gè)它實(shí)現(xiàn)的接口。
repository id的格式可是以任意字符串,然而OMG指定了四個(gè)標(biāo)準(zhǔn)的格式:
a. IDL-style
IDL:Prefix/ModuleName/InterfaceName:VersionNumber
例如,“NamingContext”以O(shè)MG COS命名模式的repository id即為:
“IDL:omg.org/CosNaming/NamingContext:1.0”。
b. RMI-style
RMI:ClassName:HashCode[:SUID]
該格式為RMI-IIOP遠(yuǎn)程對(duì)象 [RMI-IIOP] 所使用。“ClassName”是完整的類名(如
java.lang.String)。“HashCode”是該對(duì)象的HASH編碼(簡(jiǎn)而言之,是由調(diào)用
“hashCode()”方法所得的)。“SUID”即Stream Unique Identifier,它是個(gè)64們數(shù)
字以唯一地識(shí)別類的連續(xù)性版本;SUID是repository id可選的項(xiàng)。
c. DCE-style
DCE:UUID
該格式用于DCE/CORBA互用性 [CORBA-DCE]。UUID描述一個(gè)DCE UUID。
d. "local"
該格式由本地對(duì)象請(qǐng)求代理(ORB)定義。
此屬性的語法是'Direcotry String',并且大小寫無關(guān)。其值用UTF-8方式編碼。有些值
可能需要轉(zhuǎn)換自他們的本地化陳述以正確地用UTF-8方式編碼。
( 1.3.6.1.4.1.42.2.27.4.1.15
NAME 'corbaRepositoryId'
DESC 'Repository ids of interfaces implemented by a CORBA object'
EQUALITY caseExactMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
)
4、對(duì)象類定義
以下對(duì)象類在文中定義:
corbaContainer
corbaObject
corbaObjectReference
4.1 corbaContainer
該結(jié)構(gòu)上的對(duì)象類描述一種CORBA對(duì)象的容器。
( 1.3.6.1.4.1.42.2.27.4.2.10
NAME 'corbaContainer'
DESC 'Container for a CORBA object'
SUP top
STRUCTURAL
MUST ( cn )
)
4.2 corbaObject
該抽象對(duì)象類是描述一個(gè)CORBA對(duì)象的根類。
( 1.3.6.1.4.1.42.2.27.4.2.9
NAME 'corbaObject'
DESC 'CORBA object representation'
SUP top
ABSTRACT
MAY ( corbaRepositoryId $ description )
)
4.3 corbaObjectReference
該輔助對(duì)象類描述一個(gè)CORBA對(duì)象參考。它必須與一個(gè)結(jié)構(gòu)上的對(duì)象類混合在一起。
( 1.3.6.1.4.1.42.2.27.4.2.11
NAME 'corbaObjectReference'
DESC 'CORBA interoperable object reference'
SUP corbaObject
AUXILIARY
MUST ( corbaIor )
)
5、安全考慮
獲得一個(gè)對(duì)象的參考并保存到目錄中可能會(huì)導(dǎo)致該對(duì)象在大范圍內(nèi)是可用的。這里可能
有安全方面的牽連。
6、鳴謝
我們要感謝Sun Micorsystems的Sanjeev Krishnan,IBM的Simon Nash,和Oracle的Jeffrey
Spirn,感謝他們的意見和建議。
7、參考
[CORBA] The Object Management Group, "Common Object Request
Broker Architecture Specification 2.2",
http://www.omg.org
[CORBA-DCE] Distributed Systems Technology Center and Digital
Equipment Corporation, "DCE/CORBA Interworking
Specification", May 1998.
http://www.omg.org/library/schedule/
DCE_CORBA_Interworking_RFP.html
[LDAPv3] Wahl, M., Howes, T. and S. Kille, "Lightweight Directory
Access Protocol (v3)", RFC 2251, December 1997.
[RMI-IIOP] IBM and Java Software, Sun Microsystems, Inc., "RMI over
IIOP", June 1999. http://java.sun.com/products/rmi-
iiop/index.html
[v3Schema] Wahl, M., "A Summary of the X.500(96) User Schema for use
with LDAPv3", RFC 2256, December 1997.
8、作者地址
Vincent Ryan
Sun Microsystems, Inc.
Mail Stop EDUB03
901 San Antonio Road
Palo Alto, CA 94303
USA
Phone: +353 1 819 9151
EMail: vincent.ryan@ireland.sun.com
Rosanna Lee
Sun Microsystems, Inc.
Mail Stop UCUP02-206
901 San Antonio Road
Palo Alto, CA 94303
USA
Phone: +1 408 863 3221
EMail: rosanna.lee@eng.sun.com
Scott Seligman
Sun Microsystems, Inc.
Mail Stop UCUP02-209
901 San Antonio Road
Palo Alto, CA 94303
USA
Phone: +1 408 863 3222
EMail: scott.seligman@eng.sun.com
9、附錄 - LDAP 方案
-- 屬性類型 --
( 1.3.6.1.4.1.42.2.27.4.1.14
NAME 'corbaIor'
DESC 'Stringified interoperable object reference of a CORBA object'
EQUALITY caseIgnoreIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26
SINGLE-VALUE
)
( 1.3.6.1.4.1.42.2.27.4.1.15
NAME 'corbaRepositoryId'
DESC 'Repository ids of interfaces implemented by a CORBA object'
EQUALITY caseExactMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
)
-- 來自于 RFC-2256 --
( 2.5.4.13
NAME 'description'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024}
)
-- 對(duì)象類 --
( 1.3.6.1.4.1.42.2.27.4.2.9
NAME 'corbaObject'
DESC 'CORBA object representation'
SUP top
ABSTRACT
MAY ( corbaRepositoryId $ description )
)
( 1.3.6.1.4.1.42.2.27.4.2.10
NAME 'corbaContainer'
DESC 'Container for a CORBA object'
SUP top
STRUCTURAL
MUST ( cn )
)
( 1.3.6.1.4.1.42.2.27.4.2.11
NAME 'corbaObjectReference'
DESC 'CORBA interoperable object reference'
SUP corbaObject
AUXILIARY
MUST ( corbaIor )
)
-- 自ISO X.520的匹配規(guī)則 --
( 2.5.13.5
NAME 'caseExactMatch'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
)
10.完整的版權(quán)聲明
Copyright (C) The Internet Society (1999). All Rights Reserved.
This document and translations of it may be copied and furnished to
others, and derivative works that comment on or otherwise explain it
or assist in its implementation may be prepared, copied, published
and distributed, in whole or in part, without restriction of any
kind, provided that the above copyright notice and this paragraph are
included on all such copies and derivative works. However, this
document itself may not be modified in any way, such as by removing
the copyright notice or references to the Internet Society or other
Internet organizations, except as needed for the purpose of
developing Internet standards in which case the procedures for
copyrights defined in the Internet Standards process must be
followed, or as required to translate it into languages other than
English.
The limited permissions granted above are perpetual and will not be
revoked by the Internet Society or its successors or assigns.
This document and the information contained herein is provided on an
"AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING
TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING
BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION
HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF
MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
鳴謝
當(dāng)前由INTERNET協(xié)會(huì)提供的RFC編者職責(zé)基金投資。
RFC 2714 LDAP(輕型目錄存取協(xié)議)目錄中的CORBA對(duì)象參考方案
(RFC 2714 Schema for Representing CORBA Object References in an LDAP Directory)
1
RFC文檔中文翻譯計(jì)劃
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -