summaryrefslogtreecommitdiff
path: root/libjava/gnu/javax/net/ssl/provider/AbstractHandshake.h
blob: c0501a7da46f7c3639fd11597dae85dadbe0c3df (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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __gnu_javax_net_ssl_provider_AbstractHandshake__
#define __gnu_javax_net_ssl_provider_AbstractHandshake__

#pragma interface

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

extern "Java"
{
  namespace gnu
  {
    namespace classpath
    {
      namespace debug
      {
          class SystemLogger;
      }
    }
    namespace javax
    {
      namespace net
      {
        namespace ssl
        {
          namespace provider
          {
              class AbstractHandshake;
              class CompressionMethod;
              class InputSecurityParameters;
              class OutputSecurityParameters;
              class Random;
              class SSLEngineImpl;
              class SessionImpl;
          }
        }
      }
    }
  }
  namespace java
  {
    namespace nio
    {
        class ByteBuffer;
    }
    namespace security
    {
        class MessageDigest;
        class SecureRandom;
    }
  }
  namespace javax
  {
    namespace crypto
    {
        class KeyAgreement;
      namespace interfaces
      {
          class DHPrivateKey;
      }
    }
    namespace net
    {
      namespace ssl
      {
          class SSLEngineResult$HandshakeStatus;
      }
    }
  }
}

class gnu::javax::net::ssl::provider::AbstractHandshake : public ::java::lang::Object
{

public: // actually protected
  AbstractHandshake(::gnu::javax::net::ssl::provider::SSLEngineImpl *);
public:
  virtual ::javax::net::ssl::SSLEngineResult$HandshakeStatus * handleInput(::java::nio::ByteBuffer *);
public: // actually protected
  virtual ::javax::net::ssl::SSLEngineResult$HandshakeStatus * implHandleInput() = 0;
public:
  virtual ::javax::net::ssl::SSLEngineResult$HandshakeStatus * handleOutput(::java::nio::ByteBuffer *);
public: // actually protected
  virtual ::javax::net::ssl::SSLEngineResult$HandshakeStatus * implHandleOutput(::java::nio::ByteBuffer *) = 0;
public: // actually package-private
  virtual ::gnu::javax::net::ssl::provider::InputSecurityParameters * getInputParams();
  virtual ::gnu::javax::net::ssl::provider::OutputSecurityParameters * getOutputParams();
  virtual ::java::lang::Runnable * getTask();
  virtual ::javax::net::ssl::SSLEngineResult$HandshakeStatus * status() = 0;
  virtual void checkKeyExchange() = 0;
  virtual void handleV2Hello(::java::nio::ByteBuffer *) = 0;
public: // actually protected
  virtual jboolean pollHandshake(::java::nio::ByteBuffer *);
  virtual jboolean doHash();
  virtual jboolean hasMessage();
private:
  void reallocateBuffer(jint);
public: // actually protected
  virtual JArray< jbyte > * genV3CertificateVerify(::java::security::MessageDigest *, ::java::security::MessageDigest *, ::gnu::javax::net::ssl::provider::SessionImpl *);
  virtual JArray< JArray< jbyte > * > * generateKeys(::gnu::javax::net::ssl::provider::Random *, ::gnu::javax::net::ssl::provider::Random *, ::gnu::javax::net::ssl::provider::SessionImpl *);
  virtual ::java::nio::ByteBuffer * generateFinished(::java::security::MessageDigest *, ::java::security::MessageDigest *, jboolean, ::gnu::javax::net::ssl::provider::SessionImpl *);
  virtual void initDiffieHellman(::javax::crypto::interfaces::DHPrivateKey *, ::java::security::SecureRandom *);
  virtual void generateMasterSecret(::gnu::javax::net::ssl::provider::Random *, ::gnu::javax::net::ssl::provider::Random *, ::gnu::javax::net::ssl::provider::SessionImpl *);
  virtual void setupSecurityParameters(JArray< JArray< jbyte > * > *, jboolean, ::gnu::javax::net::ssl::provider::SSLEngineImpl *, ::gnu::javax::net::ssl::provider::CompressionMethod *);
  virtual void generatePSKSecret(::java::lang::String *, JArray< jbyte > *, jboolean);
  static ::gnu::classpath::debug::SystemLogger * logger;
  static JArray< jbyte > * SERVER_FINISHED;
  static JArray< jbyte > * CLIENT_FINISHED;
private:
  static JArray< jbyte > * KEY_EXPANSION;
  static JArray< jbyte > * MASTER_SECRET;
  static JArray< jbyte > * CLIENT_WRITE_KEY;
  static JArray< jbyte > * SERVER_WRITE_KEY;
  static JArray< jbyte > * IV_BLOCK;
  static JArray< jbyte > * SENDER_CLIENT;
  static JArray< jbyte > * SENDER_SERVER;
public: // actually protected
  static JArray< jbyte > * PAD1;
  static JArray< jbyte > * PAD2;
  ::java::nio::ByteBuffer * __attribute__((aligned(__alignof__( ::java::lang::Object)))) handshakeBuffer;
  jint handshakeOffset;
  ::java::security::MessageDigest * sha;
  ::java::security::MessageDigest * md5;
  ::gnu::javax::net::ssl::provider::SSLEngineImpl * engine;
  ::javax::crypto::KeyAgreement * keyAgreement;
  JArray< jbyte > * preMasterSecret;
  ::gnu::javax::net::ssl::provider::InputSecurityParameters * inParams;
  ::gnu::javax::net::ssl::provider::OutputSecurityParameters * outParams;
  ::java::util::LinkedList * tasks;
  ::gnu::javax::net::ssl::provider::Random * serverRandom;
  ::gnu::javax::net::ssl::provider::Random * clientRandom;
  ::gnu::javax::net::ssl::provider::CompressionMethod * compression;
public: // actually package-private
  static jboolean $assertionsDisabled;
public:
  static ::java::lang::Class class$;
};

#endif // __gnu_javax_net_ssl_provider_AbstractHandshake__