HTTPClient
Class OracleSSL
java.lang.Object
|
+--HTTPClient.OracleSSL
- All Implemented Interfaces:
- HTTPClientSSL
- class OracleSSL
- extends java.lang.Object
- implements HTTPClientSSL
(package private) |
OracleSSL(javax.net.ssl.SSLSocketFactory factory)
|
| Type | Method |
(package private) static void |
()
|
(package private) oracle.security.ssl.OracleSSLCredential |
getCredential()
|
java.lang.String[] |
getSSLEnabledCipherSuites()
Returns the list of cipher suites that are enabled for the https
connection |
javax.net.ssl.SSLSession |
getSSLSession()
Returns the ssl session information for the ssl connection or
null if no ssl connection has been established |
(package private) java.net.Socket |
getSSLSocket(java.net.Socket proxy)
Obtains an new SSL Socket to be used for HTTPS connections
If setSSLCredentials() or setSSLCipherSuites() were not called
prior to this call, the property settings are checked |
java.net.Socket |
getSSLSocket(java.net.Socket proxy,
java.lang.String host,
int port)
|
javax.net.ssl.SSLSocketFactory |
getSSLSocketFactory()
Returns the socket factory used to create SSL sockets |
(package private) void |
initHttps(oracle.security.ssl.OracleSSLSocketFactory factory)
|
void |
setSSLCredential(oracle.security.ssl.OracleSSLCredential sslCredential)
Sets the OracleSSLCredential object for use in SSL connections |
void |
setSSLEnabledCipherSuites(java.lang.String[] cipherSuites)
Controls which particular cipher suites are enabled for use on this
connection. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_assumeOracleSSL
protected boolean m_assumeOracleSSL
OracleSSL
OracleSSL(javax.net.ssl.SSLSocketFactory factory)
static void ()
getCredential
oracle.security.ssl.OracleSSLCredential getCredential()
initHttps
void initHttps(oracle.security.ssl.OracleSSLSocketFactory factory)
getSSLEnabledCipherSuites
public java.lang.String[] getSSLEnabledCipherSuites()
- Returns the list of cipher suites that are enabled for the https
connection
- Specified by:
getSSLEnabledCipherSuites in interface HTTPClientSSL
getSSLSession
public javax.net.ssl.SSLSession getSSLSession()
- Returns the ssl session information for the ssl connection or
null if no ssl connection has been established
- Specified by:
getSSLSession in interface HTTPClientSSL
- See Also:
connect
getSSLSocketFactory
public javax.net.ssl.SSLSocketFactory getSSLSocketFactory()
- Returns the socket factory used to create SSL sockets
- Specified by:
getSSLSocketFactory in interface HTTPClientSSL
getSSLSocket
java.net.Socket getSSLSocket(java.net.Socket proxy)
throws java.io.IOException
- Obtains an new SSL Socket to be used for HTTPS connections
If setSSLCredentials() or setSSLCipherSuites() were not called
prior to this call, the property settings are checked
getSSLSocket
public java.net.Socket getSSLSocket(java.net.Socket proxy,
java.lang.String host,
int port)
throws java.io.IOException
- Specified by:
getSSLSocket in interface HTTPClientSSL
setSSLCredential
public void setSSLCredential(oracle.security.ssl.OracleSSLCredential sslCredential)
- Sets the OracleSSLCredential object for use in SSL connections
- Parameters:
sslCredential - the credential object that will be used for
the connection.
setSSLEnabledCipherSuites
public void setSSLEnabledCipherSuites(java.lang.String[] cipherSuites)
throws java.lang.IllegalArgumentException
- Controls which particular cipher suites are enabled for use on this
connection. The cipher suites must have been listed by
getSupportedCipherSuites() as being supported. Even if a suite has
been enabled, it might never be used if no peer supports it, or
the requisite certificates (and private keys) are not available.
- Parameters:
suites - Names of all the cipher suites to enable.- Throws:
java.lang.IllegalArgumentException - when one of the ciphers named by
the parameter is not supported.- See Also:
getEnabledCipherSuites