NIFI-655:

- Ensuring the protocol is specified.
This commit is contained in:
Matt Gilman 2015-11-30 12:38:17 -05:00
parent 64beeef593
commit 99016a835e
1 changed files with 5 additions and 0 deletions

View File

@ -155,6 +155,11 @@ public class LdapProvider implements LoginIdentityProvider {
} }
} }
// ensure the protocol is specified
if (StringUtils.isBlank(rawProtocol)) {
throw new ProviderCreationException("TLS - Protocol must be specified.");
}
try { try {
final SSLContext sslContext; final SSLContext sslContext;
if (StringUtils.isBlank(rawKeystore)) { if (StringUtils.isBlank(rawKeystore)) {