Class SaslPrep

java.lang.Object
com.mysql.cj.util.SaslPrep

public class SaslPrep
extends java.lang.Object
Implementation for SASLprep: Stringprep Profile for User Names and Passwords, as specified in RFC 4013.
See Also:
RFC 3454
  • Nested Class Summary

    Nested Classes 
    Modifier and Type Class Description
    static class  SaslPrep.StringType
    The type of string usage regarding the support for unassigned code points as described in RFC 3454, Section 7.
  • Constructor Summary

    Constructors 
    Constructor Description
    SaslPrep()  
  • Method Summary

    Modifier and Type Method Description
    static java.lang.String prepare​(java.lang.String str, SaslPrep.StringType sType)
    Prepares the given string by applying the "SASLprep" profile of the "stringprep" algorithm.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • prepare

      public static java.lang.String prepare​(java.lang.String str, SaslPrep.StringType sType)
      Prepares the given string by applying the "SASLprep" profile of the "stringprep" algorithm.
      Parameters:
      str - the string to prepare.
      sType - the type of preparation with regard to the support for unassigned code points.
      Returns:
      the prepared version of the given string.
      See Also:
      RFC 4013, RFC 3454