public class CommaDelimiterRfc2253Name extends Object
Detail:
Converts a string in RFC2253 format and replaces \ escaped characters with a string quoted representation.
It also places a space before the next RDN.
There are two alternate ways an RFC 2253 RDN can escape unicode characters, either with '\'
or by using quotes. Java seems to recognize both formats but Microsoft's WFC only seems to recognize quotes.
Since implementations may escape any characters and string is already in valid format no knowledge is
required of escapable characters.
| Constructor and Description |
|---|
CommaDelimiterRfc2253Name() |
| Modifier and Type | Method and Description |
|---|---|
String |
execute(String rfc2253String)
Return rfc2253String that delimits using quotes.
|
public String execute(String rfc2253String)
rfc2253String - a string in rfc 2253 format using a \ as delimiter.IllegalArgumentException - if an error occurred parsing the rfc2256 string.
However, since its assumed that a valid RFC 2253 string, X500Principal.getName(),
is passed its unlikely that this exception would ever be thrown.Copyright © 2004–2023 The Apache Software Foundation. All rights reserved.