Package adams.flow.core
Class TLSUtils
- java.lang.Object
-
- adams.flow.core.TLSHelper
-
- adams.flow.core.TLSUtils
-
public class TLSUtils extends adams.flow.core.TLSHelper
Helper class for TLS related operations.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
-
-
Field Summary
Fields Modifier and Type Field Description static String
FALLBACK_TLS_VERSION
-
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.
-
-
-
Field Detail
-
FALLBACK_TLS_VERSION
public static final String FALLBACK_TLS_VERSION
- See Also:
- Constant Field Values
-
-
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 actorhttp
- 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
-
-