module Net::IMAP::StringPrep::Trace

Defined in RFC-4505 §3, The trace profile of StringPrep is used by the ANONYMOUS SASL mechanism.

Constants

CHECK_BIDI

This profile requires bidirectional character checking per Section 6 of [StringPrep].

MAPPING_TABLES

No mapping is required by this profile.

NORMALIZATION

No Unicode normalization is required by this profile.

PROHIBITED_TABLES

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.

STRINGPREP_PROFILE

Defined in RFC-4505 §3.

UNASSIGNED_TABLE

The character repertoire of this profile is Unicode 3.2 [Unicode].

Public Instance Methods

stringprep_trace(string, **opts) click to toggle source

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 net-imap-0.4.9.1/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