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
|
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.28
*
* 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 Provider {
private long swigCPtr;
protected boolean swigCMemOwn;
protected Provider(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(Provider obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
protected void finalize() {
delete();
}
public void delete() {
if(swigCPtr != 0 && swigCMemOwn) {
swigCMemOwn = false;
lassoJNI.delete_Provider(swigCPtr);
}
swigCPtr = 0;
}
public void setCaCertChain(String value) {
lassoJNI.Provider_caCertChain_set(swigCPtr, value);
}
public String getCaCertChain() {
return lassoJNI.Provider_caCertChain_get(swigCPtr);
}
public void setMetadataFilename(String value) {
lassoJNI.Provider_metadataFilename_set(swigCPtr, value);
}
public String getMetadataFilename() {
return lassoJNI.Provider_metadataFilename_get(swigCPtr);
}
public void setProviderId(String value) {
lassoJNI.Provider_providerId_set(swigCPtr, value);
}
public String getProviderId() {
return lassoJNI.Provider_providerId_get(swigCPtr);
}
public void setPublicKey(String value) {
lassoJNI.Provider_publicKey_set(swigCPtr, value);
}
public String getPublicKey() {
return lassoJNI.Provider_publicKey_get(swigCPtr);
}
public void setRole(int value) {
lassoJNI.Provider_role_set(swigCPtr, value);
}
public int getRole() {
return lassoJNI.Provider_role_get(swigCPtr);
}
public Provider(int role, String metadata, String public_key, String ca_cert_chain) {
this(lassoJNI.new_Provider(role, metadata, public_key, ca_cert_chain), true);
}
public static Provider newFromDump(String dump) {
long cPtr = lassoJNI.Provider_newFromDump(dump);
return (cPtr == 0) ? null : new Provider(cPtr, true);
}
public String dump() {
return lassoJNI.Provider_dump(swigCPtr);
}
public boolean acceptHttpMethod(Provider remote_provider, int protocol_type, int http_method, boolean initiate_profile) {
return lassoJNI.Provider_acceptHttpMethod(swigCPtr, Provider.getCPtr(remote_provider), protocol_type, http_method, initiate_profile);
}
public String getAssertionConsumerServiceUrl(String service_id) {
return lassoJNI.Provider_getAssertionConsumerServiceUrl(swigCPtr, service_id);
}
public String getBase64SuccinctId() {
return lassoJNI.Provider_getBase64SuccinctId(swigCPtr);
}
public String getOrganization() {
return lassoJNI.Provider_getOrganization(swigCPtr);
}
public int getFirstHttpMethod(Provider remote_provider, int protocol_type) {
return lassoJNI.Provider_getFirstHttpMethod(swigCPtr, Provider.getCPtr(remote_provider), protocol_type);
}
public String getMetadataOne(String name) {
return lassoJNI.Provider_getMetadataOne(swigCPtr, name);
}
public boolean hasProtocolProfile(int protocol_type, String protocol_profile) {
return lassoJNI.Provider_hasProtocolProfile(swigCPtr, protocol_type, protocol_profile);
}
public int getProtocolConformance() {
return lassoJNI.Provider_getProtocolConformance(swigCPtr);
}
}
|