summaryrefslogtreecommitdiff
path: root/libjava/javax/net/ssl/SSLEngine.h
blob: 7bbe1b9c5a954f52c595b2f0ee9dde8418ae1453 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __javax_net_ssl_SSLEngine__
#define __javax_net_ssl_SSLEngine__

#pragma interface

#include <java/lang/Object.h>
#include <gcj/array.h>

extern "Java"
{
  namespace java
  {
    namespace nio
    {
        class ByteBuffer;
    }
  }
  namespace javax
  {
    namespace net
    {
      namespace ssl
      {
          class SSLEngine;
          class SSLEngineResult;
          class SSLEngineResult$HandshakeStatus;
          class SSLSession;
      }
    }
  }
}

class javax::net::ssl::SSLEngine : public ::java::lang::Object
{

public: // actually protected
  SSLEngine();
  SSLEngine(::java::lang::String *, jint);
public:
  virtual void beginHandshake() = 0;
  virtual void closeInbound() = 0;
  virtual void closeOutbound() = 0;
  virtual ::java::lang::Runnable * getDelegatedTask() = 0;
  virtual ::java::lang::String * getPeerHost();
  virtual jint getPeerPort();
  virtual JArray< ::java::lang::String * > * getEnabledCipherSuites() = 0;
  virtual JArray< ::java::lang::String * > * getEnabledProtocols() = 0;
  virtual jboolean getEnableSessionCreation() = 0;
  virtual ::javax::net::ssl::SSLEngineResult$HandshakeStatus * getHandshakeStatus() = 0;
  virtual jboolean getNeedClientAuth() = 0;
  virtual ::javax::net::ssl::SSLSession * getSession() = 0;
  virtual JArray< ::java::lang::String * > * getSupportedCipherSuites() = 0;
  virtual JArray< ::java::lang::String * > * getSupportedProtocols() = 0;
  virtual jboolean getUseClientMode() = 0;
  virtual jboolean getWantClientAuth() = 0;
  virtual jboolean isInboundDone() = 0;
  virtual jboolean isOutboundDone() = 0;
  virtual void setEnabledCipherSuites(JArray< ::java::lang::String * > *) = 0;
  virtual void setEnabledProtocols(JArray< ::java::lang::String * > *) = 0;
  virtual void setEnableSessionCreation(jboolean) = 0;
  virtual void setUseClientMode(jboolean) = 0;
  virtual void setNeedClientAuth(jboolean) = 0;
  virtual void setWantClientAuth(jboolean) = 0;
  virtual ::javax::net::ssl::SSLEngineResult * unwrap(::java::nio::ByteBuffer *, ::java::nio::ByteBuffer *);
  virtual ::javax::net::ssl::SSLEngineResult * unwrap(::java::nio::ByteBuffer *, JArray< ::java::nio::ByteBuffer * > *);
  virtual ::javax::net::ssl::SSLEngineResult * unwrap(::java::nio::ByteBuffer *, JArray< ::java::nio::ByteBuffer * > *, jint, jint) = 0;
  virtual ::javax::net::ssl::SSLEngineResult * wrap(::java::nio::ByteBuffer *, ::java::nio::ByteBuffer *);
  virtual ::javax::net::ssl::SSLEngineResult * wrap(JArray< ::java::nio::ByteBuffer * > *, ::java::nio::ByteBuffer *);
  virtual ::javax::net::ssl::SSLEngineResult * wrap(JArray< ::java::nio::ByteBuffer * > *, jint, jint, ::java::nio::ByteBuffer *) = 0;
private:
  ::java::lang::String * __attribute__((aligned(__alignof__( ::java::lang::Object)))) peerHost;
  jint peerPort;
public:
  static ::java::lang::Class class$;
};

#endif // __javax_net_ssl_SSLEngine__