org.jboss.remoting.transport.http.ssl
Class HTTPSClientInvoker

java.lang.Object
  extended byorg.jboss.remoting.AbstractInvoker
      extended byorg.jboss.remoting.MicroRemoteClientInvoker
          extended byorg.jboss.remoting.RemoteClientInvoker
              extended byorg.jboss.remoting.transport.http.HTTPClientInvoker
                  extended byorg.jboss.remoting.transport.http.ssl.HTTPSClientInvoker
All Implemented Interfaces:
ClientInvoker, Invoker

public class HTTPSClientInvoker
extends HTTPClientInvoker

Author:
Tom Elrod

Nested Class Summary
protected  class HTTPSClientInvoker.AnyhostVerifier
           
 
Field Summary
static java.lang.String HOSTNAME_VERIFIER
           
static java.lang.String IGNORE_HTTPS_HOST
          A property to override the default https url host verification
 
Fields inherited from class org.jboss.remoting.transport.http.HTTPClientInvoker
log
 
Fields inherited from class org.jboss.remoting.MicroRemoteClientInvoker
connected
 
Fields inherited from class org.jboss.remoting.AbstractInvoker
classbyteloader, configuration, localServerLocators, locator, serializationType, socketFactory, socketFactoryCreatedFromSSLParameters
 
Constructor Summary
HTTPSClientInvoker(InvokerLocator locator)
           
HTTPSClientInvoker(InvokerLocator locator, java.util.Map configuration)
           
 
Method Summary
protected  javax.net.SocketFactory createSocketFactory(java.util.Map configuration)
          If any configuration parameters relate to the construction of a SSLSocketBuilder, create one.
protected  java.net.HttpURLConnection createURLConnection(java.lang.String url, java.util.Map metadata)
          Checks to see if org.jboss.security.ignoreHttpHost property is set to true, and if it is, will ste the host name verifier so that will accept any host.
protected  void setHostnameVerifier(javax.net.ssl.HttpsURLConnection conn, java.util.Map metadata)
           
protected  java.lang.String validateURL(java.lang.String url)
           
 
Methods inherited from class org.jboss.remoting.transport.http.HTTPClientInvoker
getDefaultDataType, handleConnect, handleDisconnect, transport
 
Methods inherited from class org.jboss.remoting.MicroRemoteClientInvoker
connect, disconnect, finalize, getMarshaller, getUnMarshaller, invoke, isConnected, postProcess, preProcess, setMarshaller, setUnMarshaller
 
Methods inherited from class org.jboss.remoting.AbstractInvoker
addClientLocator, getClassLoader, getClientLocator, getLocator, getSerializationType, getSocketFactory, isSocketFactoryCreatedFromSSLParameters, needsCustomSSLConfiguration, setClassLoader, setSerializationType, setSocketFactory
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.remoting.transport.ClientInvoker
addClientLocator, getClientLocator, getSocketFactory, setSocketFactory
 
Methods inherited from interface org.jboss.remoting.Invoker
getLocator
 

Field Detail

IGNORE_HTTPS_HOST

public static final java.lang.String IGNORE_HTTPS_HOST
A property to override the default https url host verification

See Also:
Constant Field Values

HOSTNAME_VERIFIER

public static final java.lang.String HOSTNAME_VERIFIER
See Also:
Constant Field Values
Constructor Detail

HTTPSClientInvoker

public HTTPSClientInvoker(InvokerLocator locator)

HTTPSClientInvoker

public HTTPSClientInvoker(InvokerLocator locator,
                          java.util.Map configuration)
Method Detail

validateURL

protected java.lang.String validateURL(java.lang.String url)
Overrides:
validateURL in class HTTPClientInvoker

createURLConnection

protected java.net.HttpURLConnection createURLConnection(java.lang.String url,
                                                         java.util.Map metadata)
                                                  throws java.io.IOException
Checks to see if org.jboss.security.ignoreHttpHost property is set to true, and if it is, will ste the host name verifier so that will accept any host.

Overrides:
createURLConnection in class HTTPClientInvoker
Returns:
Throws:
java.io.IOException

createSocketFactory

protected javax.net.SocketFactory createSocketFactory(java.util.Map configuration)
Description copied from class: AbstractInvoker
If any configuration parameters relate to the construction of a SSLSocketBuilder, create one.

Overrides:
createSocketFactory in class AbstractInvoker
Parameters:
configuration -
Returns:

setHostnameVerifier

protected void setHostnameVerifier(javax.net.ssl.HttpsURLConnection conn,
                                   java.util.Map metadata)


Copyright © 1998-2005 JBoss Inc . All Rights Reserved.