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

« back to all changes in this revision

Viewing changes to java/Server.java

  • Committer: Bazaar Package Importer
  • Author(s): Michael Bienia
  • Date: 2007-07-31 21:35:26 UTC
  • mto: This revision was merged to the branch mainline in revision 10.
  • Revision ID: james.westby@ubuntu.com-20070731213526-5yf8k7sq7slsb450
Tags: upstream-2.0.0
ImportĀ upstreamĀ versionĀ 2.0.0

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_Server(swigCPtr);
34
34
  }
35
35
 
36
36
  public void setCertificate(String value) {
37
 
    lassoJNI.Server_certificate_set(swigCPtr, value);
 
37
    lassoJNI.Server_certificate_set(swigCPtr, this, value);
38
38
  }
39
39
 
40
40
  public String getCertificate() {
41
 
    return lassoJNI.Server_certificate_get(swigCPtr);
 
41
    return lassoJNI.Server_certificate_get(swigCPtr, this);
42
42
  }
43
43
 
44
44
  public void setPrivateKey(String value) {
45
 
    lassoJNI.Server_privateKey_set(swigCPtr, value);
 
45
    lassoJNI.Server_privateKey_set(swigCPtr, this, value);
46
46
  }
47
47
 
48
48
  public String getPrivateKey() {
49
 
    return lassoJNI.Server_privateKey_get(swigCPtr);
 
49
    return lassoJNI.Server_privateKey_get(swigCPtr, this);
50
50
  }
51
51
 
52
52
  public void setPrivateKeyPassword(String value) {
53
 
    lassoJNI.Server_privateKeyPassword_set(swigCPtr, value);
 
53
    lassoJNI.Server_privateKeyPassword_set(swigCPtr, this, value);
54
54
  }
55
55
 
56
56
  public String getPrivateKeyPassword() {
57
 
    return lassoJNI.Server_privateKeyPassword_get(swigCPtr);
 
57
    return lassoJNI.Server_privateKeyPassword_get(swigCPtr, this);
58
58
  }
59
59
 
60
60
  public void setSignatureMethod(int value) {
61
 
    lassoJNI.Server_signatureMethod_set(swigCPtr, value);
 
61
    lassoJNI.Server_signatureMethod_set(swigCPtr, this, value);
62
62
  }
63
63
 
64
64
  public int getSignatureMethod() {
65
 
    return lassoJNI.Server_signatureMethod_get(swigCPtr);
 
65
    return lassoJNI.Server_signatureMethod_get(swigCPtr, this);
66
66
  }
67
67
 
68
68
  public void setCaCertChain(String value) {
69
 
    lassoJNI.Server_caCertChain_set(swigCPtr, value);
 
69
    lassoJNI.Server_caCertChain_set(swigCPtr, this, value);
70
70
  }
71
71
 
72
72
  public String getCaCertChain() {
73
 
    return lassoJNI.Server_caCertChain_get(swigCPtr);
 
73
    return lassoJNI.Server_caCertChain_get(swigCPtr, this);
74
74
  }
75
75
 
76
76
  public void setMetadataFilename(String value) {
77
 
    lassoJNI.Server_metadataFilename_set(swigCPtr, value);
 
77
    lassoJNI.Server_metadataFilename_set(swigCPtr, this, value);
78
78
  }
79
79
 
80
80
  public String getMetadataFilename() {
81
 
    return lassoJNI.Server_metadataFilename_get(swigCPtr);
 
81
    return lassoJNI.Server_metadataFilename_get(swigCPtr, this);
82
82
  }
83
83
 
84
84
  public void setProviderId(String value) {
85
 
    lassoJNI.Server_providerId_set(swigCPtr, value);
 
85
    lassoJNI.Server_providerId_set(swigCPtr, this, value);
86
86
  }
87
87
 
88
88
  public String getProviderId() {
89
 
    return lassoJNI.Server_providerId_get(swigCPtr);
 
89
    return lassoJNI.Server_providerId_get(swigCPtr, this);
90
90
  }
91
91
 
92
92
  public void setPublicKey(String value) {
93
 
    lassoJNI.Server_publicKey_set(swigCPtr, value);
 
93
    lassoJNI.Server_publicKey_set(swigCPtr, this, value);
94
94
  }
95
95
 
96
96
  public String getPublicKey() {
97
 
    return lassoJNI.Server_publicKey_get(swigCPtr);
 
97
    return lassoJNI.Server_publicKey_get(swigCPtr, this);
98
98
  }
99
99
 
100
100
  public void setRole(int value) {
101
 
    lassoJNI.Server_role_set(swigCPtr, value);
 
101
    lassoJNI.Server_role_set(swigCPtr, this, value);
102
102
  }
103
103
 
104
104
  public int getRole() {
105
 
    return lassoJNI.Server_role_get(swigCPtr);
 
105
    return lassoJNI.Server_role_get(swigCPtr, this);
106
106
  }
107
107
 
108
108
  public StringList getProviderIds() {
109
 
    long cPtr = lassoJNI.Server_providerIds_get(swigCPtr);
 
109
    long cPtr = lassoJNI.Server_providerIds_get(swigCPtr, this);
110
110
    return (cPtr == 0) ? null : new StringList(cPtr, false);
111
111
  }
112
112
 
120
120
  }
121
121
 
122
122
  public boolean acceptHttpMethod(Provider remote_provider, int protocol_type, int http_method, boolean initiate_profile) {
123
 
    return lassoJNI.Server_acceptHttpMethod(swigCPtr, Provider.getCPtr(remote_provider), protocol_type, http_method, initiate_profile);
 
123
    return lassoJNI.Server_acceptHttpMethod(swigCPtr, this, Provider.getCPtr(remote_provider), remote_provider, protocol_type, http_method, initiate_profile);
124
124
  }
125
125
 
126
126
  public String getAssertionConsumerServiceUrl(String service_id) {
127
 
    return lassoJNI.Server_getAssertionConsumerServiceUrl(swigCPtr, service_id);
 
127
    return lassoJNI.Server_getAssertionConsumerServiceUrl(swigCPtr, this, service_id);
128
128
  }
129
129
 
130
130
  public String getBase64SuccinctId() {
131
 
    return lassoJNI.Server_getBase64SuccinctId(swigCPtr);
 
131
    return lassoJNI.Server_getBase64SuccinctId(swigCPtr, this);
132
132
  }
133
133
 
134
134
  public String getOrganization() {
135
 
    return lassoJNI.Server_getOrganization(swigCPtr);
 
135
    return lassoJNI.Server_getOrganization(swigCPtr, this);
136
136
  }
137
137
 
138
138
  public int getFirstHttpMethod(Provider remote_provider, int protocol_type) {
139
 
    return lassoJNI.Server_getFirstHttpMethod(swigCPtr, Provider.getCPtr(remote_provider), protocol_type);
 
139
    return lassoJNI.Server_getFirstHttpMethod(swigCPtr, this, Provider.getCPtr(remote_provider), remote_provider, protocol_type);
140
140
  }
141
141
 
142
142
  public String getMetadataOne(String name) {
143
 
    return lassoJNI.Server_getMetadataOne(swigCPtr, name);
 
143
    return lassoJNI.Server_getMetadataOne(swigCPtr, this, name);
144
144
  }
145
145
 
146
146
  public boolean hasProtocolProfile(int protocol_type, String protocol_profile) {
147
 
    return lassoJNI.Server_hasProtocolProfile(swigCPtr, protocol_type, protocol_profile);
 
147
    return lassoJNI.Server_hasProtocolProfile(swigCPtr, this, protocol_type, protocol_profile);
148
148
  }
149
149
 
150
150
  public int getProtocolConformance() {
151
 
    return lassoJNI.Server_getProtocolConformance(swigCPtr);
 
151
    return lassoJNI.Server_getProtocolConformance(swigCPtr, this);
152
152
  }
153
153
 
154
154
  public int addProvider(int role, String metadata, String publicKey, String caCertChain) {
155
 
    return lassoJNI.Server_addProvider(swigCPtr, role, metadata, publicKey, caCertChain);
 
155
    return lassoJNI.Server_addProvider(swigCPtr, this, role, metadata, publicKey, caCertChain);
 
156
  }
 
157
 
 
158
  public int setEncryptionPrivateKey(String filename) {
 
159
    return lassoJNI.Server_setEncryptionPrivateKey(swigCPtr, this, filename);
 
160
  }
 
161
 
 
162
  public int loadAffiliation(String filename) {
 
163
    return lassoJNI.Server_loadAffiliation(swigCPtr, this, filename);
156
164
  }
157
165
 
158
166
  public String dump() {
159
 
    return lassoJNI.Server_dump(swigCPtr);
 
167
    return lassoJNI.Server_dump(swigCPtr, this);
160
168
  }
161
169
 
162
170
  public Provider getProvider(String providerId) {
163
 
    long cPtr = lassoJNI.Server_getProvider(swigCPtr, providerId);
 
171
    long cPtr = lassoJNI.Server_getProvider(swigCPtr, this, providerId);
164
172
    return (cPtr == 0) ? null : new Provider(cPtr, false);
165
173
  }
166
174