Package org.wildfly.security.sasl.util
Class StringPrep
- java.lang.Object
-
- org.wildfly.security.sasl.util.StringPrep
-
public final class StringPrep extends Object
Preparation of Internationalized Strings ("stringprep") by RFC 3454- Author:
- David M. Lloyd, Jan Kalina
-
-
Field Summary
Fields Modifier and Type Field Description static long
FORBID_ASCII_CONTROL
static long
FORBID_CHANGE_DISPLAY_AND_DEPRECATED
static long
FORBID_INAPPROPRIATE_FOR_CANON_REP
static long
FORBID_INAPPROPRIATE_FOR_PLAIN_TEXT
static long
FORBID_NON_ASCII_CONTROL
static long
FORBID_NON_ASCII_SPACES
static long
FORBID_NON_CHARACTER
static long
FORBID_PRIVATE_USE
static long
FORBID_SURROGATE
static long
FORBID_TAGGING
static long
FORBID_UNASSIGNED
static long
MAP_GS2_LOGIN_CHARS
static long
MAP_SCRAM_LOGIN_CHARS
static long
MAP_TO_NOTHING
static long
MAP_TO_SPACE
static long
NORMALIZE_KC
static long
PROFILE_SASL_QUERY
static long
PROFILE_SASL_STORED
static long
PROFILE_SASL_STORED_NON_NORMALIZED
static long
UNMAP_GS2_LOGIN_CHARS
static long
UNMAP_SCRAM_LOGIN_CHARS
-
Constructor Summary
Constructors Constructor Description StringPrep()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
encode(char[] string, org.wildfly.common.bytes.ByteStringBuilder target, long profile)
static void
encode(String string, org.wildfly.common.bytes.ByteStringBuilder target, long profile)
static void
forbidAsciiControl(int input)
static void
forbidChangeDisplayPropertiesOrDeprecated(int input)
static void
forbidInappropriateForCanonicalRepresentation(int input)
static void
forbidInappropriateForPlainText(int input)
static void
forbidNonAsciiControl(int input)
static void
forbidNonAsciiSpaces(int input)
static void
forbidNonCharacter(int input)
static void
forbidPrivateUse(int input)
static void
forbidSurrogate(int input)
static void
forbidTagging(int input)
static void
forbidUnassigned(int input)
static boolean
mapCodePointToNothing(int input)
static boolean
mapCodePointToSpace(int input)
-
-
-
Field Detail
-
MAP_TO_NOTHING
public static final long MAP_TO_NOTHING
- See Also:
- Constant Field Values
-
MAP_TO_SPACE
public static final long MAP_TO_SPACE
- See Also:
- Constant Field Values
-
MAP_SCRAM_LOGIN_CHARS
public static final long MAP_SCRAM_LOGIN_CHARS
- See Also:
- Constant Field Values
-
MAP_GS2_LOGIN_CHARS
public static final long MAP_GS2_LOGIN_CHARS
- See Also:
- Constant Field Values
-
UNMAP_SCRAM_LOGIN_CHARS
public static final long UNMAP_SCRAM_LOGIN_CHARS
- See Also:
- Constant Field Values
-
UNMAP_GS2_LOGIN_CHARS
public static final long UNMAP_GS2_LOGIN_CHARS
- See Also:
- Constant Field Values
-
NORMALIZE_KC
public static final long NORMALIZE_KC
- See Also:
- Constant Field Values
-
FORBID_NON_ASCII_SPACES
public static final long FORBID_NON_ASCII_SPACES
- See Also:
- Constant Field Values
-
FORBID_ASCII_CONTROL
public static final long FORBID_ASCII_CONTROL
- See Also:
- Constant Field Values
-
FORBID_NON_ASCII_CONTROL
public static final long FORBID_NON_ASCII_CONTROL
- See Also:
- Constant Field Values
-
FORBID_PRIVATE_USE
public static final long FORBID_PRIVATE_USE
- See Also:
- Constant Field Values
-
FORBID_NON_CHARACTER
public static final long FORBID_NON_CHARACTER
- See Also:
- Constant Field Values
-
FORBID_SURROGATE
public static final long FORBID_SURROGATE
- See Also:
- Constant Field Values
-
FORBID_INAPPROPRIATE_FOR_PLAIN_TEXT
public static final long FORBID_INAPPROPRIATE_FOR_PLAIN_TEXT
- See Also:
- Constant Field Values
-
FORBID_INAPPROPRIATE_FOR_CANON_REP
public static final long FORBID_INAPPROPRIATE_FOR_CANON_REP
- See Also:
- Constant Field Values
-
FORBID_CHANGE_DISPLAY_AND_DEPRECATED
public static final long FORBID_CHANGE_DISPLAY_AND_DEPRECATED
- See Also:
- Constant Field Values
-
FORBID_TAGGING
public static final long FORBID_TAGGING
- See Also:
- Constant Field Values
-
FORBID_UNASSIGNED
public static final long FORBID_UNASSIGNED
- See Also:
- Constant Field Values
-
PROFILE_SASL_QUERY
public static final long PROFILE_SASL_QUERY
- See Also:
- Constant Field Values
-
PROFILE_SASL_STORED
public static final long PROFILE_SASL_STORED
- See Also:
- Constant Field Values
-
PROFILE_SASL_STORED_NON_NORMALIZED
public static final long PROFILE_SASL_STORED_NON_NORMALIZED
- See Also:
- Constant Field Values
-
-
Method Detail
-
mapCodePointToNothing
public static boolean mapCodePointToNothing(int input)
-
mapCodePointToSpace
public static boolean mapCodePointToSpace(int input)
-
forbidNonAsciiSpaces
public static void forbidNonAsciiSpaces(int input)
-
forbidAsciiControl
public static void forbidAsciiControl(int input)
-
forbidNonAsciiControl
public static void forbidNonAsciiControl(int input)
-
forbidPrivateUse
public static void forbidPrivateUse(int input)
-
forbidNonCharacter
public static void forbidNonCharacter(int input)
-
forbidSurrogate
public static void forbidSurrogate(int input)
-
forbidInappropriateForPlainText
public static void forbidInappropriateForPlainText(int input)
-
forbidInappropriateForCanonicalRepresentation
public static void forbidInappropriateForCanonicalRepresentation(int input)
-
forbidChangeDisplayPropertiesOrDeprecated
public static void forbidChangeDisplayPropertiesOrDeprecated(int input)
-
forbidTagging
public static void forbidTagging(int input)
-
forbidUnassigned
public static void forbidUnassigned(int input)
-
encode
public static void encode(char[] string, org.wildfly.common.bytes.ByteStringBuilder target, long profile)
-
encode
public static void encode(String string, org.wildfly.common.bytes.ByteStringBuilder target, long profile)
-
-