|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openliberty.wsc.SSLUtilities
public class SSLUtilities
This class contains a group of utilities used by the ClientLib to make SSl/TLS and Mutual SSL/TLS requests.
| Field Summary | |
|---|---|
static javax.net.ssl.HostnameVerifier |
hnv
Deprecated. |
private static org.apache.log4j.Logger |
log
|
private static java.lang.String |
SSL_RSA_WITH_RC4_128_MD5
This is a widely supported cypher that is not included by the SSLClient default. |
static javax.net.ssl.X509TrustManager |
xtm
Deprecated. |
| Constructor Summary | |
|---|---|
SSLUtilities()
|
|
| Method Summary | |
|---|---|
private static java.net.HttpURLConnection |
createConnection(java.lang.String urlString)
Deprecated. |
static void |
initializeSSLProtocol()
Deprecated. |
static java.security.cert.X509Certificate |
loadX509Certificate(java.lang.String pathToX509Certificate)
Load an X509Certificate from a file, placing it in the OpenLibertyBoostrap Trusted Certificates. |
static java.lang.String |
postSOAPFileViaHttpURLConnection(java.lang.String urlString,
java.lang.String inputFileName)
Deprecated. |
static java.lang.String |
postSOAPMessage(java.lang.String postUrlString,
org.w3c.dom.Element message,
boolean isClientTLS)
This is the method that WSFMessage uses to POST ID-* messages. |
static java.lang.String |
postSOAPMessageViaHttpURLConnection(java.lang.String urlString,
org.w3c.dom.Element message)
Deprecated. |
static java.lang.String |
postSOAPMessageViaHttpURLConnection(java.lang.String urlString,
java.lang.String message)
Deprecated. |
static java.io.InputStream |
postSOAPMessageViaHttpURLConnectionIS(java.lang.String urlString,
java.lang.String message)
Deprecated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final org.apache.log4j.Logger log
private static final java.lang.String SSL_RSA_WITH_RC4_128_MD5
@Deprecated public static javax.net.ssl.X509TrustManager xtm
@Deprecated public static javax.net.ssl.HostnameVerifier hnv
| Constructor Detail |
|---|
public SSLUtilities()
| Method Detail |
|---|
public static java.security.cert.X509Certificate loadX509Certificate(java.lang.String pathToX509Certificate)
pathToX509Certificate -
public static java.lang.String postSOAPMessage(java.lang.String postUrlString,
org.w3c.dom.Element message,
boolean isClientTLS)
throws java.security.GeneralSecurityException,
java.io.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 transaction
java.security.GeneralSecurityException
java.io.IOException@Deprecated public static void initializeSSLProtocol()
@Deprecated
public static java.lang.String postSOAPMessageViaHttpURLConnection(java.lang.String urlString,
org.w3c.dom.Element message)
throws java.io.IOException
urlString - message -
java.io.IOException
@Deprecated
public static java.lang.String postSOAPFileViaHttpURLConnection(java.lang.String urlString,
java.lang.String inputFileName)
throws java.io.IOException
urlString - inputFileName -
java.io.IOException
@Deprecated
public static java.lang.String postSOAPMessageViaHttpURLConnection(java.lang.String urlString,
java.lang.String message)
throws java.io.IOException
urlString - message -
java.io.IOException
@Deprecated
public static java.io.InputStream postSOAPMessageViaHttpURLConnectionIS(java.lang.String urlString,
java.lang.String message)
throws java.io.IOException
urlString - message -
java.io.IOException
@Deprecated
private static java.net.HttpURLConnection createConnection(java.lang.String urlString)
throws java.io.IOException
urlString -
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||