2. 标准属性语法编码
为了定义标准属性语法的编码规则, 将使用以下辅助 BNF 定义.
<a> ::= 'a' | 'b' | 'c' | 'd' | 'e' | 'f' | 'g' | 'h' | 'i' |
'j' | 'k' | 'l' | 'm' | 'n' | 'o' | 'p' | 'q' | 'r' |
's' | 't' | 'u' | 'v' | 'w' | 'x' | 'y' | 'z' | 'A' |
'B' | 'C' | 'D' | 'E' | 'F' | 'G' | 'H' | 'I' | 'J' |
'K' | 'L' | 'M' | 'N' | 'O' | 'P' | 'Q' | 'R' | 'S' |
'T' | 'U' | 'V' | 'W' | 'X' | 'Y' | 'Z'
<d> ::= '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9'
<hex-digit> ::= <d> | 'a' | 'b' | 'c' | 'd' | 'e' | 'f' |
'A' | 'B' | 'C' | 'D' | 'E' | 'F'
<k> ::= <a> | <d> | '-'
<p> ::= <a> | <d> | ''' | '(' | ')' | '+' | ',' | '-' | '.' |
'/' | ':' | '?' | ' '
<CRLF> ::= The ASCII newline character with hexadecimal value 0x0A
<letterstring> ::= <a> | <a> <letterstring>
<numericstring> ::= <d> | <d> <numericstring>
<keystring> ::= <a> | <a> <anhstring>
<anhstring> ::= <k> | <k> <anhstring>
<printablestring> ::= <p> | <p> <printablestring>
<space> ::= ' ' | ' ' <space>
2.1. 未定义
Undefined 类型的值按照 Octet String 类型的值进行编码.
2.2. 忽略大小写字符串
caseIgnoreStringSyntax 类型的字符串按照字符串值本身进行编码.
2.3. 区分大小写字符串
caseExactStringSyntax 类型字符串的编码即字符串值本身.
2.4. 可打印字符串
printableStringSyntax 类型字符串的编码即字符串值本身.
2.5. 数字字符串
numericStringSyntax 类型字符串的编码即字符串值本身.
2.6. 八位字节串
octetStringSyntax 类型字符串的编码即字符串值本身.
2.7. 忽略大小写 IA5 字符串
caseIgnoreIA5String 类型字符串的编码即字符串值本身.
2.8. IA5 字符串
iA5StringSyntax 类型字符串的编码即字符串值本身.
2.9. T61 字符串
t61StringSyntax 类型字符串的编码即字符串值本身.
2.10. 忽略大小写列表
caseIgnoreListSyntax 类型的值按照以下 BNF 进行编码.
<caseignorelist> ::= <caseignorestring> |
<caseignorestring> '$' <caseignorelist>
<caseignorestring> ::= a string encoded according to the rules
for Case Ignore String as above.
2.11. 区分大小写列表
caseExactListSyntax 类型的值按照以下 BNF 进行编码.
<caseexactlist> ::= <caseexactstring> |
<caseexactstring> '$' <caseexactlist>
<caseexactstring> ::= a string encoded according to the rules for
Case Exact String as above.
2.12. 可识别名
distinguishedNameSyntax 类型的值被编码为具有 [5] 中定义的表示形式.
2.13. 布尔值
booleanSyntax 类型的值按照以下 BNF 进行编码.
<boolean> ::= "TRUE" | "FALSE"
布尔值在逻辑上为真时编码为 "TRUE", 否则编码为 "FALSE".
2.14. 整数
integerSyntax 类型的值按其值的十进制表示进行编码, 每个十进制数字由与其等效的字符表示. 因此数字 1 由字符表示.
2.15. 对象标识符
objectIdentifierSyntax 类型的值按照以下 BNF 进行编码.
<oid> ::= <descr> | <descr> '.' <numericoid> | <numericoid>
<descr> ::= <keystring>
<numericoid> ::= <numericstring> | <numericstring> '.' <numericoid>
在上述 BNF 中,
2.16. 电话号码
telephoneNumberSyntax 类型的值按照 Printable String 类型进行编码.
2.17. 用户电报号码
telexNumberSyntax 类型的值按照以下 BNF 进行编码.
<telex-number> ::= <actual-number> '$' <country> '$' <answerback>
<actual-number> ::= <printablestring>
<country> ::= <printablestring>
<answerback> ::= <printablestring>
在上文中,
2.18. 智能用户电报终端标识符
teletexTerminalIdentifier 类型的值按照以下 BNF 进行编码.
<teletex-id> ::= <printablestring> 0*( '$' <printablestring>)
在上文中, 第一个
2.19. 传真电话号码
FacsimileTelephoneNumber 类型的值按照以下 BNF 进行编码.
<fax-number> ::= <printablestring> [ '$' <faxparameters> ]
<faxparameters> ::= <faxparm> | <faxparm> '$' <faxparameters>
<faxparm> ::= 'twoDimensional' | 'fineResolution' | 'unlimitedLength' |
'b4Length' | 'a3Width' | 'b4Width' | 'uncompressed'
在上文中, 第一个
2.20. 表示地址
PresentationAddress 类型的值被编码为具有 [6] 中描述的表示形式.
2.21. UTC 时间
uTCTimeSyntax 类型的值按照 Printable String 编码, 其中的字符串包含 UTCTime 值.
2.22. 指南 (搜索指南)
Guide 类型的值, 例如 searchGuide 属性的值, 按照以下 BNF 进行编码.
<guide-value> ::= [ <object-class> '#' ] <criteria>
<object-class> ::= an encoded value of type objectIdentifierSyntax
<criteria> ::= <criteria-item> | <criteria-set> | '!' <criteria>
<criteria-set> ::= [ '(' ] <criteria> '&' <criteria-set> [ ')' ] |
[ '(' ] <criteria> '|' <criteria-set> [ ')' ]
<criteria-item> ::= [ '(' ] <attributetype> '$' <match-type> [ ')' ]
<match-type> ::= "EQ" | "SUBSTR" | "GE" | "LE" | "APPROX"
2.23. 邮政地址
PostalAddress 类型的值按照以下 BNF 进行编码.
<postal-address> ::= <t61string> | <t61string> '$' <postal-address>
在上文中, 邮政地址值的每个
2.24. 用户口令
userPasswordSyntax 类型的值按照 octetStringSyntax 类型进行编码.
2.25. 用户证书
userCertificate 类型的值按照以下 BNF 进行编码.
<certificate> ::= <signature> '#' <issuer> '#' <validity> '#' <subject>
'#' <public-key-info>
<signature> ::= <algorithm-id>
<issuer> ::= an encoded Distinguished Name
<validity> ::= <not-before-time> '#' <not-after-time>
<not-before-time> ::= <utc-time>
<not-after-time> ::= <utc-time>
<algorithm-parameters> ::= <null> | <integervalue> |
'{ASN}' <hex-string>
<subject> ::= an encoded Distinguished Name
<public-key-info> ::= <algorithm-id> '#' <encrypted-value>
<encrypted-value> ::= <hex-string> | <hex-string> '-' <d>
<algorithm-id> ::= <oid> '#' <algorithm-parameters>
<utc-time> ::= an encoded UTCTime value
<hex-string> ::= <hex-digit> | <hex-digit> <hex-string>
2.26. CA 证书
cACertificate 类型的值按照 userCertificate 类型的值进行编码.
2.27. 权威撤销列表
authorityRevocationList 类型的值按照以下 BNF 进行编码.
<certificate-list> ::= <signature> '#' <issuer> '#'
<utc-time> [ '#' <revoked-certificates> ]
<revoked-certificates> ::= <algorithm> '#' <encrypted-value>
[ '#' 0*(<revoked-certificate>) '#']
<revoked-certificates> ::= <subject> '#' <algorithm> '#'
<serial> '#' <utc-time>
语法组成部分
2.28. 证书撤销列表
certificateRevocationList 类型的值按照 authorityRevocationList 类型的值进行编码.
2.29. 交叉证书对
crossCertificatePair 类型的值按照以下 BNF 进行编码.
<certificate-pair> ::= <certificate> '|' <certificate>
语法组成部分
2.30. 投递方法
deliveryMethod 类型的值按照以下 BNF 进行编码.
<delivery-value> ::= <pdm> | <pdm> '$' <delivery-value>
<pdm> ::= 'any' | 'mhs' | 'physical' | 'telex' | 'teletex' |
'g3fax' | 'g4fax' | 'ia5' | 'videotex' | 'telephone'
2.31. 其他邮箱
otherMailboxSyntax 类型的值按照以下 BNF 进行编码.
<otherMailbox> ::= <mailbox-type> '$' <mailbox>
<mailbox-type> ::= an encoded Printable String
<mailbox> ::= an encoded IA5 String
在上文中,
2.32. 邮件偏好
mailPreferenceOption 类型的值按照以下 BNF 进行编码.
<mail-preference> ::= "NO-LISTS" | "ANY-LIST" | "PROFESSIONAL-LISTS"
2.33. MHS OR 地址
MHS OR Address 类型的值按照 [10] 中定义的格式编码为字符串.
2.34. 照片
Photo 类型的值按照八位字节串编码, 其中包含如 [8] 所述 JPEG 文件交换格式 (JPEG File Interchange Format, JFIF) 的 JPEG 图像.
2.35. 传真
Fax 类型的值按照八位字节串编码, 其中包含如 [7] 所定义的 Group 3 传真图像.