|
Oracle Fusion Middleware Oracle WebLogic Server 10.3.1 API Reference 11g Release 1 (10.3.1) Part Number E13941-02 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweblogic.security.SSL.SSLContext
public final class SSLContext
SSLContext holds all of the state information shared across all sockets created under that context.
Constructor Summary | |
---|---|
SSLContext()
|
|
SSLContext(String secureProtocol)
|
Method Summary | |
---|---|
static SSLContext |
getInstance(String secureProtocol)
Generates a new SSLContext object that implements the specified secure socket protocol. |
String |
getProtocol()
|
String |
getProvider()
|
SSLSocketFactory |
getSocketFactory()
Returns an SSLSocketFactory object for this context. |
SSLSocketFactory |
getSocketFactoryJSSE()
Deprecated. WLS 9.0 (04/2003) Replaced by getSocketFactory() |
void |
loadLocalIdentity(Certificate[] certs,
PrivateKey privateKey)
Load local identity certificate chain and key for client. |
void |
loadLocalIdentity(InputStream[] streams)
Sets an RSA private key and chain of X.509 certificates for SSL client authentication. |
void |
loadLocalIdentity(InputStream[] streams,
String password)
Sets an RSA private key and chain of X.509 certificates for SSL client authentication. |
void |
setHostnameVerifier(HostnameVerifier hv)
Sets the HostnameVerifier for this instance of this class. |
void |
setHostnameVerifierJSSE(HostnameVerifierJSSE hv)
Deprecated. WLS 9.0 (04/2003) Replaced by setHostnameVerifier(HostnameVerifier) |
void |
setTrustManager(TrustManager tm)
Sets the TrustManager for this instance of this class. |
void |
setTrustManagerJSSE(TrustManagerJSSE tm)
Deprecated. WLS 9.0 (04/2003) Replaced by setTrustManager(TrustManager) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SSLContext(String secureProtocol)
public SSLContext()
Method Detail |
---|
public static SSLContext getInstance(String secureProtocol)
secureProtocol
- The handshake protocol name.public void setTrustManager(TrustManager tm)
public void setHostnameVerifier(HostnameVerifier hv)
public void setTrustManagerJSSE(TrustManagerJSSE tm)
public void setHostnameVerifierJSSE(HostnameVerifierJSSE hv)
public void loadLocalIdentity(InputStream[] streams)
The InputStreams you use must support mark and reset. If you have PEM-encoded data, you can wrap your InputStreams in PEMInputStream classes before passing them in here.
streams
- Array of InputStreams of DER encoded valuesPEMInputStream
,
BufferedInputStream
public void loadLocalIdentity(InputStream[] streams, String password)
The InputStreams you use must support mark and reset. If you have PEM-encoded data, you can wrap your InputStreams in PEMInputStream classes before passing them in here.
streams
- Array of InputStreams of DER encoded valuespassword
- Password for private keyPEMInputStream
,
BufferedInputStream
public void loadLocalIdentity(Certificate[] certs, PrivateKey privateKey)
certs
- Array of certificates. All but the first of
the certificates are issuer certificates for the previous certificate.privateKey
- Private key.public SSLSocketFactory getSocketFactoryJSSE()
public SSLSocketFactory getSocketFactory()
public String getProtocol()
public String getProvider()
|
Documentation is available at http://download.oracle.com/docs/cd/E12839_01/web.1111/wls.htm Copyright 1996, 2009, 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. Oracle Fusion Middleware Oracle WebLogic Server 10.3.1 API Reference 11g Release 1 (10.3.1) Part Number E13941-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |