Class SaslPrep


  • @Deprecated(since="2021-05-27")
    public final class SaslPrep
    extends java.lang.Object
    Deprecated.
    Usage of this API is not supported in AEM as a Cloud Service.
    Utility class for Sasl string preparation.

    This class should not be considered a part of the public API.

    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static java.lang.String saslPrepQuery​(java.lang.String str)
      Deprecated.
      Return the SASLPrep-canonicalised version of the given str for use as a query string.
      static java.lang.String saslPrepStored​(java.lang.String str)
      Deprecated.
      Return the SASLPrep-canonicalised version of the given str for use as a stored string.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • saslPrepQuery

        public static java.lang.String saslPrepQuery​(java.lang.String str)
        Deprecated.
        Return the SASLPrep-canonicalised version of the given str for use as a query string. This implements the SASLPrep algorithm defined in RFC 4013.
        Parameters:
        str - The string to canonicalise.
        Returns:
        The canonicalised string.
        Throws:
        java.lang.IllegalArgumentException - if the string contained prohibited codepoints, or broke the requirements for bidirectional character handling.
        See Also:
        RFC 3454, Section 7 for discussion of what a query string is.
      • saslPrepStored

        public static java.lang.String saslPrepStored​(java.lang.String str)
        Deprecated.
        Return the SASLPrep-canonicalised version of the given str for use as a stored string. This implements the SASLPrep algorithm defined in RFC 4013.
        Parameters:
        str - The string to canonicalise.
        Returns:
        The canonicalised string.
        Throws:
        java.lang.IllegalArgumentException - if the string contained prohibited codepoints, or broke the requirements for bidirectional character handling.
        See Also:
        RFC 3454, Section 7 for discussion of what a stored string is.