Class TLSUtils


  • public class TLSUtils
    extends adams.flow.core.TLSHelper
    Helper class for TLS related operations.
    Author:
    FracPete (fracpete at waikato dot ac dot nz)
    • Constructor Summary

      Constructors 
      Constructor Description
      TLSUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.apache.cxf.configuration.jsse.TLSClientParameters configureClientTLS​(adams.flow.core.Actor context)
      Configures TLS client parameters based on KeyManager, TrustManager, SSLContext actors.
      static boolean configureClientTLS​(adams.flow.core.Actor owner, org.apache.cxf.transport.http.HTTPConduit http)
      Sets TrustManager and KeyManager if within the context of the actor.
      static org.apache.cxf.configuration.jsse.TLSServerParameters configureServerTLS​(adams.flow.core.Actor context)
      Configures TLS server parameters based on KeyManager, TrustManager, SSLContext actors.
      • Methods inherited from class adams.flow.core.TLSHelper

        locateActors
    • Constructor Detail

      • TLSUtils

        public TLSUtils()
    • Method Detail

      • configureClientTLS

        public static org.apache.cxf.configuration.jsse.TLSClientParameters configureClientTLS​(adams.flow.core.Actor context)
        Configures TLS client parameters based on KeyManager, TrustManager, SSLContext actors. If not SSLContext actor is present, the default SSL context is used.
        Parameters:
        context - the flow context
        Returns:
        the parameters, null if failed to configure
      • configureClientTLS

        public static boolean configureClientTLS​(adams.flow.core.Actor owner,
                                                 org.apache.cxf.transport.http.HTTPConduit http)
        Sets TrustManager and KeyManager if within the context of the actor.
        Parameters:
        owner - the owning actor
        http - the HTTP conduit to configure
        Returns:
        whether successfully enabled TLS
      • configureServerTLS

        public static org.apache.cxf.configuration.jsse.TLSServerParameters configureServerTLS​(adams.flow.core.Actor context)
        Configures TLS server parameters based on KeyManager, TrustManager, SSLContext actors.
        Parameters:
        context - the flow context
        Returns:
        the parameters, null if failed to configure