public class SSLUtilities extends Object
| Modifier and Type | Field and Description |
|---|---|
static HostnameVerifier |
hnv
Deprecated.
|
private static Logger |
log |
private static String |
SSL_RSA_WITH_RC4_128_MD5
This is a widely supported cypher that is not included by the
SSLClient default.
|
static boolean |
useOldStyleSSL
Deprecated.
|
static X509TrustManager |
xtm
Deprecated.
|
| Constructor and Description |
|---|
SSLUtilities() |
| Modifier and Type | Method and Description |
|---|---|
private static HttpURLConnection |
createConnection(String urlString)
Deprecated.
|
static void |
initializeSSLProtocol()
Deprecated.
|
static X509Certificate |
loadX509Certificate(String pathToX509Certificate)
Load an X509Certificate from a file, placing it in the OpenLibertyBoostrap Trusted Certificates.
|
static String |
postSOAPFileViaHttpURLConnection(String urlString,
String inputFileName)
Deprecated.
|
static String |
postSOAPMessage(String postUrlString,
Element message,
boolean isClientTLS)
This is the method that WSFMessage uses to POST ID-* messages.
|
static String |
postSOAPMessageNOTLS(String postUrlString,
Element message)
This is an exceptionally simple SOAP postSOAPMessageNOTLPOST using URLConnection with no TLS
|
static String |
postSOAPMessageViaHttpURLConnection(String urlString,
Element message)
Deprecated.
|
static String |
postSOAPMessageViaHttpURLConnection(String urlString,
String message)
Deprecated.
|
static InputStream |
postSOAPMessageViaHttpURLConnectionIS(String urlString,
String message)
Deprecated.
|
private static final Logger log
private static final String SSL_RSA_WITH_RC4_128_MD5
@Deprecated public static boolean useOldStyleSSL
@Deprecated public static X509TrustManager xtm
@Deprecated public static HostnameVerifier hnv
public static X509Certificate loadX509Certificate(String pathToX509Certificate)
pathToX509Certificate - public static String postSOAPMessageNOTLS(String postUrlString, Element message)
postUrlString - message - public static String postSOAPMessage(String postUrlString, Element message, boolean isClientTLS) throws GeneralSecurityException, IOException
At the suggestion of the OpenSAML java developers, we are using SSLClient from
the not-yet-commons-ssl library ( http://juliusdavies.ca/commons-ssl/ ). It
simplifies the loading of certificates, SSL, and ClientTLS greatly, and has been
said to be more stable than HttpURLConnection.
postUrlString - is the complete URL to the service being invoked. e.g. https://mysvc.com:4343/INVOKE-DISCOmessage - the ID-* message as a DOM elementisClientTLS - indicates whether mutual TLS should be used for this transactionGeneralSecurityExceptionIOException@Deprecated public static void initializeSSLProtocol()
@Deprecated public static String postSOAPMessageViaHttpURLConnection(String urlString, Element message) throws IOException
urlString - message - IOException@Deprecated public static String postSOAPFileViaHttpURLConnection(String urlString, String inputFileName) throws IOException
urlString - inputFileName - IOException@Deprecated public static String postSOAPMessageViaHttpURLConnection(String urlString, String message) throws IOException
urlString - message - IOException@Deprecated public static InputStream postSOAPMessageViaHttpURLConnectionIS(String urlString, String message) throws IOException
urlString - message - IOException@Deprecated private static HttpURLConnection createConnection(String urlString) throws IOException
urlString - IOExceptionCopyright © 1999–2015. All rights reserved.