~ubuntu-branches/ubuntu/gutsy/lasso/gutsy-security

« back to all changes in this revision

Viewing changes to java/Provider.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
/* ----------------------------------------------------------------------------
 
2
 * This file was automatically generated by SWIG (http://www.swig.org).
 
3
 * Version 1.3.24
 
4
 *
 
5
 * Do not make changes to this file unless you know what you are doing--modify
 
6
 * the SWIG interface file instead.
 
7
 * ----------------------------------------------------------------------------- */
 
8
 
 
9
package com.entrouvert.lasso;
 
10
 
 
11
public class Provider {
 
12
  private long swigCPtr;
 
13
  protected boolean swigCMemOwn;
 
14
 
 
15
  protected Provider(long cPtr, boolean cMemoryOwn) {
 
16
    swigCMemOwn = cMemoryOwn;
 
17
    swigCPtr = cPtr;
 
18
  }
 
19
 
 
20
  protected static long getCPtr(Provider obj) {
 
21
    return (obj == null) ? 0 : obj.swigCPtr;
 
22
  }
 
23
 
 
24
  protected Provider() {
 
25
    this(0, false);
 
26
  }
 
27
 
 
28
  protected void finalize() {
 
29
    delete();
 
30
  }
 
31
 
 
32
  public void delete() {
 
33
    if(swigCPtr != 0 && swigCMemOwn) {
 
34
      swigCMemOwn = false;
 
35
      lassoJNI.delete_Provider(swigCPtr);
 
36
    }
 
37
    swigCPtr = 0;
 
38
  }
 
39
 
 
40
  public void setCaCertChain(String ca_cert_chain) {
 
41
    lassoJNI.set_Provider_caCertChain(swigCPtr, ca_cert_chain);
 
42
  }
 
43
 
 
44
  public String getCaCertChain() {
 
45
    return lassoJNI.get_Provider_caCertChain(swigCPtr);
 
46
  }
 
47
 
 
48
  public void setMetadataFilename(String metadata_filename) {
 
49
    lassoJNI.set_Provider_metadataFilename(swigCPtr, metadata_filename);
 
50
  }
 
51
 
 
52
  public String getMetadataFilename() {
 
53
    return lassoJNI.get_Provider_metadataFilename(swigCPtr);
 
54
  }
 
55
 
 
56
  public void setProviderId(String ProviderID) {
 
57
    lassoJNI.set_Provider_providerId(swigCPtr, ProviderID);
 
58
  }
 
59
 
 
60
  public String getProviderId() {
 
61
    return lassoJNI.get_Provider_providerId(swigCPtr);
 
62
  }
 
63
 
 
64
  public void setPublicKey(String public_key) {
 
65
    lassoJNI.set_Provider_publicKey(swigCPtr, public_key);
 
66
  }
 
67
 
 
68
  public String getPublicKey() {
 
69
    return lassoJNI.get_Provider_publicKey(swigCPtr);
 
70
  }
 
71
 
 
72
  public void setRole(int role) {
 
73
    lassoJNI.set_Provider_role(swigCPtr, role);
 
74
  }
 
75
 
 
76
  public int getRole() {
 
77
    return lassoJNI.get_Provider_role(swigCPtr);
 
78
  }
 
79
 
 
80
  public Provider(int role, String metadata, String public_key, String ca_cert_chain) {
 
81
    this(lassoJNI.new_Provider(role, metadata, public_key, ca_cert_chain), true);
 
82
  }
 
83
 
 
84
  public static Provider newFromDump(String dump) {
 
85
    long cPtr = lassoJNI.Provider_newFromDump(dump);
 
86
    return (cPtr == 0) ? null : new Provider(cPtr, true);
 
87
  }
 
88
 
 
89
  public String dump() {
 
90
    return lassoJNI.Provider_dump(swigCPtr);
 
91
  }
 
92
 
 
93
  public boolean acceptHttpMethod(Provider remote_provider, SWIGTYPE_p_LassoMdProtocolType protocol_type, int http_method, boolean initiate_profile) {
 
94
    return lassoJNI.Provider_acceptHttpMethod(swigCPtr, Provider.getCPtr(remote_provider), SWIGTYPE_p_LassoMdProtocolType.getCPtr(protocol_type), http_method, initiate_profile);
 
95
  }
 
96
 
 
97
  public String getAssertionConsumerServiceUrl(String service_id) {
 
98
    return lassoJNI.Provider_getAssertionConsumerServiceUrl(swigCPtr, service_id);
 
99
  }
 
100
 
 
101
  public String getBase64SuccinctId() {
 
102
    return lassoJNI.Provider_getBase64SuccinctId(swigCPtr);
 
103
  }
 
104
 
 
105
  public String getOrganization() {
 
106
    return lassoJNI.Provider_getOrganization(swigCPtr);
 
107
  }
 
108
 
 
109
  public int getFirstHttpMethod(Provider remote_provider, SWIGTYPE_p_LassoMdProtocolType protocol_type) {
 
110
    return lassoJNI.Provider_getFirstHttpMethod(swigCPtr, Provider.getCPtr(remote_provider), SWIGTYPE_p_LassoMdProtocolType.getCPtr(protocol_type));
 
111
  }
 
112
 
 
113
  public String getMetadataOne(String name) {
 
114
    return lassoJNI.Provider_getMetadataOne(swigCPtr, name);
 
115
  }
 
116
 
 
117
  public boolean hasProtocolProfile(SWIGTYPE_p_LassoMdProtocolType protocol_type, String protocol_profile) {
 
118
    return lassoJNI.Provider_hasProtocolProfile(swigCPtr, SWIGTYPE_p_LassoMdProtocolType.getCPtr(protocol_type), protocol_profile);
 
119
  }
 
120
 
 
121
}