public class OpensslNameUtils extends Object
Modifier and Type | Field and Description |
---|---|
static Map<String,String> |
NORMALIZED_LABELS
Holds mappings of labels which occur in the wild but are output differently by OpenSSL.
|
Constructor and Description |
---|
OpensslNameUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
convertFromRfc2253(String srcDn,
boolean globusFlavouring)
Returns an OpenSSL legacy (and as of now the default in OpenSSL) encoding of the provided RFC 2253 DN.
|
static String |
normalize(String legacyDN)
Performs cleaning of the provided openssl legacy DN.
|
static String |
opensslToRfc2253(String inputDN)
Deprecated.
This method is not planned for removal but it is marked as deprecated as it is highly unreliable
and you should update your code not to use openssl style DNs at all
|
static String |
opensslToRfc2253(String inputDN,
boolean withWildcards)
Deprecated.
This method is not planned for removal but it is marked as deprecated as it is highly unreliable
and you should update your code not to use openssl style DNs at all
|
public static final Map<String,String> NORMALIZED_LABELS
public static String normalize(String legacyDN)
NORMALIZED_LABELS
map
legacyDN
- legacy DN@Deprecated public static String opensslToRfc2253(String inputDN)
inputDN
- input DNwith second arg equal to false
@Deprecated public static String opensslToRfc2253(String inputDN, boolean withWildcards)
inputDN
- input DNwithWildcards
- whether '*' wildcards need to be recognizedpublic static String convertFromRfc2253(String srcDn, boolean globusFlavouring)
If you want to compare the output of this method (using string comparison) with something generated by openssl from a certificate, you can expect problems in case of:
srcDn
- input in RFC 2253 format or similarglobusFlavouring
- globus flavouringCopyright © 2012-2017 European Middleware Initiative. All Rights Reserved.