Class StringPrep
- java.lang.Object
-
- org.apache.activemq.artemis.spi.core.security.scram.StringPrep
-
public class StringPrep extends java.lang.Object
rfc3454 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 class
StringPrep.CharClass
A representation of sets of character classes.static class
StringPrep.StringPrepError
A prohibited string has been passed to StringPrep.static class
StringPrep.StringPrepProhibitedCharacter
A prohibited character was detected.static class
StringPrep.StringPrepRTLError
RTL verification has failed, according to rfc3454 section 6.static class
StringPrep.StringPrepRTLErrorBothRALandL
static class
StringPrep.StringPrepRTLErrorRALWithoutPrefix
static class
StringPrep.StringPrepRTLErrorRALWithoutSuffix
static class
StringPrep.StringPrepUnassignedCodepoint
A 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 boolean
isContainingProhibitedCharacters(java.lang.String s)
static java.lang.String
prepAsQueryString(java.lang.String s)
Apply SASLPrep and return the result.static java.lang.String
prepAsStoredString(java.lang.String s)
Apply SASLPrep and return the result.protected static void
verifyRTL(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.StringPrepRTLError
Perform 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.StringPrepError
Apply 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.StringPrepError
Apply SASLPrep and return the result. is treated as a query string.- Throws:
StringPrep.StringPrepError
-
isContainingProhibitedCharacters
public static boolean isContainingProhibitedCharacters(java.lang.String s)
-
-