add methods lasso_build_full_federationTerminationNotification
This commit is contained in:
parent
26d71ad343
commit
d121481964
|
@ -1,21 +1,52 @@
|
|||
#include <lasso/protocols/federation_termination_notification.h>
|
||||
|
||||
LassoNode *lasso_build_federationTerminationNotification(const xmlChar *providerID,
|
||||
LassoNode *nameIdentifier,
|
||||
const xmlChar *consent)
|
||||
LassoNode *lasso_build_full_federationTerminationNotification(const xmlChar *requestID,
|
||||
const xmlChar *majorVersion,
|
||||
const xmlChar *minorVersion,
|
||||
const xmlChar *issueInstant,
|
||||
const xmlChar *providerID,
|
||||
LassoNode *nameIdentifier,
|
||||
const xmlChar *consent)
|
||||
{
|
||||
LassoNode *notification;
|
||||
|
||||
notification = lasso_lib_federation_termination_notification_new();
|
||||
|
||||
lasso_samlp_request_abstract_set_requestID(LASSO_SAMLP_REQUEST_ABSTRACT(notification),
|
||||
(const xmlChar *)lasso_build_unique_id(32));
|
||||
lasso_samlp_request_abstract_set_minorVersion(LASSO_SAMLP_REQUEST_ABSTRACT(notification),
|
||||
lassoLibMinorVersion);
|
||||
lasso_samlp_request_abstract_set_issueInstance(LASSO_SAMLP_REQUEST_ABSTRACT(notification),
|
||||
lasso_get_current_time());
|
||||
lasso_samlp_request_abstract_set_majorVersion(LASSO_SAMLP_REQUEST_ABSTRACT(notification),
|
||||
lassoLibMajorVersion);
|
||||
if(requestID!=NULL){
|
||||
lasso_samlp_request_abstract_set_requestID(LASSO_SAMLP_REQUEST_ABSTRACT(notification),
|
||||
requestID);
|
||||
}
|
||||
else{
|
||||
lasso_samlp_request_abstract_set_requestID(LASSO_SAMLP_REQUEST_ABSTRACT(notification),
|
||||
(const xmlChar *)lasso_build_unique_id(32));
|
||||
}
|
||||
|
||||
if(majorVersion!=NULL){
|
||||
lasso_samlp_request_abstract_set_majorVersion(LASSO_SAMLP_REQUEST_ABSTRACT(notification),
|
||||
majorVersion);
|
||||
}
|
||||
else{
|
||||
lasso_samlp_request_abstract_set_majorVersion(LASSO_SAMLP_REQUEST_ABSTRACT(notification),
|
||||
lassoLibMajorVersion);
|
||||
}
|
||||
|
||||
if(minorVersion!=NULL){
|
||||
lasso_samlp_request_abstract_set_minorVersion(LASSO_SAMLP_REQUEST_ABSTRACT(notification),
|
||||
minorVersion);
|
||||
}
|
||||
else{
|
||||
lasso_samlp_request_abstract_set_minorVersion(LASSO_SAMLP_REQUEST_ABSTRACT(notification),
|
||||
lassoLibMinorVersion);
|
||||
}
|
||||
|
||||
if(issueInstant!=NULL){
|
||||
lasso_samlp_request_abstract_set_issueInstance(LASSO_SAMLP_REQUEST_ABSTRACT(notification),
|
||||
issueInstant);
|
||||
}
|
||||
else{
|
||||
lasso_samlp_request_abstract_set_issueInstance(LASSO_SAMLP_REQUEST_ABSTRACT(notification),
|
||||
lasso_get_current_time());
|
||||
}
|
||||
|
||||
lasso_lib_federation_termination_notification_set_providerID(LASSO_LIB_FEDERATION_TERMINATION_NOTIFICATION(notification), providerID);
|
||||
|
||||
|
@ -27,3 +58,19 @@ LassoNode *lasso_build_federationTerminationNotification(const xmlChar *provider
|
|||
|
||||
return(notification);
|
||||
}
|
||||
|
||||
LassoNode *lasso_build_federationTerminationNotification(const xmlChar *providerID,
|
||||
LassoNode *nameIdentifier,
|
||||
const xmlChar *consent)
|
||||
{
|
||||
LassoNode *notification;
|
||||
|
||||
notification = lasso_build_full_federationTerminationNotification(NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
providerID,
|
||||
nameIdentifier,
|
||||
consent);
|
||||
return(notification);
|
||||
}
|
||||
|
|
|
@ -28,6 +28,14 @@ e Place, Suite 330, Boston, MA 02111-1307 USA
|
|||
|
||||
#include <lasso/lasso.h>
|
||||
|
||||
LassoNode *lasso_build_full_federationTerminationNotification(const xmlChar *requestID,
|
||||
const xmlChar *majorVersion,
|
||||
const xmlChar *minorVersion,
|
||||
const xmlChar *issueInstant,
|
||||
const xmlChar *providerID,
|
||||
LassoNode *nameIdentifier,
|
||||
const xmlChar *consent);
|
||||
|
||||
LassoNode *lasso_build_federationTerminationNotification(const xmlChar *providerID,
|
||||
LassoNode *nameIdentifier,
|
||||
const xmlChar *consent);
|
||||
|
|
Loading…
Reference in New Issue