Mercurial > 510Connectbot
diff src/org/tn5250j/framework/transport/SSLInterface.java @ 3:e8d2a24e85c6 tn5250
adding tn5250 files
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Thu, 22 May 2014 12:11:10 -0700 |
parents | |
children | e5259eab903e |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/org/tn5250j/framework/transport/SSLInterface.java Thu May 22 12:11:10 2014 -0700 @@ -0,0 +1,44 @@ +package org.tn5250j.framework.transport; + +/* + * @(#)SSLInterface.java + * + * Copyright: Copyright (c) 2001 + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA + * + */ +import java.net.Socket; + +public interface SSLInterface { + + /** + * Initialize the components required to create a new client socket + * when createSSLSocket is called. + * @param type The ssl socket type (SSLv2, SSLv3, TLS) + * @see org.tn5250j.framework.transport.SSLConstants + */ + public abstract void init(String sslType); + + /** + * Create a new socket + * @param destination + * @param port + * @return new socket, or null if none could be created. + */ + public abstract Socket createSSLSocket(String destination, int port); + +} \ No newline at end of file