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

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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version 1.3.31
 *
 * Do not make changes to this file unless you know what you are doing--modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */

package com.entrouvert.lasso;

public class Lecp {
  private long swigCPtr;
  protected boolean swigCMemOwn;

  protected Lecp(long cPtr, boolean cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = cPtr;
  }

  protected static long getCPtr(Lecp obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if(swigCPtr != 0 && swigCMemOwn) {
      swigCMemOwn = false;
      lassoJNI.delete_Lecp(swigCPtr);
    }
    swigCPtr = 0;
  }

  public String getArtifact() {
    return lassoJNI.Lecp_artifact_get(swigCPtr, this);
  }

  public void setArtifactMessage(String value) {
    lassoJNI.Lecp_artifactMessage_set(swigCPtr, this, value);
  }

  public String getArtifactMessage() {
    return lassoJNI.Lecp_artifactMessage_get(swigCPtr, this);
  }

  public void setIdentity(Identity value) {
    lassoJNI.Lecp_identity_set(swigCPtr, this, Identity.getCPtr(value), value);
  }

  public Identity getIdentity() {
    long cPtr = lassoJNI.Lecp_identity_get(swigCPtr, this);
    return (cPtr == 0) ? null : new Identity(cPtr, false);
  }

  public boolean getIsIdentityDirty() {
    return lassoJNI.Lecp_isIdentityDirty_get(swigCPtr, this);
  }

  public boolean getIsSessionDirty() {
    return lassoJNI.Lecp_isSessionDirty_get(swigCPtr, this);
  }

  public String getMsgBody() {
    return lassoJNI.Lecp_msgBody_get(swigCPtr, this);
  }

  public String getMsgRelayState() {
    return lassoJNI.Lecp_msgRelayState_get(swigCPtr, this);
  }

  public String getMsgUrl() {
    return lassoJNI.Lecp_msgUrl_get(swigCPtr, this);
  }

  public void setNameIdentifier(Node value) {
    lassoJNI.Lecp_nameIdentifier_set(swigCPtr, this, Node.getCPtr(value), value);
  }

  public Node getNameIdentifier() {
	long cPtr = lassoJNI.Lecp_nameIdentifier_get(swigCPtr, this);
	return (cPtr == 0) ? null : (Node) lassoJNI.downcast_node(cPtr, null);
}

  public void setRemoteProviderId(String value) {
    lassoJNI.Lecp_remoteProviderId_set(swigCPtr, this, value);
  }

  public String getRemoteProviderId() {
    return lassoJNI.Lecp_remoteProviderId_get(swigCPtr, this);
  }

  public void setRequest(Node value) {
    lassoJNI.Lecp_request_set(swigCPtr, this, Node.getCPtr(value), value);
  }

  public Node getRequest() {
	long cPtr = lassoJNI.Lecp_request_get(swigCPtr, this);
	return (cPtr == 0) ? null : (Node) lassoJNI.downcast_node(cPtr, null);
}

  public void setResponse(Node value) {
    lassoJNI.Lecp_response_set(swigCPtr, this, Node.getCPtr(value), value);
  }

  public Node getResponse() {
	long cPtr = lassoJNI.Lecp_response_get(swigCPtr, this);
	return (cPtr == 0) ? null : (Node) lassoJNI.downcast_node(cPtr, null);
}

  public void setServer(Server value) {
    lassoJNI.Lecp_server_set(swigCPtr, this, Server.getCPtr(value), value);
  }

  public Server getServer() {
    long cPtr = lassoJNI.Lecp_server_get(swigCPtr, this);
    return (cPtr == 0) ? null : new Server(cPtr, false);
  }

  public void setSession(Session value) {
    lassoJNI.Lecp_session_set(swigCPtr, this, Session.getCPtr(value), value);
  }

  public Session getSession() {
    long cPtr = lassoJNI.Lecp_session_get(swigCPtr, this);
    return (cPtr == 0) ? null : new Session(cPtr, false);
  }

  public Lecp(Server server) {
    this(lassoJNI.new_Lecp(Server.getCPtr(server), server), true);
  }

  public int setIdentityFromDump(String dump) {
    return lassoJNI.Lecp_setIdentityFromDump(swigCPtr, this, dump);
  }

  public int setSessionFromDump(String dump) {
    return lassoJNI.Lecp_setSessionFromDump(swigCPtr, this, dump);
  }

  public int buildAssertion(String authenticationMethod, String authenticationInstant, String reauthenticateOnOrAfter, String notBefore, String notOnOrAfter) {
    return lassoJNI.Lecp_buildAssertion(swigCPtr, this, authenticationMethod, authenticationInstant, reauthenticateOnOrAfter, notBefore, notOnOrAfter);
  }

  public int setResourceId(String content) {
    return lassoJNI.Lecp_setResourceId(swigCPtr, this, content);
  }

  public int validateRequestMsg(boolean authenticationResult, boolean isConsentObtained) {
    return lassoJNI.Lecp_validateRequestMsg(swigCPtr, this, authenticationResult, isConsentObtained);
  }

  public int buildAuthnRequestEnvelopeMsg() {
    return lassoJNI.Lecp_buildAuthnRequestEnvelopeMsg(swigCPtr, this);
  }

  public int buildAuthnRequestMsg() {
    return lassoJNI.Lecp_buildAuthnRequestMsg(swigCPtr, this);
  }

  public int buildAuthnResponseEnvelopeMsg() {
    return lassoJNI.Lecp_buildAuthnResponseEnvelopeMsg(swigCPtr, this);
  }

  public int buildAuthnResponseMsg() {
    return lassoJNI.Lecp_buildAuthnResponseMsg(swigCPtr, this);
  }

  public int initAuthnRequest(String remoteProviderId) {
    return lassoJNI.Lecp_initAuthnRequest(swigCPtr, this, remoteProviderId);
  }

  public int processAuthnRequestEnvelopeMsg(String requestMsg) {
    return lassoJNI.Lecp_processAuthnRequestEnvelopeMsg(swigCPtr, this, requestMsg);
  }

  public int processAuthnRequestMsg(String authnRequestMsg) {
    return lassoJNI.Lecp_processAuthnRequestMsg(swigCPtr, this, authnRequestMsg);
  }

  public int processAuthnResponseEnvelopeMsg(String responseMsg) {
    return lassoJNI.Lecp_processAuthnResponseEnvelopeMsg(swigCPtr, this, responseMsg);
  }

}