Package com.ongres.saslprep
Class SASLprep
- java.lang.Object
-
- com.ongres.saslprep.SASLprep
-
- All Implemented Interfaces:
Profile
@ProfileName("SASLprep") public final class SASLprep extends java.lang.Object implements 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 Modifier and Type Field Description private java.util.Set<Option>
saslprepProfile
-
Constructor Summary
Constructors Constructor Description SASLprep()
Construct an instance of theSASLprep
profile.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int[]
additionalMappingTable(int codePoint)
Non-ASCII space characters that can be mapped to SPACE (U+0020).java.util.Set<Option>
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 Detail
-
saslprepProfile
private final java.util.Set<Option> saslprepProfile
-
-
Method Detail
-
profile
public java.util.Set<Option> 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.
-
-