public final class Tools extends Object
| Constructor and Description |
|---|
Tools() |
| Modifier and Type | Method and Description |
|---|---|
static SSLContext |
getTlsSslContext() |
static Properties |
loadProperties(Class<?> clazz,
String fileName)
Load properties.
|
static SSLContext |
trustAllCertificates()
Trust all certs.
|
public static Properties loadProperties(Class<?> clazz, String fileName) throws IOException
clazz - the class from classpath where the properties arefileName - properties file nameIOException - for any errorpublic static SSLContext trustAllCertificates() throws Exception
Exception - for any errorpublic static SSLContext getTlsSslContext() throws Exception
ExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.