* remove x500 name validation when loading config file (#1137)

* added x500 name validation in Network registration.
* fix for github issue #1130
This commit is contained in:
Patrick Kuo
2017-07-28 16:18:49 +01:00
committed by GitHub
parent 1f71a6aed2
commit 3a63f0c606
3 changed files with 4 additions and 3 deletions

View File

@ -73,7 +73,7 @@ private fun Config.getSingleValue(path: String, type: KType): Any? {
Path::class -> Paths.get(getString(path))
URL::class -> URL(getString(path))
Properties::class -> getConfig(path).toProperties()
X500Name::class -> X500Name(getString(path)).apply(::validateX500Name)
X500Name::class -> X500Name(getString(path))
else -> if (typeClass.java.isEnum) {
parseEnum(typeClass.java, getString(path))
} else {