Class Tools

java.lang.Object
org.arquillian.cube.openshift.api.Tools

public final class Tools extends Object
Useful methods that can also be used in-container. (keep dependecies to a minimal)
Author:
Ales Justin
  • Constructor Details

    • Tools

      public Tools()
  • Method Details

    • loadProperties

      public static Properties loadProperties(Class<?> clazz, String fileName) throws IOException
      Load properties.
      Parameters:
      clazz - the class from classpath where the properties are
      fileName - properties file name
      Returns:
      properties
      Throws:
      IOException - for any error
    • trustAllCertificates

      public static SSLContext trustAllCertificates() throws Exception
      Trust all certs.
      Throws:
      Exception - for any error
    • getTlsSslContext

      public static SSLContext getTlsSslContext() throws Exception
      Throws:
      Exception