|
Oracle | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweblogic.webservice.client.JSSEAdapter
public class JSSEAdapter
JSSEAdapter for WLS Webservices support of the JSSE bundled with JDK 1.4
Field Summary | |
---|---|
static String |
ENFORCE_CONSTRAINTS
Deprecated. |
static String |
STRICT_CHECKING_DEFAULT
Deprecated. |
protected boolean |
strictCertChecking
Deprecated. |
static String |
TRUSTED_CERTS
Deprecated. |
protected static String |
trustedCertFile
Deprecated. |
protected static boolean |
verbose
Deprecated. |
static String |
VERBOSE_PROPERTY
Deprecated. |
Constructor Summary | |
---|---|
JSSEAdapter()
Deprecated. Returns an instance of the this class. |
|
JSSEAdapter(boolean strict)
Deprecated. |
Method Summary | |
---|---|
Socket |
createProxySocket(String host,
int port)
Deprecated. |
Socket |
createSocket(String host,
int port)
Deprecated. Returns a socket connected to a ServerSocket on the named host, at the given port. |
void |
disableProxy()
Deprecated. |
void |
enableProxy(String host,
String port)
Deprecated. |
protected boolean |
getStrictCheckingDefault()
Deprecated. |
void |
loadLocalIdentity(InputStream stream,
char[] password)
Deprecated. Creates an instance of the SunJSSE provider's default key manager factory, which provides basic X.509-based authentication keys. |
URLConnection |
openConnection(URL url)
Deprecated. Opens connection to URL |
void |
setHostnameVerifier(HostnameVerifier verifier)
Deprecated. Sets hostname verifier. |
void |
setProxy(String host,
int port)
Deprecated. |
void |
setProxyAuth(String user,
String password)
Deprecated. |
void |
setStrictChecking(boolean strict)
Deprecated. Disable strict certificate checking. |
static void |
setStrictCheckingDefault(boolean strict)
Deprecated. Determines the default setting for Strict Certificate checking of subsequent instances of this adapter class. |
void |
setTrustManager(TrustManager manager)
Deprecated. Sets the trust policy for all sockets generated by factories of this adapter. |
void |
setVerbose(boolean verbose)
Deprecated. This method is used to enable or disabled verbose debugging output. |
String |
toString()
Deprecated. Convience method for display purposes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String STRICT_CHECKING_DEFAULT
public static final String VERBOSE_PROPERTY
public static final String TRUSTED_CERTS
public static final String ENFORCE_CONSTRAINTS
protected static boolean verbose
protected boolean strictCertChecking
protected static String trustedCertFile
Constructor Detail |
---|
public JSSEAdapter()
weblogic.webservice.client.ssl.trustedcertfile
To disable strict certificate checking by default, set the
following system property to false
:
weblogic.webservice.client.ssl.strictcertchecking
To enable the use of proxy by default, set the following system
properties to the appropriate values.
weblogic.webservice.transport.https.proxy.host
weblogic.webservice.transport.https.proxy.port
public JSSEAdapter(boolean strict)
Method Detail |
---|
public void enableProxy(String host, String port)
public void disableProxy()
public Socket createSocket(String host, int port) throws IOException
createSocket
in interface SSLAdapter
host
- the server hostport
- the server port
IOException
- if the connection can't be established
UnknownHostException
- if the host is not knownpublic Socket createProxySocket(String host, int port) throws IOException
IOException
public URLConnection openConnection(URL url) throws IOException
openConnection
in interface SSLAdapter
url
- URL we will be connecting to
IOException
- if error occurs while accessing Socketpublic static void setStrictCheckingDefault(boolean strict)
false
means instances will accept flawed
certificates from the server but warn.
This value can also be set with the following system property:
weblogic.webservice.client.ssl.strictcertchecking
strict
- the default setting for strict certificate checkingprotected final boolean getStrictCheckingDefault()
public final void setStrictChecking(boolean strict)
strict
- whether or not certificate checking is strictly
enforced.public final void setHostnameVerifier(HostnameVerifier verifier)
verifier
- HostnameVerifier object to be set as a hostname verifier.HostnameVerifier
public void setVerbose(boolean verbose)
weblogic.webservice.client.verbose
verbose
- the default setting for strict certificate checkingpublic final void setTrustManager(TrustManager manager)
manager
- the trust policy.TrustManager
public final void loadLocalIdentity(InputStream stream, char[] password) throws Exception
KeyStore
- The input stream containing the KeyStore that will
be queried by KeyManagerFactory for information on
which private key and matching public key certificates
should be used for authenticating to a remote socket peer.password
- The password to the PKCS 8 encrypted private key.
Exception
- if there is a problem reading the keystorepublic void setProxy(String host, int port)
public void setProxyAuth(String user, String password)
public String toString()
toString
in class Object
for details.
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs103 Copyright 1996,2008, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |