~ubuntu-branches/ubuntu/edgy/lasso/edgy

« back to all changes in this revision

Viewing changes to java/Lecp.java

  • Committer: Bazaar Package Importer
  • Author(s): Stephan Hermann
  • Date: 2005-09-16 02:16:49 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050916021649-lr5tuka6pfmmks44
Tags: 0.6.2-3ubuntu1
* debian/control: removed hardcoded php dependency, added php:Depends
  substvar
* debian/rules: added phpapiver, added substitution of php:Depends

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.21
 
3
 * Version 1.3.24
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.
8
8
 
9
9
package com.entrouvert.lasso;
10
10
 
11
 
 
12
11
public class Lecp {
13
12
  private long swigCPtr;
14
13
  protected boolean swigCMemOwn;
18
17
    swigCPtr = cPtr;
19
18
  }
20
19
 
 
20
  protected static long getCPtr(Lecp obj) {
 
21
    return (obj == null) ? 0 : obj.swigCPtr;
 
22
  }
 
23
 
21
24
  protected Lecp() {
22
25
    this(0, false);
23
26
  }
34
37
    swigCPtr = 0;
35
38
  }
36
39
 
37
 
  protected static long getCPtr(Lecp obj) {
38
 
    return (obj == null) ? 0 : obj.swigCPtr;
39
 
  }
40
 
 
41
 
  public AuthnRequest getAuthnRequest() {
42
 
    long cPtr = lassoJNI.get_Lecp_authnRequest(swigCPtr);
43
 
    return (cPtr == 0) ? null : new AuthnRequest(cPtr, false);
44
 
  }
45
 
 
46
 
  public AuthnResponse getAuthnResponse() {
47
 
    long cPtr = lassoJNI.get_Lecp_authnResponse(swigCPtr);
48
 
    return (cPtr == 0) ? null : new AuthnResponse(cPtr, false);
49
 
  }
50
 
 
51
40
  public void setIdentity(Identity identity) {
52
41
    lassoJNI.set_Lecp_identity(swigCPtr, Identity.getCPtr(identity));
53
42
  }
77
66
    return lassoJNI.get_Lecp_msgUrl(swigCPtr);
78
67
  }
79
68
 
80
 
  public String getNameIdentifier() {
81
 
    return lassoJNI.get_Lecp_nameIdentifier(swigCPtr);
 
69
  public void setNameIdentifier(SamlNameIdentifier nameIdentifier) {
 
70
    lassoJNI.set_Lecp_nameIdentifier(swigCPtr, SamlNameIdentifier.getCPtr(nameIdentifier));
 
71
  }
 
72
 
 
73
  public SamlNameIdentifier getNameIdentifier() {
 
74
    long cPtr = lassoJNI.get_Lecp_nameIdentifier(swigCPtr);
 
75
    return (cPtr == 0) ? null : new SamlNameIdentifier(cPtr, false);
82
76
  }
83
77
 
84
78
  public void setRemoteProviderId(String remoteProviderId) {
89
83
    return lassoJNI.get_Lecp_remoteProviderId(swigCPtr);
90
84
  }
91
85
 
92
 
  public Request getRequest() {
93
 
    long cPtr = lassoJNI.get_Lecp_request(swigCPtr);
94
 
    return (cPtr == 0) ? null : new Request(cPtr, false);
95
 
  }
96
 
 
97
 
  public Response getResponse() {
98
 
    long cPtr = lassoJNI.get_Lecp_response(swigCPtr);
99
 
    return (cPtr == 0) ? null : new Response(cPtr, false);
100
 
  }
101
 
 
102
 
  public void setResponseStatus(String responseStatus) {
103
 
    lassoJNI.set_Lecp_responseStatus(swigCPtr, responseStatus);
104
 
  }
105
 
 
106
 
  public String getResponseStatus() {
107
 
    return lassoJNI.get_Lecp_responseStatus(swigCPtr);
 
86
  public void setRequest(SamlpRequestAbstract request) {
 
87
    lassoJNI.set_Lecp_request(swigCPtr, SamlpRequestAbstract.getCPtr(request));
 
88
  }
 
89
 
 
90
  public SamlpRequestAbstract getRequest() {
 
91
        long cPtr = lassoJNI.get_Lecp_request(swigCPtr);
 
92
        return (cPtr == 0) ? null : (SamlpRequestAbstract) lassoJNI.downcast_node(cPtr);
 
93
}
 
94
 
 
95
  public void setResponse(SamlpResponseAbstract response) {
 
96
    lassoJNI.set_Lecp_response(swigCPtr, SamlpResponseAbstract.getCPtr(response));
 
97
  }
 
98
 
 
99
  public SamlpResponseAbstract getResponse() {
 
100
        long cPtr = lassoJNI.get_Lecp_response(swigCPtr);
 
101
        return (cPtr == 0) ? null : (SamlpResponseAbstract) lassoJNI.downcast_node(cPtr);
 
102
}
 
103
 
 
104
  public void setServer(Server server) {
 
105
    lassoJNI.set_Lecp_server(swigCPtr, Server.getCPtr(server));
 
106
  }
 
107
 
 
108
  public Server getServer() {
 
109
    long cPtr = lassoJNI.get_Lecp_server(swigCPtr);
 
110
    return (cPtr == 0) ? null : new Server(cPtr, false);
108
111
  }
109
112
 
110
113
  public void setSession(Session session) {
120
123
    this(lassoJNI.new_Lecp(Server.getCPtr(server)), true);
121
124
  }
122
125
 
123
 
  public void setIdentityFromDump(String dump) {
124
 
    lassoJNI.Lecp_setIdentityFromDump(swigCPtr, dump);
125
 
  }
126
 
 
127
 
  public void setSessionFromDump(String dump) {
128
 
    lassoJNI.Lecp_setSessionFromDump(swigCPtr, dump);
129
 
  }
130
 
 
131
 
  public void buildAuthnRequestEnvelopeMsg() {
132
 
    lassoJNI.Lecp_buildAuthnRequestEnvelopeMsg(swigCPtr);
133
 
  }
134
 
 
135
 
  public void buildAuthnRequestMsg(String remoteProviderId) {
136
 
    lassoJNI.Lecp_buildAuthnRequestMsg(swigCPtr, remoteProviderId);
137
 
  }
138
 
 
139
 
  public void buildAuthnResponseEnvelopeMsg(int authenticationResult, String authenticationMethod, String reauthenticateOnOrAfter) {
140
 
    lassoJNI.Lecp_buildAuthnResponseEnvelopeMsg(swigCPtr, authenticationResult, authenticationMethod, reauthenticateOnOrAfter);
141
 
  }
142
 
 
143
 
  public void buildAuthnResponseMsg() {
144
 
    lassoJNI.Lecp_buildAuthnResponseMsg(swigCPtr);
145
 
  }
146
 
 
147
 
  public void initAuthnRequest() {
148
 
    lassoJNI.Lecp_initAuthnRequest(swigCPtr);
149
 
  }
150
 
 
151
 
  public void initFromAuthnRequestMsg(String authnRequestMsg, int httpMethod) {
152
 
    lassoJNI.Lecp_initFromAuthnRequestMsg(swigCPtr, authnRequestMsg, httpMethod);
153
 
  }
154
 
 
155
 
  public void processAuthnRequestEnvelopeMsg(String requestMsg) {
156
 
    lassoJNI.Lecp_processAuthnRequestEnvelopeMsg(swigCPtr, requestMsg);
157
 
  }
158
 
 
159
 
  public void processAuthnResponseEnvelopeMsg(String responseMsg) {
160
 
    lassoJNI.Lecp_processAuthnResponseEnvelopeMsg(swigCPtr, responseMsg);
 
126
  public int setIdentityFromDump(String dump) {
 
127
    return lassoJNI.Lecp_setIdentityFromDump(swigCPtr, dump);
 
128
  }
 
129
 
 
130
  public int setSessionFromDump(String dump) {
 
131
    return lassoJNI.Lecp_setSessionFromDump(swigCPtr, dump);
 
132
  }
 
133
 
 
134
  public int buildAssertion(String authenticationMethod, String authenticationInstant, String reauthenticateOnOrAfter, String notBefore, String notOnOrAfter) {
 
135
    return lassoJNI.Lecp_buildAssertion(swigCPtr, authenticationMethod, authenticationInstant, reauthenticateOnOrAfter, notBefore, notOnOrAfter);
 
136
  }
 
137
 
 
138
  public int setResourceId(String content) {
 
139
    return lassoJNI.Lecp_setResourceId(swigCPtr, content);
 
140
  }
 
141
 
 
142
  public int validateRequestMsg(boolean authenticationResult, boolean isConsentObtained) {
 
143
    return lassoJNI.Lecp_validateRequestMsg(swigCPtr, authenticationResult, isConsentObtained);
 
144
  }
 
145
 
 
146
  public int buildAuthnRequestEnvelopeMsg() {
 
147
    return lassoJNI.Lecp_buildAuthnRequestEnvelopeMsg(swigCPtr);
 
148
  }
 
149
 
 
150
  public int buildAuthnRequestMsg() {
 
151
    return lassoJNI.Lecp_buildAuthnRequestMsg(swigCPtr);
 
152
  }
 
153
 
 
154
  public int buildAuthnResponseEnvelopeMsg() {
 
155
    return lassoJNI.Lecp_buildAuthnResponseEnvelopeMsg(swigCPtr);
 
156
  }
 
157
 
 
158
  public int buildAuthnResponseMsg() {
 
159
    return lassoJNI.Lecp_buildAuthnResponseMsg(swigCPtr);
 
160
  }
 
161
 
 
162
  public int initAuthnRequest(String remoteProviderId) {
 
163
    return lassoJNI.Lecp_initAuthnRequest(swigCPtr, remoteProviderId);
 
164
  }
 
165
 
 
166
  public int processAuthnRequestEnvelopeMsg(String requestMsg) {
 
167
    return lassoJNI.Lecp_processAuthnRequestEnvelopeMsg(swigCPtr, requestMsg);
 
168
  }
 
169
 
 
170
  public int processAuthnRequestMsg(String authnRequestMsg) {
 
171
    return lassoJNI.Lecp_processAuthnRequestMsg(swigCPtr, authnRequestMsg);
 
172
  }
 
173
 
 
174
  public int processAuthnResponseEnvelopeMsg(String responseMsg) {
 
175
    return lassoJNI.Lecp_processAuthnResponseEnvelopeMsg(swigCPtr, responseMsg);
161
176
  }
162
177
 
163
178
}