|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.emi.security.authn.x509.impl.OpensslNameUtils
public class OpensslNameUtils
This class provides support for the legacy Openssl format of DN encoding. Please do not use this format unless it is absolutely necessary. It has a number of problems see particular methods documentation for details.
Field Summary | |
---|---|
static Map<String,String> |
NORMALIZED_LABELS
Holds mappings of labels which occur in the wild but are output differently by OpenSSL. |
Constructor Summary | |
---|---|
OpensslNameUtils()
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Map<String,String> NORMALIZED_LABELS
Constructor Detail |
---|
public OpensslNameUtils()
Method Detail |
---|
public static String normalize(String legacyDN)
NORMALIZED_LABELS
map
legacyDN
-
@Deprecated public static String opensslToRfc2253(String inputDN)
inputDN
-
with second arg equal to false
@Deprecated public static String opensslToRfc2253(String inputDN, boolean withWildcards)
inputDN
- withWildcards
- whether '*' wildcards need to be recognized
public 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 similar
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |