AbstractHandshake.h 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __gnu_javax_net_ssl_provider_AbstractHandshake__
  3. #define __gnu_javax_net_ssl_provider_AbstractHandshake__
  4. #pragma interface
  5. #include <java/lang/Object.h>
  6. #include <gcj/array.h>
  7. extern "Java"
  8. {
  9. namespace gnu
  10. {
  11. namespace classpath
  12. {
  13. namespace debug
  14. {
  15. class SystemLogger;
  16. }
  17. }
  18. namespace javax
  19. {
  20. namespace net
  21. {
  22. namespace ssl
  23. {
  24. namespace provider
  25. {
  26. class AbstractHandshake;
  27. class CompressionMethod;
  28. class InputSecurityParameters;
  29. class OutputSecurityParameters;
  30. class Random;
  31. class SSLEngineImpl;
  32. class SessionImpl;
  33. }
  34. }
  35. }
  36. }
  37. }
  38. namespace java
  39. {
  40. namespace nio
  41. {
  42. class ByteBuffer;
  43. }
  44. namespace security
  45. {
  46. class MessageDigest;
  47. class SecureRandom;
  48. }
  49. }
  50. namespace javax
  51. {
  52. namespace crypto
  53. {
  54. class KeyAgreement;
  55. namespace interfaces
  56. {
  57. class DHPrivateKey;
  58. }
  59. }
  60. namespace net
  61. {
  62. namespace ssl
  63. {
  64. class SSLEngineResult$HandshakeStatus;
  65. }
  66. }
  67. }
  68. }
  69. class gnu::javax::net::ssl::provider::AbstractHandshake : public ::java::lang::Object
  70. {
  71. public: // actually protected
  72. AbstractHandshake(::gnu::javax::net::ssl::provider::SSLEngineImpl *);
  73. public:
  74. virtual ::javax::net::ssl::SSLEngineResult$HandshakeStatus * handleInput(::java::nio::ByteBuffer *);
  75. public: // actually protected
  76. virtual ::javax::net::ssl::SSLEngineResult$HandshakeStatus * implHandleInput() = 0;
  77. public:
  78. virtual ::javax::net::ssl::SSLEngineResult$HandshakeStatus * handleOutput(::java::nio::ByteBuffer *);
  79. public: // actually protected
  80. virtual ::javax::net::ssl::SSLEngineResult$HandshakeStatus * implHandleOutput(::java::nio::ByteBuffer *) = 0;
  81. public: // actually package-private
  82. virtual ::gnu::javax::net::ssl::provider::InputSecurityParameters * getInputParams();
  83. virtual ::gnu::javax::net::ssl::provider::OutputSecurityParameters * getOutputParams();
  84. virtual ::java::lang::Runnable * getTask();
  85. virtual ::javax::net::ssl::SSLEngineResult$HandshakeStatus * status() = 0;
  86. virtual void checkKeyExchange() = 0;
  87. virtual void handleV2Hello(::java::nio::ByteBuffer *) = 0;
  88. public: // actually protected
  89. virtual jboolean pollHandshake(::java::nio::ByteBuffer *);
  90. virtual jboolean doHash();
  91. virtual jboolean hasMessage();
  92. private:
  93. void reallocateBuffer(jint);
  94. public: // actually protected
  95. virtual JArray< jbyte > * genV3CertificateVerify(::java::security::MessageDigest *, ::java::security::MessageDigest *, ::gnu::javax::net::ssl::provider::SessionImpl *);
  96. virtual JArray< JArray< jbyte > * > * generateKeys(::gnu::javax::net::ssl::provider::Random *, ::gnu::javax::net::ssl::provider::Random *, ::gnu::javax::net::ssl::provider::SessionImpl *);
  97. virtual ::java::nio::ByteBuffer * generateFinished(::java::security::MessageDigest *, ::java::security::MessageDigest *, jboolean, ::gnu::javax::net::ssl::provider::SessionImpl *);
  98. virtual void initDiffieHellman(::javax::crypto::interfaces::DHPrivateKey *, ::java::security::SecureRandom *);
  99. virtual void generateMasterSecret(::gnu::javax::net::ssl::provider::Random *, ::gnu::javax::net::ssl::provider::Random *, ::gnu::javax::net::ssl::provider::SessionImpl *);
  100. virtual void setupSecurityParameters(JArray< JArray< jbyte > * > *, jboolean, ::gnu::javax::net::ssl::provider::SSLEngineImpl *, ::gnu::javax::net::ssl::provider::CompressionMethod *);
  101. virtual void generatePSKSecret(::java::lang::String *, JArray< jbyte > *, jboolean);
  102. static ::gnu::classpath::debug::SystemLogger * logger;
  103. static JArray< jbyte > * SERVER_FINISHED;
  104. static JArray< jbyte > * CLIENT_FINISHED;
  105. private:
  106. static JArray< jbyte > * KEY_EXPANSION;
  107. static JArray< jbyte > * MASTER_SECRET;
  108. static JArray< jbyte > * CLIENT_WRITE_KEY;
  109. static JArray< jbyte > * SERVER_WRITE_KEY;
  110. static JArray< jbyte > * IV_BLOCK;
  111. static JArray< jbyte > * SENDER_CLIENT;
  112. static JArray< jbyte > * SENDER_SERVER;
  113. public: // actually protected
  114. static JArray< jbyte > * PAD1;
  115. static JArray< jbyte > * PAD2;
  116. ::java::nio::ByteBuffer * __attribute__((aligned(__alignof__( ::java::lang::Object)))) handshakeBuffer;
  117. jint handshakeOffset;
  118. ::java::security::MessageDigest * sha;
  119. ::java::security::MessageDigest * md5;
  120. ::gnu::javax::net::ssl::provider::SSLEngineImpl * engine;
  121. ::javax::crypto::KeyAgreement * keyAgreement;
  122. JArray< jbyte > * preMasterSecret;
  123. ::gnu::javax::net::ssl::provider::InputSecurityParameters * inParams;
  124. ::gnu::javax::net::ssl::provider::OutputSecurityParameters * outParams;
  125. ::java::util::LinkedList * tasks;
  126. ::gnu::javax::net::ssl::provider::Random * serverRandom;
  127. ::gnu::javax::net::ssl::provider::Random * clientRandom;
  128. ::gnu::javax::net::ssl::provider::CompressionMethod * compression;
  129. public: // actually package-private
  130. static jboolean $assertionsDisabled;
  131. public:
  132. static ::java::lang::Class class$;
  133. };
  134. #endif // __gnu_javax_net_ssl_provider_AbstractHandshake__