Class StringPrep
- java.lang.Object
-
- org.apache.activemq.artemis.spi.core.security.scram.StringPrep
-
public class StringPrep extends java.lang.Objectrfc3454 StringPrep, with an implementation of rfc4013 SASLPrep.StringPrep case folding is unimplemented, as it's not required by SASLPrep.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classStringPrep.CharClassA representation of sets of character classes.static classStringPrep.StringPrepErrorA prohibited string has been passed to StringPrep.static classStringPrep.StringPrepProhibitedCharacterA prohibited character was detected.static classStringPrep.StringPrepRTLErrorRTL verification has failed, according to rfc3454 section 6.static classStringPrep.StringPrepRTLErrorBothRALandLstatic classStringPrep.StringPrepRTLErrorRALWithoutPrefixstatic classStringPrep.StringPrepRTLErrorRALWithoutSuffixstatic classStringPrep.StringPrepUnassignedCodepointA prohibited unassigned codepoint was detected.
-
Constructor Summary
Constructors Constructor Description StringPrep()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisContainingProhibitedCharacters(java.lang.String s)static java.lang.StringprepAsQueryString(java.lang.String s)Apply SASLPrep and return the result.static java.lang.StringprepAsStoredString(java.lang.String s)Apply SASLPrep and return the result.protected static voidverifyRTL(java.lang.String s)Perform RTL verification according to rfc3454 section 6.
-
-
-
Method Detail
-
verifyRTL
protected static void verifyRTL(java.lang.String s) throws StringPrep.StringPrepRTLErrorPerform RTL verification according to rfc3454 section 6. On failure, throw a subclass ofStringPrep.StringPrepRTLError.- Throws:
StringPrep.StringPrepRTLError
-
prepAsStoredString
public static java.lang.String prepAsStoredString(java.lang.String s) throws StringPrep.StringPrepErrorApply SASLPrep and return the result. is treated as a stored string.- Throws:
StringPrep.StringPrepError
-
prepAsQueryString
public static java.lang.String prepAsQueryString(java.lang.String s) throws StringPrep.StringPrepErrorApply SASLPrep and return the result. is treated as a query string.- Throws:
StringPrep.StringPrepError
-
isContainingProhibitedCharacters
public static boolean isContainingProhibitedCharacters(java.lang.String s)
-
-