Top Description Constructors Methods
com.ongres.saslprep

public final Class SASLprep

extends Object
implements Profile
Class Inheritance
All Implemented Interfaces
com.ongres.stringprep.Profile
Imports
java.util.EnumSet, .Set, com.ongres.stringprep.Option, .Profile, .Tables

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.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public int[]
additionalMappingTable(int
the character (Unicode code point) to be mapped.
codePoint
)

Overrides default com.ongres.stringprep.Profile.additionalMappingTable.

Non-ASCII space characters that can be mapped to SPACE (U+0020).
public String
prepareQuery(String
to prepare based on a "stringprep" profile.
string
)

Overrides default com.ongres.stringprep.Profile.prepareQuery.

"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.
public String
prepareStored(String
to prepare based on a "stringprep" profile.
string
)

Overrides default com.ongres.stringprep.Profile.prepareStored.

"Stored strings" are strings that are used in protocol identifiers and named entities, such as names in digital certificates and DNS domain name parts.
public Set<Option>
profile()

Implements com.ongres.stringprep.Profile.profile.

Set of options used by the profile.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

SASLprepback to summary
public SASLprep()

Method Detail

additionalMappingTableback to summary
public int[] additionalMappingTable(int codePoint)

Overrides default com.ongres.stringprep.Profile.additionalMappingTable.

Non-ASCII space characters that can be mapped to SPACE (U+0020).

Parameters
codePoint:int

Doc from com.ongres.stringprep.Profile.additionalMappingTable.

the character (Unicode code point) to be mapped.

Returns:int[]

Doc from com.ongres.stringprep.Profile.additionalMappingTable.

Mapping with the int[] array or with the same codePoint.

Annotations
@Override
prepareQueryback to summary
public String prepareQuery(String string)

Overrides default com.ongres.stringprep.Profile.prepareQuery.

Doc from com.ongres.stringprep.Profile.prepareQuery.

"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.

Parameters
string:String

to prepare based on a "stringprep" profile.

Returns:String

The prepared String.

Annotations
@Override
prepareStoredback to summary
public String prepareStored(String string)

Overrides default com.ongres.stringprep.Profile.prepareStored.

Doc from com.ongres.stringprep.Profile.prepareStored.

"Stored strings" are strings that are used in protocol identifiers and named entities, such as names in digital certificates and DNS domain name parts.

Parameters
string:String

to prepare based on a "stringprep" profile.

Returns:String

The prepared String.

Annotations
@Override
profileback to summary
public Set<Option> profile()

Implements com.ongres.stringprep.Profile.profile.

Doc from com.ongres.stringprep.Profile.profile.

Set of options used by the profile.

Returns:Set<Option>

profile options.

Annotations
@Override