~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
/* ----------------------------------------------------------------------------
 * 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 LibAuthnResponse extends SamlpResponse {
  protected LibAuthnResponse(long cPtr, boolean cMemoryOwn) {
    super(cPtr, cMemoryOwn);
  }

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

  protected void finalize() {
    delete();
  }

  public void delete() {
  super.delete();
}

  public void setConsent(String value) {
    lassoJNI.LibAuthnResponse_consent_set(swigCPtr, this, value);
  }

  public String getConsent() {
    return lassoJNI.LibAuthnResponse_consent_get(swigCPtr, this);
  }

  public void setProviderId(String value) {
    lassoJNI.LibAuthnResponse_providerId_set(swigCPtr, this, value);
  }

  public String getProviderId() {
    return lassoJNI.LibAuthnResponse_providerId_get(swigCPtr, this);
  }

  public void setRelayState(String value) {
    lassoJNI.LibAuthnResponse_relayState_set(swigCPtr, this, value);
  }

  public String getRelayState() {
    return lassoJNI.LibAuthnResponse_relayState_get(swigCPtr, this);
  }

  public void setExtension(StringList value) {
    lassoJNI.LibAuthnResponse_extension_set(swigCPtr, this, StringList.getCPtr(value), value);
  }

  public StringList getExtension() {
    long cPtr = lassoJNI.LibAuthnResponse_extension_get(swigCPtr, this);
    return (cPtr == 0) ? null : new StringList(cPtr, false);
  }

  public void setStatus(SamlpStatus value) {
    lassoJNI.LibAuthnResponse_status_set(swigCPtr, this, SamlpStatus.getCPtr(value), value);
  }

  public SamlpStatus getStatus() {
    long cPtr = lassoJNI.LibAuthnResponse_status_get(swigCPtr, this);
    return (cPtr == 0) ? null : new SamlpStatus(cPtr, false);
  }

  public LibAuthnResponse(String providerID, LibAuthnRequest request) {
    this(lassoJNI.new_LibAuthnResponse(providerID, LibAuthnRequest.getCPtr(request), request), true);
  }

  public String dump() {
    return lassoJNI.LibAuthnResponse_dump(swigCPtr, this);
  }

}