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 longFORBID_ASCII_CONTROLstatic longFORBID_CHANGE_DISPLAY_AND_DEPRECATEDstatic longFORBID_INAPPROPRIATE_FOR_CANON_REPstatic longFORBID_INAPPROPRIATE_FOR_PLAIN_TEXTstatic longFORBID_NON_ASCII_CONTROLstatic longFORBID_NON_ASCII_SPACESstatic longFORBID_NON_CHARACTERstatic longFORBID_PRIVATE_USEstatic longFORBID_SURROGATEstatic longFORBID_TAGGINGstatic longFORBID_UNASSIGNEDstatic longMAP_GS2_LOGIN_CHARSstatic longMAP_SCRAM_LOGIN_CHARSstatic longMAP_TO_NOTHINGstatic longMAP_TO_SPACEstatic longNORMALIZE_KCstatic longPROFILE_SASL_QUERYstatic longPROFILE_SASL_STOREDstatic longPROFILE_SASL_STORED_NON_NORMALIZEDstatic longUNMAP_GS2_LOGIN_CHARSstatic longUNMAP_SCRAM_LOGIN_CHARS
-
Constructor Summary
Constructors Constructor Description StringPrep()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidencode(char[] string, org.wildfly.common.bytes.ByteStringBuilder target, long profile)static voidencode(String string, org.wildfly.common.bytes.ByteStringBuilder target, long profile)static voidforbidAsciiControl(int input)static voidforbidChangeDisplayPropertiesOrDeprecated(int input)static voidforbidInappropriateForCanonicalRepresentation(int input)static voidforbidInappropriateForPlainText(int input)static voidforbidNonAsciiControl(int input)static voidforbidNonAsciiSpaces(int input)static voidforbidNonCharacter(int input)static voidforbidPrivateUse(int input)static voidforbidSurrogate(int input)static voidforbidTagging(int input)static voidforbidUnassigned(int input)static booleanmapCodePointToNothing(int input)static booleanmapCodePointToSpace(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)
-
-