
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __gnu_javax_net_ssl_provider_Handshake__
#define __gnu_javax_net_ssl_provider_Handshake__

#pragma interface

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

extern "Java"
{
  namespace gnu
  {
    namespace javax
    {
      namespace net
      {
        namespace ssl
        {
          namespace provider
          {
              class CipherSuite;
              class Handshake;
              class Handshake$Body;
              class Handshake$Type;
              class ProtocolVersion;
          }
        }
      }
    }
  }
  namespace java
  {
    namespace nio
    {
        class ByteBuffer;
    }
  }
}

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

public:
  Handshake(::java::nio::ByteBuffer *);
  Handshake(::java::nio::ByteBuffer *, ::gnu::javax::net::ssl::provider::CipherSuite *, ::gnu::javax::net::ssl::provider::ProtocolVersion *);
  ::gnu::javax::net::ssl::provider::Handshake$Type * type();
  jint length();
  ::gnu::javax::net::ssl::provider::Handshake$Body * body();
  ::java::nio::ByteBuffer * bodyBuffer();
  void setType(::gnu::javax::net::ssl::provider::Handshake$Type *);
  void setLength(jint);
  ::java::lang::String * toString();
  ::java::lang::String * toString(::java::lang::String *);
public: // actually package-private
  static JArray< jint > * $SWITCH_TABLE$gnu$javax$net$ssl$provider$Handshake$Type();
private:
  ::java::nio::ByteBuffer * __attribute__((aligned(__alignof__( ::java::lang::Object)))) buffer;
  ::gnu::javax::net::ssl::provider::CipherSuite * suite;
  ::gnu::javax::net::ssl::provider::ProtocolVersion * version;
  static JArray< jint > * $SWITCH_TABLE$gnu$javax$net$ssl$provider$Handshake$Type__;
public:
  static ::java::lang::Class class$;
};

#endif // __gnu_javax_net_ssl_provider_Handshake__
