1 |
756 |
jeremybenn |
|
2 |
|
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
3 |
|
|
|
4 |
|
|
#ifndef __gnu_javax_net_ssl_provider_SSLEngineImpl__
|
5 |
|
|
#define __gnu_javax_net_ssl_provider_SSLEngineImpl__
|
6 |
|
|
|
7 |
|
|
#pragma interface
|
8 |
|
|
|
9 |
|
|
#include <javax/net/ssl/SSLEngine.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 |
|
|
class SSLRecordHandler;
|
30 |
|
|
namespace provider
|
31 |
|
|
{
|
32 |
|
|
class AbstractHandshake;
|
33 |
|
|
class Alert;
|
34 |
|
|
class InputSecurityParameters;
|
35 |
|
|
class OutputSecurityParameters;
|
36 |
|
|
class SSLContextImpl;
|
37 |
|
|
class SSLEngineImpl;
|
38 |
|
|
class SSLEngineImpl$Mode;
|
39 |
|
|
class SessionImpl;
|
40 |
|
|
}
|
41 |
|
|
}
|
42 |
|
|
}
|
43 |
|
|
}
|
44 |
|
|
}
|
45 |
|
|
namespace java
|
46 |
|
|
{
|
47 |
|
|
namespace nio
|
48 |
|
|
{
|
49 |
|
|
class ByteBuffer;
|
50 |
|
|
}
|
51 |
|
|
}
|
52 |
|
|
namespace javax
|
53 |
|
|
{
|
54 |
|
|
namespace net
|
55 |
|
|
{
|
56 |
|
|
namespace ssl
|
57 |
|
|
{
|
58 |
|
|
class SSLEngineResult;
|
59 |
|
|
class SSLEngineResult$HandshakeStatus;
|
60 |
|
|
class SSLSession;
|
61 |
|
|
}
|
62 |
|
|
}
|
63 |
|
|
}
|
64 |
|
|
}
|
65 |
|
|
|
66 |
|
|
class gnu::javax::net::ssl::provider::SSLEngineImpl : public ::javax::net::ssl::SSLEngine
|
67 |
|
|
{
|
68 |
|
|
|
69 |
|
|
public: // actually package-private
|
70 |
|
|
SSLEngineImpl(::gnu::javax::net::ssl::provider::SSLContextImpl *, ::java::lang::String *, jint);
|
71 |
|
|
static JArray< ::java::lang::String * > * defaultSuites();
|
72 |
|
|
public:
|
73 |
|
|
void beginHandshake();
|
74 |
|
|
void closeInbound();
|
75 |
|
|
void closeOutbound();
|
76 |
|
|
::java::lang::Runnable * getDelegatedTask();
|
77 |
|
|
JArray< ::java::lang::String * > * getEnabledCipherSuites();
|
78 |
|
|
JArray< ::java::lang::String * > * getEnabledProtocols();
|
79 |
|
|
jboolean getEnableSessionCreation();
|
80 |
|
|
::javax::net::ssl::SSLEngineResult$HandshakeStatus * getHandshakeStatus();
|
81 |
|
|
jboolean getNeedClientAuth();
|
82 |
|
|
::javax::net::ssl::SSLSession * getSession();
|
83 |
|
|
jboolean getUseClientMode();
|
84 |
|
|
jboolean getWantClientAuth();
|
85 |
|
|
jboolean isInboundDone();
|
86 |
|
|
jboolean isOutboundDone();
|
87 |
|
|
void setEnableSessionCreation(jboolean);
|
88 |
|
|
void setEnabledCipherSuites(JArray< ::java::lang::String * > *);
|
89 |
|
|
void setEnabledProtocols(JArray< ::java::lang::String * > *);
|
90 |
|
|
JArray< ::java::lang::String * > * getSupportedCipherSuites();
|
91 |
|
|
JArray< ::java::lang::String * > * getSupportedProtocols();
|
92 |
|
|
void setNeedClientAuth(jboolean);
|
93 |
|
|
void setUseClientMode(jboolean);
|
94 |
|
|
void setWantClientAuth(jboolean);
|
95 |
|
|
::javax::net::ssl::SSLEngineResult * unwrap(::java::nio::ByteBuffer *, JArray< ::java::nio::ByteBuffer * > *, jint, jint);
|
96 |
|
|
::javax::net::ssl::SSLEngineResult * wrap(JArray< ::java::nio::ByteBuffer * > *, jint, jint, ::java::nio::ByteBuffer *);
|
97 |
|
|
public: // actually package-private
|
98 |
|
|
::gnu::javax::net::ssl::provider::SessionImpl * session();
|
99 |
|
|
void setSession(::gnu::javax::net::ssl::provider::SessionImpl *);
|
100 |
|
|
void changeCipherSpec();
|
101 |
|
|
static JArray< jint > * $SWITCH_TABLE$gnu$javax$net$ssl$provider$SSLEngineImpl$Mode();
|
102 |
|
|
::gnu::javax::net::ssl::provider::SSLContextImpl * __attribute__((aligned(__alignof__( ::javax::net::ssl::SSLEngine)))) contextImpl;
|
103 |
|
|
private:
|
104 |
|
|
JArray< ::gnu::javax::net::ssl::SSLRecordHandler * > * handlers;
|
105 |
|
|
static ::gnu::classpath::debug::SystemLogger * logger;
|
106 |
|
|
::gnu::javax::net::ssl::provider::SessionImpl * session__;
|
107 |
|
|
::gnu::javax::net::ssl::provider::InputSecurityParameters * insec;
|
108 |
|
|
::gnu::javax::net::ssl::provider::OutputSecurityParameters * outsec;
|
109 |
|
|
jboolean inClosed;
|
110 |
|
|
jboolean outClosed;
|
111 |
|
|
jboolean createSessions;
|
112 |
|
|
jboolean needClientAuth;
|
113 |
|
|
jboolean wantClientAuth;
|
114 |
|
|
jboolean initialHandshakeDone;
|
115 |
|
|
::gnu::javax::net::ssl::provider::AbstractHandshake * handshake;
|
116 |
|
|
::gnu::javax::net::ssl::provider::Alert * lastAlert;
|
117 |
|
|
::javax::net::ssl::SSLEngineResult$HandshakeStatus * handshakeStatus;
|
118 |
|
|
jboolean changeCipherSpec__;
|
119 |
|
|
JArray< ::java::lang::String * > * enabledSuites;
|
120 |
|
|
JArray< ::java::lang::String * > * enabledProtocols;
|
121 |
|
|
::java::nio::ByteBuffer * alertBuffer;
|
122 |
|
|
::gnu::javax::net::ssl::provider::SSLEngineImpl$Mode * mode;
|
123 |
|
|
static JArray< jint > * $SWITCH_TABLE$gnu$javax$net$ssl$provider$SSLEngineImpl$Mode__;
|
124 |
|
|
public:
|
125 |
|
|
static ::java::lang::Class class$;
|
126 |
|
|
};
|
127 |
|
|
|
128 |
|
|
#endif // __gnu_javax_net_ssl_provider_SSLEngineImpl__
|