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 SummaryFields 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 SummaryConstructors Constructor Description StringPrep()
 - 
Method SummaryAll 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_NOTHINGpublic static final long MAP_TO_NOTHING - See Also:
- Constant Field Values
 
 - 
MAP_TO_SPACEpublic static final long MAP_TO_SPACE - See Also:
- Constant Field Values
 
 - 
MAP_SCRAM_LOGIN_CHARSpublic static final long MAP_SCRAM_LOGIN_CHARS - See Also:
- Constant Field Values
 
 - 
MAP_GS2_LOGIN_CHARSpublic static final long MAP_GS2_LOGIN_CHARS - See Also:
- Constant Field Values
 
 - 
UNMAP_SCRAM_LOGIN_CHARSpublic static final long UNMAP_SCRAM_LOGIN_CHARS - See Also:
- Constant Field Values
 
 - 
UNMAP_GS2_LOGIN_CHARSpublic static final long UNMAP_GS2_LOGIN_CHARS - See Also:
- Constant Field Values
 
 - 
NORMALIZE_KCpublic static final long NORMALIZE_KC - See Also:
- Constant Field Values
 
 - 
FORBID_NON_ASCII_SPACESpublic static final long FORBID_NON_ASCII_SPACES - See Also:
- Constant Field Values
 
 - 
FORBID_ASCII_CONTROLpublic static final long FORBID_ASCII_CONTROL - See Also:
- Constant Field Values
 
 - 
FORBID_NON_ASCII_CONTROLpublic static final long FORBID_NON_ASCII_CONTROL - See Also:
- Constant Field Values
 
 - 
FORBID_PRIVATE_USEpublic static final long FORBID_PRIVATE_USE - See Also:
- Constant Field Values
 
 - 
FORBID_NON_CHARACTERpublic static final long FORBID_NON_CHARACTER - See Also:
- Constant Field Values
 
 - 
FORBID_SURROGATEpublic static final long FORBID_SURROGATE - See Also:
- Constant Field Values
 
 - 
FORBID_INAPPROPRIATE_FOR_PLAIN_TEXTpublic static final long FORBID_INAPPROPRIATE_FOR_PLAIN_TEXT - See Also:
- Constant Field Values
 
 - 
FORBID_INAPPROPRIATE_FOR_CANON_REPpublic static final long FORBID_INAPPROPRIATE_FOR_CANON_REP - See Also:
- Constant Field Values
 
 - 
FORBID_CHANGE_DISPLAY_AND_DEPRECATEDpublic static final long FORBID_CHANGE_DISPLAY_AND_DEPRECATED - See Also:
- Constant Field Values
 
 - 
FORBID_TAGGINGpublic static final long FORBID_TAGGING - See Also:
- Constant Field Values
 
 - 
FORBID_UNASSIGNEDpublic static final long FORBID_UNASSIGNED - See Also:
- Constant Field Values
 
 - 
PROFILE_SASL_QUERYpublic static final long PROFILE_SASL_QUERY - See Also:
- Constant Field Values
 
 - 
PROFILE_SASL_STOREDpublic static final long PROFILE_SASL_STORED - See Also:
- Constant Field Values
 
 - 
PROFILE_SASL_STORED_NON_NORMALIZEDpublic static final long PROFILE_SASL_STORED_NON_NORMALIZED - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
mapCodePointToNothingpublic static boolean mapCodePointToNothing(int input) 
 - 
mapCodePointToSpacepublic static boolean mapCodePointToSpace(int input) 
 - 
forbidNonAsciiSpacespublic static void forbidNonAsciiSpaces(int input) 
 - 
forbidAsciiControlpublic static void forbidAsciiControl(int input) 
 - 
forbidNonAsciiControlpublic static void forbidNonAsciiControl(int input) 
 - 
forbidPrivateUsepublic static void forbidPrivateUse(int input) 
 - 
forbidNonCharacterpublic static void forbidNonCharacter(int input) 
 - 
forbidSurrogatepublic static void forbidSurrogate(int input) 
 - 
forbidInappropriateForPlainTextpublic static void forbidInappropriateForPlainText(int input) 
 - 
forbidInappropriateForCanonicalRepresentationpublic static void forbidInappropriateForCanonicalRepresentation(int input) 
 - 
forbidChangeDisplayPropertiesOrDeprecatedpublic static void forbidChangeDisplayPropertiesOrDeprecated(int input) 
 - 
forbidTaggingpublic static void forbidTagging(int input) 
 - 
forbidUnassignedpublic static void forbidUnassigned(int input) 
 - 
encodepublic static void encode(char[] string, org.wildfly.common.bytes.ByteStringBuilder target, long profile)
 - 
encodepublic static void encode(String string, org.wildfly.common.bytes.ByteStringBuilder target, long profile) 
 
- 
 
-