1 |
759 |
jeremybenn |
|
2 |
|
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
3 |
|
|
|
4 |
|
|
#ifndef __javax_net_ssl_SSLEngine__
|
5 |
|
|
#define __javax_net_ssl_SSLEngine__
|
6 |
|
|
|
7 |
|
|
#pragma interface
|
8 |
|
|
|
9 |
|
|
#include <java/lang/Object.h>
|
10 |
|
|
#include <gcj/array.h>
|
11 |
|
|
|
12 |
|
|
extern "Java"
|
13 |
|
|
{
|
14 |
|
|
namespace java
|
15 |
|
|
{
|
16 |
|
|
namespace nio
|
17 |
|
|
{
|
18 |
|
|
class ByteBuffer;
|
19 |
|
|
}
|
20 |
|
|
}
|
21 |
|
|
namespace javax
|
22 |
|
|
{
|
23 |
|
|
namespace net
|
24 |
|
|
{
|
25 |
|
|
namespace ssl
|
26 |
|
|
{
|
27 |
|
|
class SSLEngine;
|
28 |
|
|
class SSLEngineResult;
|
29 |
|
|
class SSLEngineResult$HandshakeStatus;
|
30 |
|
|
class SSLSession;
|
31 |
|
|
}
|
32 |
|
|
}
|
33 |
|
|
}
|
34 |
|
|
}
|
35 |
|
|
|
36 |
|
|
class javax::net::ssl::SSLEngine : public ::java::lang::Object
|
37 |
|
|
{
|
38 |
|
|
|
39 |
|
|
public: // actually protected
|
40 |
|
|
SSLEngine();
|
41 |
|
|
SSLEngine(::java::lang::String *, jint);
|
42 |
|
|
public:
|
43 |
|
|
virtual void beginHandshake() = 0;
|
44 |
|
|
virtual void closeInbound() = 0;
|
45 |
|
|
virtual void closeOutbound() = 0;
|
46 |
|
|
virtual ::java::lang::Runnable * getDelegatedTask() = 0;
|
47 |
|
|
virtual ::java::lang::String * getPeerHost();
|
48 |
|
|
virtual jint getPeerPort();
|
49 |
|
|
virtual JArray< ::java::lang::String * > * getEnabledCipherSuites() = 0;
|
50 |
|
|
virtual JArray< ::java::lang::String * > * getEnabledProtocols() = 0;
|
51 |
|
|
virtual jboolean getEnableSessionCreation() = 0;
|
52 |
|
|
virtual ::javax::net::ssl::SSLEngineResult$HandshakeStatus * getHandshakeStatus() = 0;
|
53 |
|
|
virtual jboolean getNeedClientAuth() = 0;
|
54 |
|
|
virtual ::javax::net::ssl::SSLSession * getSession() = 0;
|
55 |
|
|
virtual JArray< ::java::lang::String * > * getSupportedCipherSuites() = 0;
|
56 |
|
|
virtual JArray< ::java::lang::String * > * getSupportedProtocols() = 0;
|
57 |
|
|
virtual jboolean getUseClientMode() = 0;
|
58 |
|
|
virtual jboolean getWantClientAuth() = 0;
|
59 |
|
|
virtual jboolean isInboundDone() = 0;
|
60 |
|
|
virtual jboolean isOutboundDone() = 0;
|
61 |
|
|
virtual void setEnabledCipherSuites(JArray< ::java::lang::String * > *) = 0;
|
62 |
|
|
virtual void setEnabledProtocols(JArray< ::java::lang::String * > *) = 0;
|
63 |
|
|
virtual void setEnableSessionCreation(jboolean) = 0;
|
64 |
|
|
virtual void setUseClientMode(jboolean) = 0;
|
65 |
|
|
virtual void setNeedClientAuth(jboolean) = 0;
|
66 |
|
|
virtual void setWantClientAuth(jboolean) = 0;
|
67 |
|
|
virtual ::javax::net::ssl::SSLEngineResult * unwrap(::java::nio::ByteBuffer *, ::java::nio::ByteBuffer *);
|
68 |
|
|
virtual ::javax::net::ssl::SSLEngineResult * unwrap(::java::nio::ByteBuffer *, JArray< ::java::nio::ByteBuffer * > *);
|
69 |
|
|
virtual ::javax::net::ssl::SSLEngineResult * unwrap(::java::nio::ByteBuffer *, JArray< ::java::nio::ByteBuffer * > *, jint, jint) = 0;
|
70 |
|
|
virtual ::javax::net::ssl::SSLEngineResult * wrap(::java::nio::ByteBuffer *, ::java::nio::ByteBuffer *);
|
71 |
|
|
virtual ::javax::net::ssl::SSLEngineResult * wrap(JArray< ::java::nio::ByteBuffer * > *, ::java::nio::ByteBuffer *);
|
72 |
|
|
virtual ::javax::net::ssl::SSLEngineResult * wrap(JArray< ::java::nio::ByteBuffer * > *, jint, jint, ::java::nio::ByteBuffer *) = 0;
|
73 |
|
|
private:
|
74 |
|
|
::java::lang::String * __attribute__((aligned(__alignof__( ::java::lang::Object)))) peerHost;
|
75 |
|
|
jint peerPort;
|
76 |
|
|
public:
|
77 |
|
|
static ::java::lang::Class class$;
|
78 |
|
|
};
|
79 |
|
|
|
80 |
|
|
#endif // __javax_net_ssl_SSLEngine__
|