~ubuntu-branches/ubuntu/hardy/lasso/hardy

« back to all changes in this revision

Viewing changes to java/Lecp.java

  • Committer: Bazaar Package Importer
  • Author(s): Michael Bienia
  • Date: 2007-07-31 21:35:26 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070731213526-oc6jw5mprcd5tjyy
Tags: 2.0.0-1ubuntu1
* Merge from debian unstable. Remaining changes:
  + debian/control:
    - Modify Maintainer value to match DebianMaintainerField spec.
* debian/rules:
  + Add CC=gcc-4.2 to the configure call else configure won't find jni.h
    from libgcj8-dev.
* configure{,.ac}:
  + Add missing quotes around the value for PHP[45]_LIBS.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* ----------------------------------------------------------------------------
2
2
 * This file was automatically generated by SWIG (http://www.swig.org).
3
 
 * Version 1.3.28
 
3
 * Version 1.3.31
4
4
 *
5
5
 * Do not make changes to this file unless you know what you are doing--modify
6
6
 * the SWIG interface file instead.
25
25
    delete();
26
26
  }
27
27
 
28
 
  public void delete() {
 
28
  public synchronized void delete() {
29
29
    if(swigCPtr != 0 && swigCMemOwn) {
30
30
      swigCMemOwn = false;
31
31
      lassoJNI.delete_Lecp(swigCPtr);
34
34
  }
35
35
 
36
36
  public String getArtifact() {
37
 
    return lassoJNI.Lecp_artifact_get(swigCPtr);
 
37
    return lassoJNI.Lecp_artifact_get(swigCPtr, this);
38
38
  }
39
39
 
40
40
  public void setArtifactMessage(String value) {
41
 
    lassoJNI.Lecp_artifactMessage_set(swigCPtr, value);
 
41
    lassoJNI.Lecp_artifactMessage_set(swigCPtr, this, value);
42
42
  }
43
43
 
44
44
  public String getArtifactMessage() {
45
 
    return lassoJNI.Lecp_artifactMessage_get(swigCPtr);
 
45
    return lassoJNI.Lecp_artifactMessage_get(swigCPtr, this);
46
46
  }
47
47
 
48
48
  public void setIdentity(Identity value) {
49
 
    lassoJNI.Lecp_identity_set(swigCPtr, Identity.getCPtr(value));
 
49
    lassoJNI.Lecp_identity_set(swigCPtr, this, Identity.getCPtr(value), value);
50
50
  }
51
51
 
52
52
  public Identity getIdentity() {
53
 
    long cPtr = lassoJNI.Lecp_identity_get(swigCPtr);
 
53
    long cPtr = lassoJNI.Lecp_identity_get(swigCPtr, this);
54
54
    return (cPtr == 0) ? null : new Identity(cPtr, false);
55
55
  }
56
56
 
57
57
  public boolean getIsIdentityDirty() {
58
 
    return lassoJNI.Lecp_isIdentityDirty_get(swigCPtr);
 
58
    return lassoJNI.Lecp_isIdentityDirty_get(swigCPtr, this);
59
59
  }
60
60
 
61
61
  public boolean getIsSessionDirty() {
62
 
    return lassoJNI.Lecp_isSessionDirty_get(swigCPtr);
 
62
    return lassoJNI.Lecp_isSessionDirty_get(swigCPtr, this);
63
63
  }
64
64
 
65
65
  public String getMsgBody() {
66
 
    return lassoJNI.Lecp_msgBody_get(swigCPtr);
 
66
    return lassoJNI.Lecp_msgBody_get(swigCPtr, this);
67
67
  }
68
68
 
69
69
  public String getMsgRelayState() {
70
 
    return lassoJNI.Lecp_msgRelayState_get(swigCPtr);
 
70
    return lassoJNI.Lecp_msgRelayState_get(swigCPtr, this);
71
71
  }
72
72
 
73
73
  public String getMsgUrl() {
74
 
    return lassoJNI.Lecp_msgUrl_get(swigCPtr);
 
74
    return lassoJNI.Lecp_msgUrl_get(swigCPtr, this);
75
75
  }
76
76
 
77
77
  public void setNameIdentifier(Node value) {
78
 
    lassoJNI.Lecp_nameIdentifier_set(swigCPtr, Node.getCPtr(value));
 
78
    lassoJNI.Lecp_nameIdentifier_set(swigCPtr, this, Node.getCPtr(value), value);
79
79
  }
80
80
 
81
81
  public Node getNameIdentifier() {
82
 
        long cPtr = lassoJNI.Lecp_nameIdentifier_get(swigCPtr);
83
 
        return (cPtr == 0) ? null : (Node) lassoJNI.downcast_node(cPtr);
 
82
        long cPtr = lassoJNI.Lecp_nameIdentifier_get(swigCPtr, this);
 
83
        return (cPtr == 0) ? null : (Node) lassoJNI.downcast_node(cPtr, null);
84
84
}
85
85
 
86
86
  public void setRemoteProviderId(String value) {
87
 
    lassoJNI.Lecp_remoteProviderId_set(swigCPtr, value);
 
87
    lassoJNI.Lecp_remoteProviderId_set(swigCPtr, this, value);
88
88
  }
89
89
 
90
90
  public String getRemoteProviderId() {
91
 
    return lassoJNI.Lecp_remoteProviderId_get(swigCPtr);
 
91
    return lassoJNI.Lecp_remoteProviderId_get(swigCPtr, this);
92
92
  }
93
93
 
94
94
  public void setRequest(Node value) {
95
 
    lassoJNI.Lecp_request_set(swigCPtr, Node.getCPtr(value));
 
95
    lassoJNI.Lecp_request_set(swigCPtr, this, Node.getCPtr(value), value);
96
96
  }
97
97
 
98
98
  public Node getRequest() {
99
 
        long cPtr = lassoJNI.Lecp_request_get(swigCPtr);
100
 
        return (cPtr == 0) ? null : (Node) lassoJNI.downcast_node(cPtr);
 
99
        long cPtr = lassoJNI.Lecp_request_get(swigCPtr, this);
 
100
        return (cPtr == 0) ? null : (Node) lassoJNI.downcast_node(cPtr, null);
101
101
}
102
102
 
103
103
  public void setResponse(Node value) {
104
 
    lassoJNI.Lecp_response_set(swigCPtr, Node.getCPtr(value));
 
104
    lassoJNI.Lecp_response_set(swigCPtr, this, Node.getCPtr(value), value);
105
105
  }
106
106
 
107
107
  public Node getResponse() {
108
 
        long cPtr = lassoJNI.Lecp_response_get(swigCPtr);
109
 
        return (cPtr == 0) ? null : (Node) lassoJNI.downcast_node(cPtr);
 
108
        long cPtr = lassoJNI.Lecp_response_get(swigCPtr, this);
 
109
        return (cPtr == 0) ? null : (Node) lassoJNI.downcast_node(cPtr, null);
110
110
}
111
111
 
112
112
  public void setServer(Server value) {
113
 
    lassoJNI.Lecp_server_set(swigCPtr, Server.getCPtr(value));
 
113
    lassoJNI.Lecp_server_set(swigCPtr, this, Server.getCPtr(value), value);
114
114
  }
115
115
 
116
116
  public Server getServer() {
117
 
    long cPtr = lassoJNI.Lecp_server_get(swigCPtr);
 
117
    long cPtr = lassoJNI.Lecp_server_get(swigCPtr, this);
118
118
    return (cPtr == 0) ? null : new Server(cPtr, false);
119
119
  }
120
120
 
121
121
  public void setSession(Session value) {
122
 
    lassoJNI.Lecp_session_set(swigCPtr, Session.getCPtr(value));
 
122
    lassoJNI.Lecp_session_set(swigCPtr, this, Session.getCPtr(value), value);
123
123
  }
124
124
 
125
125
  public Session getSession() {
126
 
    long cPtr = lassoJNI.Lecp_session_get(swigCPtr);
 
126
    long cPtr = lassoJNI.Lecp_session_get(swigCPtr, this);
127
127
    return (cPtr == 0) ? null : new Session(cPtr, false);
128
128
  }
129
129
 
130
130
  public Lecp(Server server) {
131
 
    this(lassoJNI.new_Lecp(Server.getCPtr(server)), true);
 
131
    this(lassoJNI.new_Lecp(Server.getCPtr(server), server), true);
132
132
  }
133
133
 
134
134
  public int setIdentityFromDump(String dump) {
135
 
    return lassoJNI.Lecp_setIdentityFromDump(swigCPtr, dump);
 
135
    return lassoJNI.Lecp_setIdentityFromDump(swigCPtr, this, dump);
136
136
  }
137
137
 
138
138
  public int setSessionFromDump(String dump) {
139
 
    return lassoJNI.Lecp_setSessionFromDump(swigCPtr, dump);
 
139
    return lassoJNI.Lecp_setSessionFromDump(swigCPtr, this, dump);
140
140
  }
141
141
 
142
142
  public int buildAssertion(String authenticationMethod, String authenticationInstant, String reauthenticateOnOrAfter, String notBefore, String notOnOrAfter) {
143
 
    return lassoJNI.Lecp_buildAssertion(swigCPtr, authenticationMethod, authenticationInstant, reauthenticateOnOrAfter, notBefore, notOnOrAfter);
 
143
    return lassoJNI.Lecp_buildAssertion(swigCPtr, this, authenticationMethod, authenticationInstant, reauthenticateOnOrAfter, notBefore, notOnOrAfter);
144
144
  }
145
145
 
146
146
  public int setResourceId(String content) {
147
 
    return lassoJNI.Lecp_setResourceId(swigCPtr, content);
 
147
    return lassoJNI.Lecp_setResourceId(swigCPtr, this, content);
148
148
  }
149
149
 
150
150
  public int validateRequestMsg(boolean authenticationResult, boolean isConsentObtained) {
151
 
    return lassoJNI.Lecp_validateRequestMsg(swigCPtr, authenticationResult, isConsentObtained);
 
151
    return lassoJNI.Lecp_validateRequestMsg(swigCPtr, this, authenticationResult, isConsentObtained);
152
152
  }
153
153
 
154
154
  public int buildAuthnRequestEnvelopeMsg() {
155
 
    return lassoJNI.Lecp_buildAuthnRequestEnvelopeMsg(swigCPtr);
 
155
    return lassoJNI.Lecp_buildAuthnRequestEnvelopeMsg(swigCPtr, this);
156
156
  }
157
157
 
158
158
  public int buildAuthnRequestMsg() {
159
 
    return lassoJNI.Lecp_buildAuthnRequestMsg(swigCPtr);
 
159
    return lassoJNI.Lecp_buildAuthnRequestMsg(swigCPtr, this);
160
160
  }
161
161
 
162
162
  public int buildAuthnResponseEnvelopeMsg() {
163
 
    return lassoJNI.Lecp_buildAuthnResponseEnvelopeMsg(swigCPtr);
 
163
    return lassoJNI.Lecp_buildAuthnResponseEnvelopeMsg(swigCPtr, this);
164
164
  }
165
165
 
166
166
  public int buildAuthnResponseMsg() {
167
 
    return lassoJNI.Lecp_buildAuthnResponseMsg(swigCPtr);
 
167
    return lassoJNI.Lecp_buildAuthnResponseMsg(swigCPtr, this);
168
168
  }
169
169
 
170
170
  public int initAuthnRequest(String remoteProviderId) {
171
 
    return lassoJNI.Lecp_initAuthnRequest(swigCPtr, remoteProviderId);
 
171
    return lassoJNI.Lecp_initAuthnRequest(swigCPtr, this, remoteProviderId);
172
172
  }
173
173
 
174
174
  public int processAuthnRequestEnvelopeMsg(String requestMsg) {
175
 
    return lassoJNI.Lecp_processAuthnRequestEnvelopeMsg(swigCPtr, requestMsg);
 
175
    return lassoJNI.Lecp_processAuthnRequestEnvelopeMsg(swigCPtr, this, requestMsg);
176
176
  }
177
177
 
178
178
  public int processAuthnRequestMsg(String authnRequestMsg) {
179
 
    return lassoJNI.Lecp_processAuthnRequestMsg(swigCPtr, authnRequestMsg);
 
179
    return lassoJNI.Lecp_processAuthnRequestMsg(swigCPtr, this, authnRequestMsg);
180
180
  }
181
181
 
182
182
  public int processAuthnResponseEnvelopeMsg(String responseMsg) {
183
 
    return lassoJNI.Lecp_processAuthnResponseEnvelopeMsg(swigCPtr, responseMsg);
 
183
    return lassoJNI.Lecp_processAuthnResponseEnvelopeMsg(swigCPtr, this, responseMsg);
184
184
  }
185
185
 
186
186
}