Package com.ongres.saslprep
Class SASLprep
java.lang.Object
com.ongres.saslprep.SASLprep
- All Implemented Interfaces:
Profile
SASLprep: Stringprep Profile for User Names and Passwords.
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.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint[]
additionalMappingTable
(int codePoint) Non-ASCII space characters that can be mapped to SPACE (U+0020).profile()
Set of options used by the profile.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.ongres.stringprep.Profile
prepareQuery, prepareQuery, prepareStored, prepareStored, prohibitedAdditionalCharacters
-
Field Details
-
saslprepProfile
-
-
Constructor Details
-
SASLprep
public SASLprep()Construct an instance of theSASLprep
profile.
-
-
Method Details
-
profile
Description copied from interface:Profile
Set of options used by the profile. -
additionalMappingTable
public int[] additionalMappingTable(int codePoint) Non-ASCII space characters that can be mapped to SPACE (U+0020).- Specified by:
additionalMappingTable
in interfaceProfile
- Parameters:
codePoint
- the character (Unicode code point) to be mapped.- Returns:
- Mapping with the int[] array or with the same codePoint.
-