public final class SASLprep extends Object implements Profile
The use of simple user names and passwords in authentication and authorization is pervasive on the Internet. To increase the likelihood that user name and password input and comparison work in ways that make sense for typical users throughout the world, this document defines rules for preparing internationalized user names and passwords for comparison. For simplicity and implementation ease, a single algorithm is defined for both user names and passwords.
| Constructor and Description |
|---|
SASLprep() |
| Modifier and Type | Method and Description |
|---|---|
int[] |
additionalMappingTable(int codePoint)
Non-ASCII space characters that can be mapped to SPACE (U+0020).
|
String |
prepareQuery(String string)
"Queries" are strings that are used to match against strings that are stored identifiers, such
as user-entered names for digital certificate authorities and DNS lookups.
|
String |
prepareStored(String string)
"Stored strings" are strings that are used in protocol identifiers and named entities, such as
names in digital certificates and DNS domain name parts.
|
Set<Option> |
profile()
Set of options used by the profile.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprohibitedAdditionalCharacterspublic String prepareQuery(String string)
prepareQuery in interface Profilestring - to prepare based on a "stringprep" profile.public String prepareStored(String string)
prepareStored in interface Profilestring - to prepare based on a "stringprep" profile.public int[] additionalMappingTable(int codePoint)
additionalMappingTable in interface ProfilecodePoint - the character (Unicode code point) to be mapped.Copyright © 2019–2025 OnGres, Inc. All rights reserved.