SRPClient.h 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __gnu_javax_crypto_sasl_srp_SRPClient__
  3. #define __gnu_javax_crypto_sasl_srp_SRPClient__
  4. #pragma interface
  5. #include <gnu/javax/crypto/sasl/ClientMechanism.h>
  6. #include <gcj/array.h>
  7. extern "Java"
  8. {
  9. namespace gnu
  10. {
  11. namespace java
  12. {
  13. namespace security
  14. {
  15. namespace util
  16. {
  17. class PRNG;
  18. }
  19. }
  20. }
  21. namespace javax
  22. {
  23. namespace crypto
  24. {
  25. namespace key
  26. {
  27. class IKeyAgreementParty;
  28. }
  29. namespace sasl
  30. {
  31. namespace srp
  32. {
  33. class CALG;
  34. class IALG;
  35. class SRP;
  36. class SRPClient;
  37. }
  38. }
  39. }
  40. namespace security
  41. {
  42. namespace auth
  43. {
  44. class Password;
  45. }
  46. }
  47. }
  48. }
  49. namespace java
  50. {
  51. namespace math
  52. {
  53. class BigInteger;
  54. }
  55. }
  56. }
  57. class gnu::javax::crypto::sasl::srp::SRPClient : public ::gnu::javax::crypto::sasl::ClientMechanism
  58. {
  59. public:
  60. SRPClient();
  61. public: // actually protected
  62. virtual void initMechanism();
  63. virtual void resetMechanism();
  64. public:
  65. virtual jboolean hasInitialResponse();
  66. virtual JArray< jbyte > * evaluateChallenge(JArray< jbyte > *);
  67. public: // actually protected
  68. virtual JArray< jbyte > * engineUnwrap(JArray< jbyte > *, jint, jint);
  69. virtual JArray< jbyte > * engineWrap(JArray< jbyte > *, jint, jint);
  70. virtual ::java::lang::String * getNegotiatedQOP();
  71. virtual ::java::lang::String * getNegotiatedStrength();
  72. virtual ::java::lang::String * getNegotiatedRawSendSize();
  73. virtual ::java::lang::String * getReuse();
  74. private:
  75. JArray< jbyte > * sendIdentities();
  76. JArray< jbyte > * sendPublicKey(JArray< jbyte > *);
  77. JArray< jbyte > * receiveEvidence(JArray< jbyte > *);
  78. void getUsernameAndPassword();
  79. ::java::lang::String * createO(::java::lang::String *);
  80. void setupSecurityServices(jboolean);
  81. ::gnu::java::security::util::PRNG * getDefaultPRNG();
  82. static ::java::util::logging::Logger * log;
  83. ::java::lang::String * __attribute__((aligned(__alignof__( ::gnu::javax::crypto::sasl::ClientMechanism)))) uid;
  84. ::java::lang::String * U;
  85. public: // actually package-private
  86. ::java::math::BigInteger * N;
  87. ::java::math::BigInteger * g;
  88. ::java::math::BigInteger * A;
  89. ::java::math::BigInteger * B;
  90. private:
  91. ::gnu::javax::security::auth::Password * password;
  92. JArray< jbyte > * s;
  93. JArray< jbyte > * cIV;
  94. JArray< jbyte > * sIV;
  95. JArray< jbyte > * M1;
  96. JArray< jbyte > * M2;
  97. JArray< jbyte > * cn;
  98. JArray< jbyte > * sn;
  99. ::gnu::javax::crypto::sasl::srp::SRP * srp;
  100. JArray< jbyte > * sid;
  101. jint ttl;
  102. JArray< jbyte > * sCB;
  103. ::java::lang::String * L;
  104. ::java::lang::String * o;
  105. ::java::lang::String * chosenIntegrityAlgorithm;
  106. ::java::lang::String * chosenConfidentialityAlgorithm;
  107. jint rawSendSize;
  108. JArray< jbyte > * K;
  109. jboolean replayDetection;
  110. jint inCounter;
  111. jint outCounter;
  112. ::gnu::javax::crypto::sasl::srp::IALG * inMac;
  113. ::gnu::javax::crypto::sasl::srp::IALG * outMac;
  114. ::gnu::javax::crypto::sasl::srp::CALG * inCipher;
  115. ::gnu::javax::crypto::sasl::srp::CALG * outCipher;
  116. ::gnu::javax::crypto::key::IKeyAgreementParty * clientHandler;
  117. ::gnu::java::security::util::PRNG * prng;
  118. public:
  119. static ::java::lang::Class class$;
  120. };
  121. #endif // __gnu_javax_crypto_sasl_srp_SRPClient__