2 // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
4 #ifndef __javax_net_ssl_SSLEngine__
5 #define __javax_net_ssl_SSLEngine__
9 #include <java/lang/Object.h>
10 #include <gcj/array.h>
28 class SSLEngineResult
;
29 class SSLEngineResult$HandshakeStatus
;
36 class javax::net::ssl::SSLEngine
: public ::java::lang::Object
39 public: // actually protected
41 SSLEngine(::java::lang::String
*, jint
);
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;
74 ::java::lang::String
* __attribute__((aligned(__alignof__( ::java::lang::Object
)))) peerHost
;
77 static ::java::lang::Class
class$
;
80 #endif // __javax_net_ssl_SSLEngine__