class SaslPrep
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
private |
SaslPrep() |
Modifier and Type | Method and Description |
---|---|
private static boolean |
asciiControl(char ch)
Return true if the given
ch is an ASCII control character
as defined by RFC 3454,
Appendix C.2.1. |
private static boolean |
changeDisplayProperties(int codepoint)
Return true if the given
codepoint is change display properties
or deprecated characters as defined by
RFC 3454,
Appendix C.8. |
private static boolean |
inappropriateForCanonical(int codepoint)
Return true if the given
codepoint is inappropriate for
canonical representation characters as defined by
RFC 3454,
Appendix C.7. |
private static boolean |
inappropriateForPlainText(int codepoint)
Return true if the given
codepoint is inappropriate for plain
text characters as defined by
RFC 3454,
Appendix C.6. |
private static boolean |
mappedToNothing(char ch)
Return true if the given
ch is a "commonly mapped to nothing" character
as defined by RFC 3454,
Appendix B.1. |
private static boolean |
nonAsciiControl(int codepoint)
Return true if the given
ch is a non-ASCII control character
as defined by RFC 3454,
Appendix C.2.2. |
private static boolean |
nonAsciiSpace(char ch)
Return true if the given
ch is a non-ASCII space character
as defined by RFC 3454,
Appendix C.1.2. |
private static boolean |
nonCharacterCodePoint(int codepoint)
Return true if the given
codepoint is a non-character
code point as defined by
RFC 3454,
Appendix C.4. |
private static boolean |
privateUse(int codepoint)
Return true if the given
codepoint is a private use character
as defined by RFC 3454,
Appendix C.3. |
(package private) static boolean |
prohibited(int codepoint)
Return true if the given
codepoint is a prohibited character
as defined by
RFC 4013,
Section 2.3. |
private static java.lang.String |
saslPrep(java.lang.String str,
boolean allowUnassigned) |
(package private) static java.lang.String |
saslPrepQuery(java.lang.String str)
Return the
SASLPrep -canonicalised version of the given str for use as a query
string. |
(package private) static java.lang.String |
saslPrepStored(java.lang.String str)
Return the
SASLPrep -canonicalised version of the given |
private static boolean |
surrogateCodePoint(int codepoint)
Return true if the given
codepoint is a surrogate
code point as defined by
RFC 3454,
Appendix C.5. |
private static boolean |
tagging(int codepoint)
Return true if the given
codepoint is a tagging character
as defined by
RFC 3454,
Appendix C.9. |
static java.lang.String saslPrepQuery(java.lang.String str)
SASLPrep
-canonicalised version of the given str
for use as a query
string. This implements the SASLPrep
algorithm defined in
RFC 4013.str
- The string to canonicalise.java.lang.IllegalArgumentException
- if the string contained prohibited codepoints, or broke the
requirements for bidirectional character handling.static java.lang.String saslPrepStored(java.lang.String str)
SASLPrep
-canonicalised version of the givenstr
- The string to canonicalise.java.lang.IllegalArgumentException
- if the string contained prohibited codepoints, or broke the
requirements for bidirectional character handling.private static java.lang.String saslPrep(java.lang.String str, boolean allowUnassigned)
static boolean prohibited(int codepoint)
codepoint
is a prohibited character
as defined by
RFC 4013,
Section 2.3.private static boolean tagging(int codepoint)
codepoint
is a tagging character
as defined by
RFC 3454,
Appendix C.9.private static boolean changeDisplayProperties(int codepoint)
codepoint
is change display properties
or deprecated characters as defined by
RFC 3454,
Appendix C.8.private static boolean inappropriateForCanonical(int codepoint)
codepoint
is inappropriate for
canonical representation characters as defined by
RFC 3454,
Appendix C.7.private static boolean inappropriateForPlainText(int codepoint)
codepoint
is inappropriate for plain
text characters as defined by
RFC 3454,
Appendix C.6.private static boolean surrogateCodePoint(int codepoint)
codepoint
is a surrogate
code point as defined by
RFC 3454,
Appendix C.5.private static boolean nonCharacterCodePoint(int codepoint)
codepoint
is a non-character
code point as defined by
RFC 3454,
Appendix C.4.private static boolean privateUse(int codepoint)
codepoint
is a private use character
as defined by RFC 3454,
Appendix C.3.private static boolean nonAsciiControl(int codepoint)
ch
is a non-ASCII control character
as defined by RFC 3454,
Appendix C.2.2.private static boolean asciiControl(char ch)
ch
is an ASCII control character
as defined by RFC 3454,
Appendix C.2.1.private static boolean nonAsciiSpace(char ch)
ch
is a non-ASCII space character
as defined by RFC 3454,
Appendix C.1.2.private static boolean mappedToNothing(char ch)
ch
is a "commonly mapped to nothing" character
as defined by RFC 3454,
Appendix B.1.