| Modifier and Type | Class and Description |
|---|---|
| public static enum | SaslPrep.
The type of string usage regarding the support for unassigned code points as described in RFC 3454, Section 7. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static boolean | Returns: true if the character is one of the ASCII control characters, false otherwise.the character to check. chr)Prohibited Output: ASCII control characters [StringPrep, C.2.1]. |
| private static boolean | Returns: true if the character is one of the LCat characters, false otherwise.the code point of the character to check. cp)Bidirectional Characters: LCat characters. |
| private static boolean | Returns: true if the character is one of the RandALCat characters, false otherwise.the code point of the character to check. cp)Bidirectional Characters: RandALCat characters. |
| private static boolean | Returns: true if the character is one of the change display properties or deprecated characters, false otherwise.the character to check. chr)Prohibited Output: change display properties or deprecated characters [StringPrep, C.8]. |
| private static boolean | Returns: true if the character is one of the inappropriate for canonical representation characters, false otherwise.the character to check. chr)Prohibited Output: inappropriate for canonical representation characters [StringPrep, C.7]. |
| private static boolean | Returns: true if the character is one of the inappropriate for plain text characters, false otherwise.the character to check. chr)Prohibited Output: inappropriate for plain text characters [StringPrep, C.6]. |
| private static boolean | Returns: true if the character is one of the "commonly mapped to nothing" characters, false otherwise.the character to check. chr)Mapping: the "commonly mapped to nothing" characters [StringPrep, B.1] that can be mapped to nothing. |
| private static boolean | Returns: true if the character is one of the non-ASCII control characters, false otherwise.the code point of the character to check. cp)Prohibited Output: non-ASCII control characters [StringPrep, C.2.2]. |
| private static boolean | Returns: true if the character is one of the non-ASCII space characters, false otherwise.the character to check. chr)Mapping: non-ASCII space characters [StringPrep, C.1.2] that can be mapped to SPACE (U+0020). |
| private static boolean | Returns: true if the character is one of the non-character code points, false otherwise.the code point of the character to check. cp)Prohibited Output: non-character code points [StringPrep, C.4]. |
| private static boolean | Returns: true if the character is one of the private use characters, false otherwise.the code point of the character to check. cp)Prohibited Output: private use characters [StringPrep, C.3]. |
| private static boolean | Returns: true if the character is prohibited according to the profile rules, false otherwise.the character to check. chr, int the code point of the character to check. cp)Checks if the given character is one of the prohibited characters under the "SASLprep Profile" rules. |
| private static boolean | Returns: true if the character is one of the surrogate code points, false otherwise.the character to check. chr)Prohibited Output: surrogate code points [StringPrep, C.5]. |
| private static boolean | Returns: true if the character is one of the tagging characters, false otherwise.the code point of the character to check. cp)Prohibited Output: tagging characters [StringPrep, C.9]. |
| private static boolean | Returns: true if the character is unassigned, false otherwise.the code point of the character to check. cp)Unassigned Code Points: list of unassigned code points. |
| private static String | Returns: a normalized version of the given string by the rules of the Unicode normalization form KC.the string to be normalized. str)Normalization: Unicode normalization form KC. |
| public static String | Returns: the prepared version of the given string.the string to prepare. str, SaslPrep.the type of preparation with regard to the support for unassigned code points. sTypePrepares the given string by applying the "SASLprep" profile of the "stringprep" algorithm. |
| SaslPrep | back to summary |
|---|---|
| public SaslPrep() | |
| isAsciiControlCharacter | back to summary |
|---|---|
| private static boolean isAsciiControlCharacter(char chr) Prohibited Output: ASCII control characters [StringPrep, C.2.1].
| |
| isBidiLCat | back to summary |
|---|---|
| private static boolean isBidiLCat(int cp) Bidirectional Characters: LCat characters. See also RFC 3454, Section 6
| |
| isBidiRAndAlCat | back to summary |
|---|---|
| private static boolean isBidiRAndAlCat(int cp) Bidirectional Characters: RandALCat characters. See also RFC 3454, Section 6
| |
| isChangeDisplayPropertiesOrDeprecatedCharacter | back to summary |
|---|---|
| private static boolean isChangeDisplayPropertiesOrDeprecatedCharacter(char chr) Prohibited Output: change display properties or deprecated characters [StringPrep, C.8].
| |
| isInappropriateForCanonicalRepresentationCharacter | back to summary |
|---|---|
| private static boolean isInappropriateForCanonicalRepresentationCharacter(char chr) Prohibited Output: inappropriate for canonical representation characters [StringPrep, C.7].
| |
| isInappropriateForPlainTextCharacter | back to summary |
|---|---|
| private static boolean isInappropriateForPlainTextCharacter(char chr) Prohibited Output: inappropriate for plain text characters [StringPrep, C.6].
| |
| isMappeableToNothing | back to summary |
|---|---|
| private static boolean isMappeableToNothing(char chr) Mapping: the "commonly mapped to nothing" characters [StringPrep, B.1] that can be mapped to nothing.
| |
| isNonAsciiControlCharacter | back to summary |
|---|---|
| private static boolean isNonAsciiControlCharacter(int cp) Prohibited Output: non-ASCII control characters [StringPrep, C.2.2].
| |
| isNonAsciiSpaceChar | back to summary |
|---|---|
| private static boolean isNonAsciiSpaceChar(char chr) Mapping: non-ASCII space characters [StringPrep, C.1.2] that can be mapped to SPACE (U+0020).
| |
| isNonCharacterCodePoint | back to summary |
|---|---|
| private static boolean isNonCharacterCodePoint(int cp) Prohibited Output: non-character code points [StringPrep, C.4].
| |
| isPrivateUseCharacter | back to summary |
|---|---|
| private static boolean isPrivateUseCharacter(int cp) Prohibited Output: private use characters [StringPrep, C.3].
| |
| isProhibited | back to summary |
|---|---|
| private static boolean isProhibited(char chr, int cp) Checks if the given character is one of the prohibited characters under the "SASLprep Profile" rules.
| |
| isSurrogateCode | back to summary |
|---|---|
| private static boolean isSurrogateCode(char chr) Prohibited Output: surrogate code points [StringPrep, C.5].
| |
| isTaggingCharacter | back to summary |
|---|---|
| private static boolean isTaggingCharacter(int cp) Prohibited Output: tagging characters [StringPrep, C.9].
| |
| isUnassigned | back to summary |
|---|---|
| private static boolean isUnassigned(int cp) Unassigned Code Points: list of unassigned code points. See also RFC 3454, Section 7. Note that this implementation does not check exactly the unassigned code points as specified in the RFC since it is based on Java's Unicode support, which is updated regularly while the specification is based on a static list of code points. This should have no major impact, though.
| |
| normalizeKc | back to summary |
|---|---|
| private static String normalizeKc(CharSequence str) Normalization: Unicode normalization form KC.
| |
| prepare | back to summary |
|---|---|
| public static String prepare(String str, SaslPrep. Prepares the given string by applying the "SASLprep" profile of the "stringprep" algorithm. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final SaslPrep. | QUERY
Queries for matching strings MAY contain unassigned code points. |
| public static final SaslPrep. | STORED
Stored strings using the profile MUST NOT contain any unassigned code points. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static SaslPrep. | |
| public static SaslPrep. |
| QUERY | back to summary |
|---|---|
| public static final SaslPrep. Queries for matching strings MAY contain unassigned code points. | |
| STORED | back to summary |
|---|---|
| public static final SaslPrep. Stored strings using the profile MUST NOT contain any unassigned code points. | |
| StringType | back to summary |
|---|---|
| private StringType() | |
| valueOf | back to summary |
|---|---|
| public static SaslPrep. | |
| values | back to summary |
|---|---|
| public static SaslPrep. | |