|
Java API Reference for Oracle Infrastructure Web Services 11 Release 1 (11.1.1) E10654-02 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
oracle.webservices.ConnectionConfigBean
public class ConnectionConfigBean
This class contains all of the properties that can be set when creating a remote connection for transports including http and https.
| Constructor Summary | |
|---|---|
ConnectionConfigBean() |
|
| Method Summary | |
|---|---|
HTTPClient.AuthorizationPrompter |
getAuthorizationPrompter()The authorization prompter used for HTTP authentication. |
List<String> |
getDontProxyForList()Returns the list of host patterns that should not use a proxy. |
InetSocketAddress |
getProxyAddress()The proxy server address. |
SocketFactory |
getSocketFactory()The SocketFactory to use for unsecure connections. |
SSLSocketFactory |
getSSLSocketFactory()The SSLSocketFactory to use for secure connections |
Integer |
getTimeout()Timeout in miliseconds for connections and reads |
void |
setAuthorizationPrompter(HTTPClient.AuthorizationPrompter prompter)The authorization prompter used for HTTP authentication. |
void |
setDontProxyForList(List<String> hostPatterns)Sets the list of hosts that should not use a the proxy specified by the setProxyAddress method. |
void |
setKeyStore(File keyStoreFile, String keyStoreType, String keyStorePassword, String keyPassword)Sets the keystore information for secure connections |
void |
setKeyStore(KeyStore keyStore, String keyPassword)The keystore to use for secure connections |
void |
setProxyAddress(InetSocketAddress address)The proxy server address |
void |
setSocketFactory(SocketFactory factory)The SocketFactory to use for unsecure connections |
void |
setSSLSocketFactory(SSLSocketFactory factory)The SSLSocketFactory to use for secure connections |
void |
setTimeout(Integer milliseconds)The timeout value for connections and reads. |
void |
setTrustManager(TrustManager trustMgr) |
void |
setTrustManagers(TrustManager[] trustMgrs) |
void |
setTrustStore(File trustStoreFile, String trustStoreType, String trustStorePassword)The trust store for secure connections |
void |
setTrustStore(KeyStore trustStore)The trust store for secure connections. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConnectionConfigBean()
| Method Detail |
|---|
public void setTimeout(Integer milliseconds)
setTimeout in interface ConnectionConfigmilliseconds - The timeout value for connections and reads.public Integer getTimeout()
getTimeout in interface ConnectionConfigpublic void setProxyAddress(InetSocketAddress address)
setProxyAddress in interface ConnectionConfigaddress - The proxy server address.public InetSocketAddress getProxyAddress()
getProxyAddress in interface ConnectionConfigpublic void setAuthorizationPrompter(HTTPClient.AuthorizationPrompter prompter)
setAuthorizationPrompter in interface ConnectionConfigprompter - The authorization prompter used for HTTP authentication.public HTTPClient.AuthorizationPrompter getAuthorizationPrompter()
getAuthorizationPrompter in interface ConnectionConfigpublic void setSocketFactory(SocketFactory factory)
setSocketFactory in interface ConnectionConfigfactory - SocketFactory to use for unsecure connectionspublic SocketFactory getSocketFactory()
getSocketFactory in interface ConnectionConfigpublic void setSSLSocketFactory(SSLSocketFactory factory)
setSSLSocketFactory in interface ConnectionConfigfactory - The SSLSocketFactory to use for secure connections
public SSLSocketFactory getSSLSocketFactory()
throws GeneralSecurityException
getSSLSocketFactory in interface ConnectionConfigGeneralSecurityException - if there is a problem getting the factory.
public void setKeyStore(KeyStore keyStore,
String keyPassword)
throws GeneralSecurityException
setKeyStore in interface ConnectionConfigkeyStore - The keystore to use for secure connectionskeyPassword - The keystore password to use for secure connectionsGeneralSecurityException - if there is a setting the key store.
public void setKeyStore(File keyStoreFile,
String keyStoreType,
String keyStorePassword,
String keyPassword)
throws GeneralSecurityException,
IOException
setKeyStore in interface ConnectionConfigkeyStoreFile - The keystore filekeyStoreType - The type of keystorekeyStorePassword - The keystore passwordkeyPassword - The key passwordGeneralSecurityException - if there is a problems setting the keystoreIOException - If there is a problem reading the keystore file.
public void setTrustStore(KeyStore trustStore)
throws GeneralSecurityException
setTrustStore in interface ConnectionConfigtrustStore - The trust store for secure connectionsGeneralSecurityException - if there is a problem setting the trust store.
public void setTrustStore(File trustStoreFile,
String trustStoreType,
String trustStorePassword)
throws GeneralSecurityException,
IOException
setTrustStore in interface ConnectionConfigtrustStoreFile - The trust store file.trustStoreType - The trust store type.trustStorePassword - The trust store password.GeneralSecurityException - If there is a problem setting the trust store.IOException - If there is a problem accessing the trust store file.public void setDontProxyForList(List<String> hostPatterns)
ConnectionConfigA pattern matches if either:
setDontProxyForList in interface ConnectionConfighostPatterns - List of host patternspublic List<String> getDontProxyForList()
ConnectionConfiggetDontProxyForList in interface ConnectionConfigpublic void setTrustManagers(TrustManager[] trustMgrs)
setTrustManagers in interface ConnectionConfigpublic void setTrustManager(TrustManager trustMgr)
setTrustManager in interface ConnectionConfig
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||