|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.invocation.http.interfaces.Util
Common client utility methods
Field Summary | |
static String |
IGNORE_HTTPS_HOST
A property to override the default https url host verification |
static String |
SSL_FACTORY_BUILDER
A property to install the https connection ssl socket factory |
Constructor Summary | |
Util()
|
Method Summary | |
static void |
configureHttpsHostVerifier(HttpURLConnection conn)
Given an Https URL connection check the org.jboss.security.ignoreHttpsHost system property and if true, install the AnyhostVerifier as the com.sun.net.ssl.HostnameVerifier or javax.net.ssl.HostnameVerifier depending on the version of JSSE seen. |
static void |
configureSSLSocketFactory(HttpURLConnection conn)
Override the SSLSocketFactory used by the HttpsURLConnection. |
static void |
init()
Install the SecurityAssociationAuthenticator as the default java.net.Authenticator |
static Object |
invoke(URL externalURL,
Invocation mi)
Post the Invocation as a serialized MarshalledInvocation object. |
static URL |
resolveURL(String urlValue)
First try to use the externalURLValue as a URL string and if this fails to produce a valid URL treat the externalURLValue as a system property name from which to obtain the URL string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String IGNORE_HTTPS_HOST
public static final String SSL_FACTORY_BUILDER
Constructor Detail |
public Util()
Method Detail |
public static void init()
public static Object invoke(URL externalURL, Invocation mi) throws Exception
Exception
public static void configureHttpsHostVerifier(HttpURLConnection conn)
conn
- a HttpsURLConnectionpublic static void configureSSLSocketFactory(HttpURLConnection conn) throws InvocationTargetException
conn
- possibly a HttpsURLConnection
InvocationTargetException
- thrown on failure to invoke setSSLSocketFactorypublic static URL resolveURL(String urlValue) throws MalformedURLException
MalformedURLException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |