| Package | Description |
|---|---|
| org.apache.directory.api.ldap.model.name |
| Modifier and Type | Method and Description |
|---|---|
void |
AntlrDnParser.attributeValue(AntlrDnParser.UpAndNormValue value)
RFC 4514, Section 3
attributeValue = string / hexstring
RFC 2253, Section 3
attributeValue = string
string = *( stringchar / pair )
/ "#" hexstring
/ QUOTATION *( quotechar / pair ) QUOTATION ; only from v2
We still accept both forms, which means we can have a value surrounded by '"'
|
void |
AntlrDnParser.hexstring(AntlrDnParser.UpAndNormValue value)
RFC 4514 Section 3
hexstring = SHARP 1*hexpair
If in <hexstring> form, a BER representation can be obtained from
converting each <hexpair> of the <hexstring> to the octet indicated
by the <hexpair>.
|
void |
AntlrDnParser.lutf1(AntlrDnParser.UpAndNormValue value)
RFC 4514, Section 3:
LUTF1 = %x01-1F / %x21 / %x24-2A / %x2D-3A /
%x3D / %x3F-5B / %x5D-7F
The rule CHAR_REST doesn't contain the following charcters,
so we must check them additionally
EQUALS (0x3D)
HYPHEN (0x2D)
UNDERSCORE (0x5F)
DIGIT (0x30-0x39)
ALPHA (0x41-0x5A and 0x61-0x7A)
|
void |
AntlrDnParser.pair(AntlrDnParser.UpAndNormValue value)
RFC 4514, Section 3
pair = ESC ( ESC / special / hexpair )
special = escaped / SPACE / SHARP / EQUALS
escaped = DQUOTE / PLUS / COMMA / SEMI / LANGLE / RANGLE
hexpair = HEX HEX
If in <string> form, a LDAP string representation asserted value can
be obtained by replacing (left to right, non-recursively) each <pair>
appearing in the <string> as follows:
replace <ESC><ESC> with <ESC>;
replace <ESC><special> with <special>;
replace <ESC><hexpair> with the octet indicated by the <hexpair>.
|
void |
AntlrDnParser.quotestring(AntlrDnParser.UpAndNormValue value)
RFC 2253, Section 3
/ QUOTATION *( quotechar / pair ) QUOTATION ; only from v2
quotechar = <any character except "\" or QUOTATION >
|
void |
AntlrDnParser.string(AntlrDnParser.UpAndNormValue value)
RFC 4514 Section 3
; The following characters are to be escaped when they appear
; in the value to be encoded: ESC, one of <escaped>, <leading>
; SHARP or SPACE, trailing SPACE, and NULL.
|
void |
AntlrDnParser.sutf1(AntlrDnParser.UpAndNormValue value)
RFC 4514, Section 3:
SUTF1 = %x01-21 / %x23-2A / %x2D-3A /
%x3D / %x3F-5B / %x5D-7F
The rule CHAR_REST doesn't contain the following charcters,
so we must check them additionally
EQUALS (0x3D)
HYPHEN (0x2D)
UNDERSCORE (0x5F)
DIGIT (0x30-0x39)
ALPHA (0x41-0x5A and 0x61-0x7A)
SHARP (0x23)
SPACE (0x20)
|
void |
AntlrDnParser.utfmb(AntlrDnParser.UpAndNormValue value)
Process a UTFMB char
|
Copyright © 2003–2022 The Apache Software Foundation. All rights reserved.