@PublicAPI(stability=VOLATILE, mayInstantiate=true, mayExtend=false, mayInvoke=true) public final class NamedCharacterSet extends Object
Modifier and Type | Method and Description |
---|---|
static NamedCharacterSet[] |
decodeCharacterSets(SortedSet<String> values)
Decodes the values of the provided configuration attribute as a
set of character set definitions.
|
char[] |
getCharacters()
Retrieves the characters included in this character set.
|
String |
getName()
Retrieves the name for this character set.
|
char |
getRandomCharacter()
Retrieves a character at random from this named character set.
|
void |
getRandomCharacters(StringBuilder buffer,
int count)
Appends the specified number of characters chosen at random from
this character set to the provided buffer.
|
public String getName()
public char[] getCharacters()
public char getRandomCharacter()
public void getRandomCharacters(StringBuilder buffer, int count)
buffer
- The buffer to which the characters should be
appended.count
- The number of characters to append to the
provided buffer.public static NamedCharacterSet[] decodeCharacterSets(SortedSet<String> values) throws org.forgerock.opendj.config.server.ConfigException
values
- The set of encoded character set values to
decode.org.forgerock.opendj.config.server.ConfigException
- If a problem occurs while attempting to
decode the character set definitions.Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.