| | |
| | | if (bindNameArg.isPresent() || bindPasswordFileArg.isPresent() |
| | | || bindPasswordArg.isPresent()) |
| | | { |
| | | bindRequest = |
| | | Requests.newSimpleBindRequest(getBindName(), getPassword()); |
| | | bindRequest = Requests.newSimpleBindRequest(getBindName(), |
| | | getPassword().toCharArray()); |
| | | } |
| | | } |
| | | else if (mech.equals(DigestMD5SASLBindRequest.SASL_MECHANISM_NAME)) |
| | |
| | | { |
| | | tm = TrustManagers.checkValidityDates(TrustManagers.checkHostName( |
| | | hostNameArg.getValue(), TrustManagers.checkUsingTrustStore( |
| | | trustStorePathArg.getValue(), getTrustStorePIN(), null))); |
| | | trustStorePathArg.getValue(), getTrustStorePIN().toCharArray(), |
| | | null))); |
| | | } |
| | | else if (getTrustStore() != null) |
| | | { |
| | | tm = TrustManagers.checkValidityDates(TrustManagers.checkHostName( |
| | | hostNameArg.getValue(), TrustManagers.checkUsingTrustStore( |
| | | getTrustStore(), getTrustStorePIN(), null))); |
| | | getTrustStore(), getTrustStorePIN().toCharArray(), null))); |
| | | } |
| | | |
| | | if (app != null && !app.isQuiet()) |