Package org.apache.wss4j.common.util
Class CommaDelimiterRfc2253Name
java.lang.Object
org.apache.wss4j.common.util.CommaDelimiterRfc2253Name
Convert a RFC 2253 String using \ to escape unicode characters into one that is compatible
with Microsoft's WFC and Java.
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 Summary
Constructors -
Method Summary
-
Constructor Details
-
CommaDelimiterRfc2253Name
public CommaDelimiterRfc2253Name()
-
-
Method Details
-
execute
Return rfc2253String that delimits using quotes.- Parameters:
rfc2253String- a string in rfc 2253 format using a \ as delimiter.- Returns:
- Rdn in quoted form if required.
- Throws:
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.
-