public final class Nameprep extends Object implements Profile
This document specifies processing rules that will allow users to enter internationalized domain names (IDNs) into applications and have the highest chance of getting the content of the strings correct. It is a profile of stringprep. These processing rules are only intended for internationalized domain names, not for arbitrary text.
| Constructor and Description |
|---|
Nameprep() |
| Modifier and Type | Method and Description |
|---|---|
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, waitadditionalMappingTable, prohibitedAdditionalCharacterspublic 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.Copyright © 2019–2025 OnGres, Inc. All rights reserved.