1 |
756 |
jeremybenn |
|
2 |
|
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
3 |
|
|
|
4 |
|
|
#ifndef __gnu_javax_net_ssl_provider_SSLSocketImpl__
|
5 |
|
|
#define __gnu_javax_net_ssl_provider_SSLSocketImpl__
|
6 |
|
|
|
7 |
|
|
#pragma interface
|
8 |
|
|
|
9 |
|
|
#include <javax/net/ssl/SSLSocket.h>
|
10 |
|
|
#include <gcj/array.h>
|
11 |
|
|
|
12 |
|
|
extern "Java"
|
13 |
|
|
{
|
14 |
|
|
namespace gnu
|
15 |
|
|
{
|
16 |
|
|
namespace classpath
|
17 |
|
|
{
|
18 |
|
|
namespace debug
|
19 |
|
|
{
|
20 |
|
|
class SystemLogger;
|
21 |
|
|
}
|
22 |
|
|
}
|
23 |
|
|
namespace javax
|
24 |
|
|
{
|
25 |
|
|
namespace net
|
26 |
|
|
{
|
27 |
|
|
namespace ssl
|
28 |
|
|
{
|
29 |
|
|
namespace provider
|
30 |
|
|
{
|
31 |
|
|
class SSLContextImpl;
|
32 |
|
|
class SSLEngineImpl;
|
33 |
|
|
class SSLSocketImpl;
|
34 |
|
|
}
|
35 |
|
|
}
|
36 |
|
|
}
|
37 |
|
|
}
|
38 |
|
|
}
|
39 |
|
|
namespace java
|
40 |
|
|
{
|
41 |
|
|
namespace net
|
42 |
|
|
{
|
43 |
|
|
class InetAddress;
|
44 |
|
|
class Socket;
|
45 |
|
|
class SocketAddress;
|
46 |
|
|
}
|
47 |
|
|
namespace nio
|
48 |
|
|
{
|
49 |
|
|
namespace channels
|
50 |
|
|
{
|
51 |
|
|
class SocketChannel;
|
52 |
|
|
}
|
53 |
|
|
}
|
54 |
|
|
}
|
55 |
|
|
namespace javax
|
56 |
|
|
{
|
57 |
|
|
namespace net
|
58 |
|
|
{
|
59 |
|
|
namespace ssl
|
60 |
|
|
{
|
61 |
|
|
class HandshakeCompletedListener;
|
62 |
|
|
class SSLSession;
|
63 |
|
|
}
|
64 |
|
|
}
|
65 |
|
|
}
|
66 |
|
|
}
|
67 |
|
|
|
68 |
|
|
class gnu::javax::net::ssl::provider::SSLSocketImpl : public ::javax::net::ssl::SSLSocket
|
69 |
|
|
{
|
70 |
|
|
|
71 |
|
|
public:
|
72 |
|
|
SSLSocketImpl(::gnu::javax::net::ssl::provider::SSLContextImpl *, ::java::lang::String *, jint);
|
73 |
|
|
SSLSocketImpl(::gnu::javax::net::ssl::provider::SSLContextImpl *, ::java::lang::String *, jint, ::java::net::Socket *, jboolean);
|
74 |
|
|
virtual void addHandshakeCompletedListener(::javax::net::ssl::HandshakeCompletedListener *);
|
75 |
|
|
virtual jboolean getEnableSessionCreation();
|
76 |
|
|
virtual JArray< ::java::lang::String * > * getEnabledCipherSuites();
|
77 |
|
|
virtual JArray< ::java::lang::String * > * getEnabledProtocols();
|
78 |
|
|
virtual jboolean getNeedClientAuth();
|
79 |
|
|
virtual ::javax::net::ssl::SSLSession * getSession();
|
80 |
|
|
virtual JArray< ::java::lang::String * > * getSupportedCipherSuites();
|
81 |
|
|
virtual JArray< ::java::lang::String * > * getSupportedProtocols();
|
82 |
|
|
virtual jboolean getUseClientMode();
|
83 |
|
|
virtual jboolean getWantClientAuth();
|
84 |
|
|
virtual void removeHandshakeCompletedListener(::javax::net::ssl::HandshakeCompletedListener *);
|
85 |
|
|
virtual void setEnableSessionCreation(jboolean);
|
86 |
|
|
virtual void setEnabledCipherSuites(JArray< ::java::lang::String * > *);
|
87 |
|
|
virtual void setEnabledProtocols(JArray< ::java::lang::String * > *);
|
88 |
|
|
virtual void setNeedClientAuth(jboolean);
|
89 |
|
|
virtual void setUseClientMode(jboolean);
|
90 |
|
|
virtual void setWantClientAuth(jboolean);
|
91 |
|
|
virtual void startHandshake();
|
92 |
|
|
public: // actually package-private
|
93 |
|
|
virtual void doHandshake();
|
94 |
|
|
public:
|
95 |
|
|
virtual void bind(::java::net::SocketAddress *);
|
96 |
|
|
virtual void connect(::java::net::SocketAddress *);
|
97 |
|
|
virtual void connect(::java::net::SocketAddress *, jint);
|
98 |
|
|
virtual ::java::net::InetAddress * getInetAddress();
|
99 |
|
|
virtual ::java::net::InetAddress * getLocalAddress();
|
100 |
|
|
virtual jint getPort();
|
101 |
|
|
virtual jint getLocalPort();
|
102 |
|
|
virtual ::java::net::SocketAddress * getRemoteSocketAddress();
|
103 |
|
|
virtual ::java::net::SocketAddress * getLocalSocketAddress();
|
104 |
|
|
virtual ::java::nio::channels::SocketChannel * getChannel();
|
105 |
|
|
virtual ::java::io::InputStream * getInputStream();
|
106 |
|
|
virtual ::java::io::OutputStream * getOutputStream();
|
107 |
|
|
virtual void setTcpNoDelay(jboolean);
|
108 |
|
|
virtual jboolean getTcpNoDelay();
|
109 |
|
|
virtual void setSoLinger(jboolean, jint);
|
110 |
|
|
virtual jint getSoLinger();
|
111 |
|
|
virtual void sendUrgentData(jint);
|
112 |
|
|
virtual void setOOBInline(jboolean);
|
113 |
|
|
virtual jboolean getOOBInline();
|
114 |
|
|
virtual void setSoTimeout(jint);
|
115 |
|
|
virtual jint getSoTimeout();
|
116 |
|
|
virtual void setSendBufferSize(jint);
|
117 |
|
|
virtual jint getSendBufferSize();
|
118 |
|
|
virtual void setReceiveBufferSize(jint);
|
119 |
|
|
virtual jint getReceiveBufferSize();
|
120 |
|
|
virtual void setKeepAlive(jboolean);
|
121 |
|
|
virtual jboolean getKeepAlive();
|
122 |
|
|
virtual void setTrafficClass(jint);
|
123 |
|
|
virtual jint getTrafficClass();
|
124 |
|
|
virtual void setReuseAddress(jboolean);
|
125 |
|
|
virtual jboolean getReuseAddress();
|
126 |
|
|
virtual void close();
|
127 |
|
|
virtual void shutdownInput();
|
128 |
|
|
virtual void shutdownOutput();
|
129 |
|
|
virtual jboolean isConnected();
|
130 |
|
|
virtual jboolean isBound();
|
131 |
|
|
virtual jboolean isClosed();
|
132 |
|
|
virtual jboolean isInputShutdown();
|
133 |
|
|
virtual jboolean isOutputShutdown();
|
134 |
|
|
public: // actually package-private
|
135 |
|
|
static ::java::net::Socket * access$0(::gnu::javax::net::ssl::provider::SSLSocketImpl *);
|
136 |
|
|
static ::java::io::OutputStream * access$1(::gnu::javax::net::ssl::provider::SSLSocketImpl *);
|
137 |
|
|
static jboolean access$2(::gnu::javax::net::ssl::provider::SSLSocketImpl *);
|
138 |
|
|
static ::gnu::javax::net::ssl::provider::SSLEngineImpl * access$3(::gnu::javax::net::ssl::provider::SSLSocketImpl *);
|
139 |
|
|
static ::java::io::IOException * access$4(::gnu::javax::net::ssl::provider::SSLSocketImpl *);
|
140 |
|
|
static ::java::io::InputStream * access$5(::gnu::javax::net::ssl::provider::SSLSocketImpl *);
|
141 |
|
|
static void access$6(::gnu::javax::net::ssl::provider::SSLSocketImpl *, ::java::io::IOException *);
|
142 |
|
|
static JArray< jint > * $SWITCH_TABLE$javax$net$ssl$SSLEngineResult$HandshakeStatus();
|
143 |
|
|
private:
|
144 |
|
|
static ::gnu::classpath::debug::SystemLogger * logger;
|
145 |
|
|
::gnu::javax::net::ssl::provider::SSLEngineImpl * __attribute__((aligned(__alignof__( ::javax::net::ssl::SSLSocket)))) engine;
|
146 |
|
|
::java::util::Set * listeners;
|
147 |
|
|
::java::net::Socket * underlyingSocket;
|
148 |
|
|
jboolean isHandshaking;
|
149 |
|
|
::java::io::IOException * handshakeException;
|
150 |
|
|
jboolean initialHandshakeDone;
|
151 |
|
|
jboolean autoClose;
|
152 |
|
|
public: // actually package-private
|
153 |
|
|
static jboolean $assertionsDisabled;
|
154 |
|
|
private:
|
155 |
|
|
static JArray< jint > * $SWITCH_TABLE$javax$net$ssl$SSLEngineResult$HandshakeStatus__;
|
156 |
|
|
public:
|
157 |
|
|
static ::java::lang::Class class$;
|
158 |
|
|
};
|
159 |
|
|
|
160 |
|
|
#endif // __gnu_javax_net_ssl_provider_SSLSocketImpl__
|