summaryrefslogtreecommitdiff
path: root/libjava/gnu/javax/crypto/sasl/srp/SRPClient.h
blob: ec13be653b6a1e67cdaf9e71055f6327eba08c7e (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
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __gnu_javax_crypto_sasl_srp_SRPClient__
#define __gnu_javax_crypto_sasl_srp_SRPClient__

#pragma interface

#include <gnu/javax/crypto/sasl/ClientMechanism.h>
#include <gcj/array.h>

extern "Java"
{
  namespace gnu
  {
    namespace java
    {
      namespace security
      {
        namespace util
        {
            class PRNG;
        }
      }
    }
    namespace javax
    {
      namespace crypto
      {
        namespace key
        {
            class IKeyAgreementParty;
        }
        namespace sasl
        {
          namespace srp
          {
              class CALG;
              class IALG;
              class SRP;
              class SRPClient;
          }
        }
      }
      namespace security
      {
        namespace auth
        {
            class Password;
        }
      }
    }
  }
  namespace java
  {
    namespace math
    {
        class BigInteger;
    }
  }
}

class gnu::javax::crypto::sasl::srp::SRPClient : public ::gnu::javax::crypto::sasl::ClientMechanism
{

public:
  SRPClient();
public: // actually protected
  virtual void initMechanism();
  virtual void resetMechanism();
public:
  virtual jboolean hasInitialResponse();
  virtual JArray< jbyte > * evaluateChallenge(JArray< jbyte > *);
public: // actually protected
  virtual JArray< jbyte > * engineUnwrap(JArray< jbyte > *, jint, jint);
  virtual JArray< jbyte > * engineWrap(JArray< jbyte > *, jint, jint);
  virtual ::java::lang::String * getNegotiatedQOP();
  virtual ::java::lang::String * getNegotiatedStrength();
  virtual ::java::lang::String * getNegotiatedRawSendSize();
  virtual ::java::lang::String * getReuse();
private:
  JArray< jbyte > * sendIdentities();
  JArray< jbyte > * sendPublicKey(JArray< jbyte > *);
  JArray< jbyte > * receiveEvidence(JArray< jbyte > *);
  void getUsernameAndPassword();
  ::java::lang::String * createO(::java::lang::String *);
  void setupSecurityServices(jboolean);
  ::gnu::java::security::util::PRNG * getDefaultPRNG();
  static ::java::util::logging::Logger * log;
  ::java::lang::String * __attribute__((aligned(__alignof__( ::gnu::javax::crypto::sasl::ClientMechanism)))) uid;
  ::java::lang::String * U;
public: // actually package-private
  ::java::math::BigInteger * N;
  ::java::math::BigInteger * g;
  ::java::math::BigInteger * A;
  ::java::math::BigInteger * B;
private:
  ::gnu::javax::security::auth::Password * password;
  JArray< jbyte > * s;
  JArray< jbyte > * cIV;
  JArray< jbyte > * sIV;
  JArray< jbyte > * M1;
  JArray< jbyte > * M2;
  JArray< jbyte > * cn;
  JArray< jbyte > * sn;
  ::gnu::javax::crypto::sasl::srp::SRP * srp;
  JArray< jbyte > * sid;
  jint ttl;
  JArray< jbyte > * sCB;
  ::java::lang::String * L;
  ::java::lang::String * o;
  ::java::lang::String * chosenIntegrityAlgorithm;
  ::java::lang::String * chosenConfidentialityAlgorithm;
  jint rawSendSize;
  JArray< jbyte > * K;
  jboolean replayDetection;
  jint inCounter;
  jint outCounter;
  ::gnu::javax::crypto::sasl::srp::IALG * inMac;
  ::gnu::javax::crypto::sasl::srp::IALG * outMac;
  ::gnu::javax::crypto::sasl::srp::CALG * inCipher;
  ::gnu::javax::crypto::sasl::srp::CALG * outCipher;
  ::gnu::javax::crypto::key::IKeyAgreementParty * clientHandler;
  ::gnu::java::security::util::PRNG * prng;
public:
  static ::java::lang::Class class$;
};

#endif // __gnu_javax_crypto_sasl_srp_SRPClient__