Module: Net::IMAP::StringPrep::Trace
| Relationships & Source Files | |
| Defined in: | lib/net/imap/stringprep/trace.rb |
Overview
Defined in RFC-4505 §3, The trace profile of StringPrep is used by the ANONYMOUS SASL mechanism.
Constant Summary
-
CHECK_BIDI =
# File 'lib/net/imap/stringprep/trace.rb', line 46
This profile requires bidirectional character checking per Section 6 of [StringPrep].
true -
MAPPING_TABLES =
# File 'lib/net/imap/stringprep/trace.rb', line 20
No mapping is required by this profile.
nil -
NORMALIZATION =
# File 'lib/net/imap/stringprep/trace.rb', line 24
No Unicode normalization is required by this profile.
nil -
PROHIBITED_TABLES =
# File 'lib/net/imap/stringprep/trace.rb', line 41
From RFC-4505 §3, The “trace” Profile of “Stringprep”:
Characters from the following tables of [StringPrep] are prohibited:
-
C.2.1 (ASCII control characters)
-
C.2.2 (Non-ASCII control characters)
-
C.3 (Private use characters)
-
C.4 (Non-character code points)
-
C.5 (Surrogate codes)
-
C.6 (Inappropriate for plain text)
-
C.8 (Change display properties are deprecated)
-
C.9 (Tagging characters)
No additional characters are prohibited.
%w[C.2.1 C.2.2 C.3 C.4 C.5 C.6 C.8 C.9].freeze
-
-
STRINGPREP_PROFILE =
# File 'lib/net/imap/stringprep/trace.rb', line 12
Defined in RFC-4505 §3.
"trace" -
UNASSIGNED_TABLE =
# File 'lib/net/imap/stringprep/trace.rb', line 16
The character repertoire of this profile is Unicode 3.2 [Unicode].
"A.1"
Class Method Summary
-
.stringprep_trace(string, **opts)
mod_func
From RFC-4505 §3, The “trace” Profile of “Stringprep”: >>>.
Class Method Details
.stringprep_trace(string, **opts) (mod_func)
From RFC-4505 §3, The “trace” Profile of “Stringprep”:
The character repertoire of this profile is Unicode 3.2 [Unicode].
No mapping is required by this profile.
No Unicode normalization is required by this profile.
The list of unassigned code points for this profile is that provided in Appendix A of [StringPrep]. Unassigned code points are not prohibited.
Characters from the following tables of [StringPrep] are prohibited: (documented on PROHIBITED_TABLES)
This profile requires bidirectional character checking per Section 6 of [StringPrep].
# File 'lib/net/imap/stringprep/trace.rb', line 68
def stringprep_trace(string, **opts) StringPrep.stringprep( string, unassigned: UNASSIGNED_TABLE, maps: MAPPING_TABLES, prohibited: PROHIBITED_TABLES, normalization: NORMALIZATION, bidi: CHECK_BIDI, profile: STRINGPREP_PROFILE, **opts, ) end