public class Stringprep extends Object
| Constructor and Description |
|---|
Stringprep() |
| Modifier and Type | Method and Description |
|---|---|
static String |
nameprep(String input)
Preps a name according to the Stringprep profile defined in RFC3491.
|
static String |
nameprep(String input,
boolean allowUnassigned)
Preps a name according to the Stringprep profile defined in RFC3491.
|
static String |
nodeprep(String input)
Preps a node name according to the Stringprep profile defined in RFC3920.
|
static String |
nodeprep(String input,
boolean allowUnassigned)
Preps a node name according to the Stringprep profile defined in RFC3920.
|
static String |
resourceprep(String input)
Preps a resource name according to the Stringprep profile defined in RFC3920.
|
static String |
resourceprep(String input,
boolean allowUnassigned)
Preps a resource name according to the Stringprep profile defined in RFC3920.
|
public static String nameprep(String input) throws StringprepException, NullPointerException
input - the name to prep.StringprepException - If the name cannot be prepped with this profile.NullPointerException - If the name is null.public static String nameprep(String input, boolean allowUnassigned) throws StringprepException, NullPointerException
input - the name to prep.allowUnassigned - true if the name may contain unassigned code points.StringprepException - If the name cannot be prepped with this profile.NullPointerException - If the name is null.public static String nodeprep(String input) throws StringprepException, NullPointerException
input - the node name to prep.StringprepException - If the node name cannot be prepped with this profile.NullPointerException - If the node name is null.public static String nodeprep(String input, boolean allowUnassigned) throws StringprepException, NullPointerException
input - the node name to prep.allowUnassigned - true if the node name may contain unassigned code points.StringprepException - If the node name cannot be prepped with this profile.NullPointerException - If the node name is null.public static String resourceprep(String input) throws StringprepException, NullPointerException
input - the resource name to prep.StringprepException - If the resource name cannot be prepped with this profile.NullPointerException - If the resource name is null.public static String resourceprep(String input, boolean allowUnassigned) throws StringprepException, NullPointerException
input - the resource name to prep.allowUnassigned - true if the resource name may contain unassigned code points.StringprepException - If the resource name cannot be prepped with this profile.NullPointerException - If the resource name is null.Copyright © 2004–2019 "Tigase, Inc.". All rights reserved.