|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weblogic.webservice.client.JSSEAdapter
JSSEAdapter for WLS Webservices support of the JSSE bundled with JDK 1.4
Field Summary | |
static java.lang.String |
ENFORCE_CONSTRAINTS
|
static java.lang.String |
STRICT_CHECKING_DEFAULT
|
protected boolean |
strictCertChecking
|
static java.lang.String |
TRUSTED_CERTS
|
protected static java.lang.String |
trustedCertFile
|
protected static boolean |
verbose
|
static java.lang.String |
VERBOSE_PROPERTY
|
Constructor Summary | |
JSSEAdapter()
Returns an instance of the this class. |
|
JSSEAdapter(boolean strict)
|
Method Summary | |
java.net.Socket |
createProxySocket(java.lang.String host,
int port)
Deprecated. |
java.net.Socket |
createSocket(java.lang.String host,
int port)
Returns a socket connected to a ServerSocket on the named host, at the given port. |
void |
disableProxy()
|
void |
enableProxy(java.lang.String host,
java.lang.String port)
|
protected boolean |
getStrictCheckingDefault()
|
void |
loadLocalIdentity(java.io.InputStream stream,
char[] password)
Creates an instance of the SunJSSE provider's default key manager factory, which provides basic X.509-based authentication keys. |
java.net.URLConnection |
openConnection(java.net.URL url)
Opens connection to URL |
void |
setHostnameVerifier(javax.net.ssl.HostnameVerifier verifier)
Sets hostname verifier. |
void |
setProxy(java.lang.String host,
int port)
Deprecated. |
void |
setProxyAuth(java.lang.String user,
java.lang.String password)
Deprecated. |
void |
setStrictChecking(boolean strict)
Disable strict certificate checking. |
static void |
setStrictCheckingDefault(boolean strict)
Determines the default setting for Strict Certificate checking of subsequent instances of this adapter class. |
void |
setTrustManager(javax.net.ssl.TrustManager manager)
Sets the trust policy for all sockets generated by factories of this adapter. |
void |
setVerbose(boolean verbose)
This method is used to enable or disabled verbose debugging output. |
java.lang.String |
toString()
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 java.lang.String STRICT_CHECKING_DEFAULT
public static final java.lang.String VERBOSE_PROPERTY
public static final java.lang.String TRUSTED_CERTS
public static final java.lang.String ENFORCE_CONSTRAINTS
protected static boolean verbose
protected boolean strictCertChecking
protected static java.lang.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(java.lang.String host, java.lang.String port)
public void disableProxy()
public java.net.Socket createSocket(java.lang.String host, int port) throws java.io.IOException
host
- the server hostport
- the server portpublic java.net.Socket createProxySocket(java.lang.String host, int port) throws java.io.IOException
public java.net.URLConnection openConnection(java.net.URL url) throws java.io.IOException
url
- URL we will be connecting topublic 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(javax.net.ssl.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(javax.net.ssl.TrustManager manager)
manager
- the trust policy.TrustManager
public final void loadLocalIdentity(java.io.InputStream stream, char[] password) throws java.lang.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.public void setProxy(java.lang.String host, int port)
public void setProxyAuth(java.lang.String user, java.lang.String password)
public java.lang.String toString()
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs81 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |