public class JaasOptionsUtils extends Object
JaasOptionsUtils
is a utility class to perform logic for the JAAS options and
is separated out here for easier, more direct testing.Constructor and Description |
---|
JaasOptionsUtils(Map<String,Object> options) |
Modifier and Type | Method and Description |
---|---|
SSLSocketFactory |
createSSLSocketFactory() |
static Map<String,Object> |
getOptions(String saslMechanism,
List<AppConfigurationEntry> jaasConfigEntries) |
Map<String,?> |
getSslClientConfig() |
boolean |
shouldCreateSSLSocketFactory(URL url) |
String |
validateString(String name) |
String |
validateString(String name,
boolean isRequired) |
public static Map<String,Object> getOptions(String saslMechanism, List<AppConfigurationEntry> jaasConfigEntries)
public boolean shouldCreateSSLSocketFactory(URL url)
public SSLSocketFactory createSSLSocketFactory()
public String validateString(String name) throws ValidateException
ValidateException
public String validateString(String name, boolean isRequired) throws ValidateException
ValidateException