Overview | Package | Class | Use | Tree | Deprecated | Index | Help
|  | BEA Systems, Inc.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## weblogic.webservice.client
Class SSLAdapterFactory

    java.lang.Object
      weblogic.webservice.client.SSLAdapterFactory

Deprecated. please migrate to jws for webservices

    public class SSLAdapterFactory

extends Object

SSLAdapterFactory.java Created: Wed Apr 10 09:33:34 2002

Field Summary
`static String` | `SSL_ADAPTER_PROPERTY` Deprecated.

Constructor Summary
`SSLAdapterFactory()` Deprecated.

Method Summary
`SSLAdapter` | `createSSLAdapter()` Deprecated. Returns a new instance of the SSLAdapter class, regardless of whether `useDefaultAdapter` has been set `true`.
`SSLAdapter` | `getDefaultAdapter()` Deprecated. This returns the default instance of the this factory's SSLAdapter.
`static SSLAdapterFactory` | `getDefaultFactory()` Deprecated. Returns the default factory.
`SSLAdapter` | `getSSLAdapter()` Deprecated. This method returns an instance of SSLAdapter if an adapter class is available.
`void` | `setDefaultAdapter(SSLAdapter adapter)` Deprecated. Sets the factory's default instance to one provided by the user.
`static void` | `setDefaultFactory(SSLAdapterFactory factory)` Deprecated. Sets the default factory for SSLAdapters.
`void` | `setUseDefaultAdapter(boolean useDefault)` Deprecated. This method is used to toggle whether this instance of the SSLAdapterFactory will always return the default adapter instance.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### SSL_ADAPTER_PROPERTY

    public static final String SSL_ADAPTER_PROPERTY

  Deprecated.
  See Also:
    Constant Field Values

Constructor Detail

### SSLAdapterFactory

    public SSLAdapterFactory()

  Deprecated.

Method Detail

### setDefaultFactory

    public static final void setDefaultFactory(SSLAdapterFactory factory)

  Deprecated.
  Sets the default factory for SSLAdapters. The factory is used to create SSLAdapter instances in the webservice run time.

  Parameters:
    `factory` - a factory class instance

### getDefaultFactory

    public static final SSLAdapterFactory getDefaultFactory()

  Deprecated.
  Returns the default factory.

  Returns:
    an the default factory instance.

### getDefaultAdapter

    public final SSLAdapter getDefaultAdapter()

  Deprecated.
  This returns the default instance of the this factory's SSLAdapter. This instance is used by the run time if and only if the UseDefault flag has been set via the `setUseDefaultAdapter()` method.

  Returns:
    the default SSLAdapter instance
  See Also:
    `SSLAdapterFactory.setDefaultAdapter(SSLAdapter adapter)`, `SSLAdapterFactory.setUseDefaultAdapter(boolean useDefault)`

### setDefaultAdapter

    public final void setDefaultAdapter(SSLAdapter adapter)

  Deprecated.
  Sets the factory's default instance to one provided by the user. Setting this to `null` will cause a new instance to be generated on the next request.

  Use this if you want to configure an SSLAdapter once and share it across all web service ports.

  Parameters:
    `adapter` - an SSLAdapter instance
  See Also:
    `SSLAdapterFactory.getDefaultAdapter()`, `SSLAdapterFactory.setUseDefaultAdapter(boolean useDefault)`

### setUseDefaultAdapter

    public final void setUseDefaultAdapter(boolean useDefault)

  Deprecated.
  This method is used to toggle whether this instance of the SSLAdapterFactory will always return the default adapter instance. Set this to `true` to enable use of a shared default SSLAdapter instance.

  Parameters:
    `useDefault` - whether or not to return the default SSLAdapter instance for the factory from `getSSLAdapter()`
  See Also:
    `SSLAdapterFactory.getDefaultAdapter()`, `SSLAdapterFactory.getSSLAdapter()`, `SSLAdapterFactory.setUseDefaultAdapter(boolean useDefault)`

### getSSLAdapter

    public final SSLAdapter getSSLAdapter()

  Deprecated.
  This method returns an instance of SSLAdapter if an adapter class is available. It throws an `SSLConfigurationException` if none are available.

  If the factory has been set to use a shared default adapter, it will return the default instance; else it will create a new one.

  The type of adapter returned depends on whether the user has specified an adapter class and on what is available in the classpath. By default, the factory will check the `weblogic.webservice.client.ssl.adapterclass` system property for the name of a user provided adapter class. If the property has not been set, it will try the default Weblogic adapters. If no adapter class can be found, it will throw an `SSLConfigurationException` . The factory will only search for an adapter class on the first invocation. After an initial failure, all subsequent requests will simply return `null`.

  Returns:
    an instance of SSLAdapter
  See Also:
    `SSLAdapterFactory.getDefaultAdapter()`, `SSLAdapterFactory.setDefaultAdapter(SSLAdapter adapter)`, `SSLAdapterFactory.setUseDefaultAdapter(boolean useDefault)`

### createSSLAdapter

    public SSLAdapter createSSLAdapter()

  Deprecated.
  Returns a new instance of the SSLAdapter class, regardless of whether `useDefaultAdapter` has been set `true`. This method must always return an SSLAdapter or throw an exception.

  See Also:
    `SSLAdapterFactory.getSSLAdapter()`, `SSLAdapterFactory.setUseDefaultAdapter(boolean useDefault)`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Documentation is available at http://e-docs.bea.com/wls/docs92 Copyright 2006 BEA Systems Inc.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD