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

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

  protected void finalize() {
    delete();
  }

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

  public void setAdvice(SamlAdvice value) {
    lassoJNI.LibAssertion_advice_set(swigCPtr, this, SamlAdvice.getCPtr(value), value);
  }

  public SamlAdvice getAdvice() {
    long cPtr = lassoJNI.LibAssertion_advice_get(swigCPtr, this);
    return (cPtr == 0) ? null : new SamlAdvice(cPtr, false);
  }

  public void setAssertionId(String value) {
    lassoJNI.LibAssertion_assertionId_set(swigCPtr, this, value);
  }

  public String getAssertionId() {
    return lassoJNI.LibAssertion_assertionId_get(swigCPtr, this);
  }

  public void setAttributeStatement(SamlAttributeStatement value) {
    lassoJNI.LibAssertion_attributeStatement_set(swigCPtr, this, SamlAttributeStatement.getCPtr(value), value);
  }

  public SamlAttributeStatement getAttributeStatement() {
    long cPtr = lassoJNI.LibAssertion_attributeStatement_get(swigCPtr, this);
    return (cPtr == 0) ? null : new SamlAttributeStatement(cPtr, false);
  }

  public void setAuthenticationStatement(SamlAuthenticationStatement value) {
    lassoJNI.LibAssertion_authenticationStatement_set(swigCPtr, this, SamlAuthenticationStatement.getCPtr(value), value);
  }

  public SamlAuthenticationStatement getAuthenticationStatement() {
    long cPtr = lassoJNI.LibAssertion_authenticationStatement_get(swigCPtr, this);
    return (cPtr == 0) ? null : new SamlAuthenticationStatement(cPtr, false);
  }

  public void setCertificateFile(String value) {
    lassoJNI.LibAssertion_certificateFile_set(swigCPtr, this, value);
  }

  public String getCertificateFile() {
    return lassoJNI.LibAssertion_certificateFile_get(swigCPtr, this);
  }

  public void setConditions(SamlConditions value) {
    lassoJNI.LibAssertion_conditions_set(swigCPtr, this, SamlConditions.getCPtr(value), value);
  }

  public SamlConditions getConditions() {
    long cPtr = lassoJNI.LibAssertion_conditions_get(swigCPtr, this);
    return (cPtr == 0) ? null : new SamlConditions(cPtr, false);
  }

  public void setIssueInstant(String value) {
    lassoJNI.LibAssertion_issueInstant_set(swigCPtr, this, value);
  }

  public String getIssueInstant() {
    return lassoJNI.LibAssertion_issueInstant_get(swigCPtr, this);
  }

  public void setIssuer(String value) {
    lassoJNI.LibAssertion_issuer_set(swigCPtr, this, value);
  }

  public String getIssuer() {
    return lassoJNI.LibAssertion_issuer_get(swigCPtr, this);
  }

  public void setMajorVersion(int value) {
    lassoJNI.LibAssertion_majorVersion_set(swigCPtr, this, value);
  }

  public int getMajorVersion() {
    return lassoJNI.LibAssertion_majorVersion_get(swigCPtr, this);
  }

  public void setMinorVersion(int value) {
    lassoJNI.LibAssertion_minorVersion_set(swigCPtr, this, value);
  }

  public int getMinorVersion() {
    return lassoJNI.LibAssertion_minorVersion_get(swigCPtr, this);
  }

  public void setPrivateKeyFile(String value) {
    lassoJNI.LibAssertion_privateKeyFile_set(swigCPtr, this, value);
  }

  public String getPrivateKeyFile() {
    return lassoJNI.LibAssertion_privateKeyFile_get(swigCPtr, this);
  }

  public void setSignMethod(int value) {
    lassoJNI.LibAssertion_signMethod_set(swigCPtr, this, value);
  }

  public int getSignMethod() {
    return lassoJNI.LibAssertion_signMethod_get(swigCPtr, this);
  }

  public void setSignType(SWIGTYPE_p_LassoSignatureType value) {
    lassoJNI.LibAssertion_signType_set(swigCPtr, this, SWIGTYPE_p_LassoSignatureType.getCPtr(value));
  }

  public SWIGTYPE_p_LassoSignatureType getSignType() {
    return new SWIGTYPE_p_LassoSignatureType(lassoJNI.LibAssertion_signType_get(swigCPtr, this), true);
  }

  public void setSubjectStatement(SamlSubjectStatement value) {
    lassoJNI.LibAssertion_subjectStatement_set(swigCPtr, this, SamlSubjectStatement.getCPtr(value), value);
  }

  public SamlSubjectStatement getSubjectStatement() {
    long cPtr = lassoJNI.LibAssertion_subjectStatement_get(swigCPtr, this);
    return (cPtr == 0) ? null : new SamlSubjectStatement(cPtr, false);
  }

  public LibAssertion() {
    this(lassoJNI.new_LibAssertion(), true);
  }

  public static LibAssertion newFull(String issuer, String requestId, String audience, String notBefore, String notOnOrAfter) {
    long cPtr = lassoJNI.LibAssertion_newFull(issuer, requestId, audience, notBefore, notOnOrAfter);
    return (cPtr == 0) ? null : new LibAssertion(cPtr, true);
  }

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

}