Class SASLprep

  • All Implemented Interfaces:
    Profile

    @ProfileName("SASLprep")
    public final class SASLprep
    extends java.lang.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 Detail

      • saslprepProfile

        private final java.util.Set<Option> saslprepProfile
    • Constructor Detail

      • SASLprep

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

      • profile

        public java.util.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.