/* ---------------------------------------------------------------------------- * 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 Lecp { private long swigCPtr; protected boolean swigCMemOwn; protected Lecp(long cPtr, boolean cMemoryOwn) { swigCMemOwn = cMemoryOwn; swigCPtr = cPtr; } protected static long getCPtr(Lecp obj) { return (obj == null) ? 0 : obj.swigCPtr; } protected void finalize() { delete(); } public synchronized void delete() { if(swigCPtr != 0 && swigCMemOwn) { swigCMemOwn = false; lassoJNI.delete_Lecp(swigCPtr); } swigCPtr = 0; } public String getArtifact() { return lassoJNI.Lecp_artifact_get(swigCPtr, this); } public void setArtifactMessage(String value) { lassoJNI.Lecp_artifactMessage_set(swigCPtr, this, value); } public String getArtifactMessage() { return lassoJNI.Lecp_artifactMessage_get(swigCPtr, this); } public void setIdentity(Identity value) { lassoJNI.Lecp_identity_set(swigCPtr, this, Identity.getCPtr(value), value); } public Identity getIdentity() { long cPtr = lassoJNI.Lecp_identity_get(swigCPtr, this); return (cPtr == 0) ? null : new Identity(cPtr, false); } public boolean getIsIdentityDirty() { return lassoJNI.Lecp_isIdentityDirty_get(swigCPtr, this); } public boolean getIsSessionDirty() { return lassoJNI.Lecp_isSessionDirty_get(swigCPtr, this); } public String getMsgBody() { return lassoJNI.Lecp_msgBody_get(swigCPtr, this); } public String getMsgRelayState() { return lassoJNI.Lecp_msgRelayState_get(swigCPtr, this); } public String getMsgUrl() { return lassoJNI.Lecp_msgUrl_get(swigCPtr, this); } public void setNameIdentifier(Node value) { lassoJNI.Lecp_nameIdentifier_set(swigCPtr, this, Node.getCPtr(value), value); } public Node getNameIdentifier() { long cPtr = lassoJNI.Lecp_nameIdentifier_get(swigCPtr, this); return (cPtr == 0) ? null : (Node) lassoJNI.downcast_node(cPtr, null); } public void setRemoteProviderId(String value) { lassoJNI.Lecp_remoteProviderId_set(swigCPtr, this, value); } public String getRemoteProviderId() { return lassoJNI.Lecp_remoteProviderId_get(swigCPtr, this); } public void setRequest(Node value) { lassoJNI.Lecp_request_set(swigCPtr, this, Node.getCPtr(value), value); } public Node getRequest() { long cPtr = lassoJNI.Lecp_request_get(swigCPtr, this); return (cPtr == 0) ? null : (Node) lassoJNI.downcast_node(cPtr, null); } public void setResponse(Node value) { lassoJNI.Lecp_response_set(swigCPtr, this, Node.getCPtr(value), value); } public Node getResponse() { long cPtr = lassoJNI.Lecp_response_get(swigCPtr, this); return (cPtr == 0) ? null : (Node) lassoJNI.downcast_node(cPtr, null); } public void setServer(Server value) { lassoJNI.Lecp_server_set(swigCPtr, this, Server.getCPtr(value), value); } public Server getServer() { long cPtr = lassoJNI.Lecp_server_get(swigCPtr, this); return (cPtr == 0) ? null : new Server(cPtr, false); } public void setSession(Session value) { lassoJNI.Lecp_session_set(swigCPtr, this, Session.getCPtr(value), value); } public Session getSession() { long cPtr = lassoJNI.Lecp_session_get(swigCPtr, this); return (cPtr == 0) ? null : new Session(cPtr, false); } public Lecp(Server server) { this(lassoJNI.new_Lecp(Server.getCPtr(server), server), true); } public int setIdentityFromDump(String dump) { return lassoJNI.Lecp_setIdentityFromDump(swigCPtr, this, dump); } public int setSessionFromDump(String dump) { return lassoJNI.Lecp_setSessionFromDump(swigCPtr, this, dump); } public int buildAssertion(String authenticationMethod, String authenticationInstant, String reauthenticateOnOrAfter, String notBefore, String notOnOrAfter) { return lassoJNI.Lecp_buildAssertion(swigCPtr, this, authenticationMethod, authenticationInstant, reauthenticateOnOrAfter, notBefore, notOnOrAfter); } public int setResourceId(String content) { return lassoJNI.Lecp_setResourceId(swigCPtr, this, content); } public int validateRequestMsg(boolean authenticationResult, boolean isConsentObtained) { return lassoJNI.Lecp_validateRequestMsg(swigCPtr, this, authenticationResult, isConsentObtained); } public int buildAuthnRequestEnvelopeMsg() { return lassoJNI.Lecp_buildAuthnRequestEnvelopeMsg(swigCPtr, this); } public int buildAuthnRequestMsg() { return lassoJNI.Lecp_buildAuthnRequestMsg(swigCPtr, this); } public int buildAuthnResponseEnvelopeMsg() { return lassoJNI.Lecp_buildAuthnResponseEnvelopeMsg(swigCPtr, this); } public int buildAuthnResponseMsg() { return lassoJNI.Lecp_buildAuthnResponseMsg(swigCPtr, this); } public int initAuthnRequest(String remoteProviderId) { return lassoJNI.Lecp_initAuthnRequest(swigCPtr, this, remoteProviderId); } public int processAuthnRequestEnvelopeMsg(String requestMsg) { return lassoJNI.Lecp_processAuthnRequestEnvelopeMsg(swigCPtr, this, requestMsg); } public int processAuthnRequestMsg(String authnRequestMsg) { return lassoJNI.Lecp_processAuthnRequestMsg(swigCPtr, this, authnRequestMsg); } public int processAuthnResponseEnvelopeMsg(String responseMsg) { return lassoJNI.Lecp_processAuthnResponseEnvelopeMsg(swigCPtr, this, responseMsg); } }