/* ---------------------------------------------------------------------------- * 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 NameRegistration { private long swigCPtr; protected boolean swigCMemOwn; protected NameRegistration(long cPtr, boolean cMemoryOwn) { swigCMemOwn = cMemoryOwn; swigCPtr = cPtr; } protected static long getCPtr(NameRegistration obj) { return (obj == null) ? 0 : obj.swigCPtr; } protected void finalize() { delete(); } public synchronized void delete() { if(swigCPtr != 0 && swigCMemOwn) { swigCMemOwn = false; lassoJNI.delete_NameRegistration(swigCPtr); } swigCPtr = 0; } public String getArtifact() { return lassoJNI.NameRegistration_artifact_get(swigCPtr, this); } public void setArtifactMessage(String value) { lassoJNI.NameRegistration_artifactMessage_set(swigCPtr, this, value); } public String getArtifactMessage() { return lassoJNI.NameRegistration_artifactMessage_get(swigCPtr, this); } public void setIdentity(Identity value) { lassoJNI.NameRegistration_identity_set(swigCPtr, this, Identity.getCPtr(value), value); } public Identity getIdentity() { long cPtr = lassoJNI.NameRegistration_identity_get(swigCPtr, this); return (cPtr == 0) ? null : new Identity(cPtr, false); } public boolean getIsIdentityDirty() { return lassoJNI.NameRegistration_isIdentityDirty_get(swigCPtr, this); } public boolean getIsSessionDirty() { return lassoJNI.NameRegistration_isSessionDirty_get(swigCPtr, this); } public String getMsgBody() { return lassoJNI.NameRegistration_msgBody_get(swigCPtr, this); } public String getMsgRelayState() { return lassoJNI.NameRegistration_msgRelayState_get(swigCPtr, this); } public String getMsgUrl() { return lassoJNI.NameRegistration_msgUrl_get(swigCPtr, this); } public void setNameIdentifier(Node value) { lassoJNI.NameRegistration_nameIdentifier_set(swigCPtr, this, Node.getCPtr(value), value); } public Node getNameIdentifier() { long cPtr = lassoJNI.NameRegistration_nameIdentifier_get(swigCPtr, this); return (cPtr == 0) ? null : (Node) lassoJNI.downcast_node(cPtr, null); } public void setRemoteProviderId(String value) { lassoJNI.NameRegistration_remoteProviderId_set(swigCPtr, this, value); } public String getRemoteProviderId() { return lassoJNI.NameRegistration_remoteProviderId_get(swigCPtr, this); } public void setRequest(Node value) { lassoJNI.NameRegistration_request_set(swigCPtr, this, Node.getCPtr(value), value); } public Node getRequest() { long cPtr = lassoJNI.NameRegistration_request_get(swigCPtr, this); return (cPtr == 0) ? null : (Node) lassoJNI.downcast_node(cPtr, null); } public void setResponse(Node value) { lassoJNI.NameRegistration_response_set(swigCPtr, this, Node.getCPtr(value), value); } public Node getResponse() { long cPtr = lassoJNI.NameRegistration_response_get(swigCPtr, this); return (cPtr == 0) ? null : (Node) lassoJNI.downcast_node(cPtr, null); } public void setServer(Server value) { lassoJNI.NameRegistration_server_set(swigCPtr, this, Server.getCPtr(value), value); } public Server getServer() { long cPtr = lassoJNI.NameRegistration_server_get(swigCPtr, this); return (cPtr == 0) ? null : new Server(cPtr, false); } public void setSession(Session value) { lassoJNI.NameRegistration_session_set(swigCPtr, this, Session.getCPtr(value), value); } public Session getSession() { long cPtr = lassoJNI.NameRegistration_session_get(swigCPtr, this); return (cPtr == 0) ? null : new Session(cPtr, false); } public void setOldNameIdentifier(SamlNameIdentifier value) { lassoJNI.NameRegistration_oldNameIdentifier_set(swigCPtr, this, SamlNameIdentifier.getCPtr(value), value); } public SamlNameIdentifier getOldNameIdentifier() { long cPtr = lassoJNI.NameRegistration_oldNameIdentifier_get(swigCPtr, this); return (cPtr == 0) ? null : new SamlNameIdentifier(cPtr, false); } public NameRegistration(Server server) { this(lassoJNI.new_NameRegistration(Server.getCPtr(server), server), true); } public static NameRegistration newFromDump(Server server, String dump) { long cPtr = lassoJNI.NameRegistration_newFromDump(Server.getCPtr(server), server, dump); return (cPtr == 0) ? null : new NameRegistration(cPtr, true); } public int setIdentityFromDump(String dump) { return lassoJNI.NameRegistration_setIdentityFromDump(swigCPtr, this, dump); } public int setSessionFromDump(String dump) { return lassoJNI.NameRegistration_setSessionFromDump(swigCPtr, this, dump); } public int buildRequestMsg() { return lassoJNI.NameRegistration_buildRequestMsg(swigCPtr, this); } public int buildResponseMsg() { return lassoJNI.NameRegistration_buildResponseMsg(swigCPtr, this); } public String dump() { return lassoJNI.NameRegistration_dump(swigCPtr, this); } public int initRequest(String remoteProviderId, int httpMethod) { return lassoJNI.NameRegistration_initRequest(swigCPtr, this, remoteProviderId, httpMethod); } public int processRequestMsg(String requestMsg) { return lassoJNI.NameRegistration_processRequestMsg(swigCPtr, this, requestMsg); } public int processResponseMsg(String responseMsg) { return lassoJNI.NameRegistration_processResponseMsg(swigCPtr, this, responseMsg); } public int validateRequest() { return lassoJNI.NameRegistration_validateRequest(swigCPtr, this); } }