Class SaslPrep
java.lang.Object
com.mongodb.internal.authentication.SaslPrep
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
Modifier and TypeMethodDescriptionstatic String
saslPrepQuery
(String str) Deprecated.Return theSASLPrep
-canonicalised version of the givenstr
for use as a query string.static String
saslPrepStored
(String str) Deprecated.Return theSASLPrep
-canonicalised version of the givenstr
for use as a stored string.
-
Method Details
-
saslPrepQuery
Deprecated.Return theSASLPrep
-canonicalised version of the givenstr
for use as a query string. This implements theSASLPrep
algorithm defined in RFC 4013.- Parameters:
str
- The string to canonicalise.- Returns:
- The canonicalised string.
- Throws:
IllegalArgumentException
- if the string contained prohibited codepoints, or broke the requirements for bidirectional character handling.- See Also:
-
saslPrepStored
Deprecated.Return theSASLPrep
-canonicalised version of the givenstr
for use as a stored string. This implements theSASLPrep
algorithm defined in RFC 4013.- Parameters:
str
- The string to canonicalise.- Returns:
- The canonicalised string.
- Throws:
IllegalArgumentException
- if the string contained prohibited codepoints, or broke the requirements for bidirectional character handling.- See Also:
-