|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.net.SocketFactory
com.sap.mdm.net.MdmSecureSocketFactory
Wrapper class combining SUN and SAP secure socket factory implementations
| Field Summary | |
static int |
SSL_TYPE_MUTUAL_AUTHENTICATION
|
static int |
SSL_TYPE_NONE
|
static int |
SSL_TYPE_SERVER_AUTHENTICATION
|
| Method Summary | |
Socket |
createSocket()
|
Socket |
createSocket(InetAddress host,
int port)
|
Socket |
createSocket(InetAddress address,
int port,
InetAddress localAddress,
int localPort)
|
Socket |
createSocket(String host,
int port)
|
Socket |
createSocket(String host,
int port,
InetAddress localHost,
int localPort)
|
boolean |
equals(Object obj)
|
KeyStore |
getKeyStore()
Returns the key store specified by the user. |
static KeyStore |
getKeyStore(String location,
String password)
Reads the key store from the specified file and returns an instance of KeyStore. |
static KeyStore |
getKeyStore(String location,
String password,
String type)
Reads the key store from the specified file of the specified type and returns an instance of KeyStore. |
static MdmSecureSocketFactory |
getSAPImpl(KeyStore serverKeystore)
Creates an instance of MdmSecureSocketFactory based on the SAP implementation of SecureConnectionFactory class |
static MdmSecureSocketFactory |
getSAPImpl(KeyStore serverKeystore,
KeyStore clientKeystore,
String keyPassword)
Creates an instance of MdmSecureSocketFactory based on the SAP implementation of secure socket. |
int |
getSSLAuthenticationType()
Returns a SSL authentication type. |
static MdmSecureSocketFactory |
getSUNImpl(KeyStore serverKeystore)
Creates an instance of MdmSecureSocketFactory based on Sun implementation of SocketFactory interface |
static MdmSecureSocketFactory |
getSUNImpl(KeyStore serverKeystore,
KeyStore clientKeystore,
String keyPassword)
Creates an instance of MdmSecureSocketFactory based on the Sun implementation of secure socket. |
static MdmSecureSocketFactory |
getSUNImpl(String serverKeystoreFile,
String keystorePassword)
Creates an instance of MdmSecureSocketFactory based on Sun implementation of SocketFactory interface |
boolean |
isSAPFactory()
Indicates if the current instance implements SAP socket factory (SecureSocketFactory class) |
| Methods inherited from class javax.net.SocketFactory |
getDefault |
| Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int SSL_TYPE_NONE
public static final int SSL_TYPE_SERVER_AUTHENTICATION
public static final int SSL_TYPE_MUTUAL_AUTHENTICATION
| Method Detail |
public static MdmSecureSocketFactory getSUNImpl(KeyStore serverKeystore)
throws MdmSSLException
serverKeystore - the key store containing the server's public keys
MdmSecureSocketFactory
MdmSSLException
public static MdmSecureSocketFactory getSUNImpl(KeyStore serverKeystore,
KeyStore clientKeystore,
String keyPassword)
throws MdmSSLException
serverKeystore - the key store containing the server's public keysclientKeystore - the key store containing the client's key pair used for client authenticationkeyPassword - the password to the client's key pair
MdmSSLException - if it is not possible to create a socket factory
public static MdmSecureSocketFactory getSUNImpl(String serverKeystoreFile,
String keystorePassword)
throws MdmSSLException
keystorePassword - password to the key store
MdmSecureSocketFactory
MdmSSLExceptionpublic static MdmSecureSocketFactory getSAPImpl(KeyStore serverKeystore)
serverKeystore - the key store containing the server's public keys
MdmSecureSocketFactory
MdmSSLException
public static MdmSecureSocketFactory getSAPImpl(KeyStore serverKeystore,
KeyStore clientKeystore,
String keyPassword)
serverKeystore - the key store containing the server's public keysclientKeystore - the key store containing the client's key pair used for client authenticationkeyPassword - the password to the client's key pair
MdmSSLException - if it is not possible to create a socket factory
public Socket createSocket()
throws IOException
IOException
public Socket createSocket(String host,
int port)
throws IOException,
UnknownHostException
IOException
UnknownHostException
public Socket createSocket(InetAddress host,
int port)
throws IOException
IOException
public Socket createSocket(String host,
int port,
InetAddress localHost,
int localPort)
throws IOException,
UnknownHostException
IOException
UnknownHostException
public Socket createSocket(InetAddress address,
int port,
InetAddress localAddress,
int localPort)
throws IOException
IOExceptionpublic boolean isSAPFactory()
true if this instance represents SAP socket factory, false otherwisepublic KeyStore getKeyStore()
public int getSSLAuthenticationType()
{@link MdmSecureSocketFactory#SSL_TYPE_SERVER_AUTHENTICATION},
{@link MdmSecureSocketFactory#SSL_TYPE_MUTUAL_AUTHENTICATION}public boolean equals(Object obj)
public static KeyStore getKeyStore(String location,
String password)
throws MdmSSLException
location - the location of the key store filepassword - the password for the key store
MdmSSLException - if a problem occurs reading the key store
public static KeyStore getKeyStore(String location,
String password,
String type)
throws MdmSSLException
location - the location of the key store filepassword - the password for the key storetype - the key store type ("JKS" or "PKCS12")
MdmSSLException - if a problem occurs reading the key store
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Copyright 2004-2007 by SAP AG. All Rights Reserved.
SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.
These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies (SAP Group) for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.