public class StringPrep extends Object
StringPrep case folding is unimplemented, as it's not required by SASLPrep.
Modifier and Type | Class and 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 and Description |
---|
StringPrep() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isContainingProhibitedCharacters(String s) |
static String |
prepAsQueryString(String s)
Apply SASLPrep and return the result.
|
static String |
prepAsStoredString(String s)
Apply SASLPrep and return the result.
|
protected static void |
verifyRTL(String s)
Perform RTL verification according to rfc3454 section 6.
|
protected static void verifyRTL(String s) throws StringPrep.StringPrepRTLError
StringPrep.StringPrepRTLError
.StringPrep.StringPrepRTLError
public static String prepAsStoredString(String s) throws StringPrep.StringPrepError
StringPrep.StringPrepError
public static String prepAsQueryString(String s) throws StringPrep.StringPrepError
StringPrep.StringPrepError
public static boolean isContainingProhibitedCharacters(String s)
Copyright © 2021 The Apache Software Foundation. All rights reserved.