Class SASLprep

java.lang.Object
com.ongres.saslprep.SASLprep
All Implemented Interfaces:
Profile

@ProfileName("SASLprep") public final class SASLprep extends Object implements Profile
SASLprep: Stringprep Profile for User Names and Passwords.

The use of simple user names and passwords in authentication and authorization is pervasive on the Internet. To increase the likelihood that user name and password input and comparison work in ways that make sense for typical users throughout the world, this document defines rules for preparing internationalized user names and passwords for comparison. For simplicity and implementation ease, a single algorithm is defined for both user names and passwords.

  • Field Details

    • saslprepProfile

      private final Set<Option> saslprepProfile
  • Constructor Details

    • SASLprep

      public SASLprep()
      Construct an instance of the SASLprep profile.
  • Method Details

    • profile

      public Set<Option> profile()
      Description copied from interface: Profile
      Set of options used by the profile.
      Specified by:
      profile in interface Profile
      Returns:
      profile options.
    • additionalMappingTable

      public int[] additionalMappingTable(int codePoint)
      Non-ASCII space characters that can be mapped to SPACE (U+0020).
      Specified by:
      additionalMappingTable in interface Profile
      Parameters:
      codePoint - the character (Unicode code point) to be mapped.
      Returns:
      Mapping with the int[] array or with the same codePoint.