Top |
Utility functions for ID-WSF 1.0Utility functions for ID-WSF 1.0 — Misc functions used in the implementation of ID-WSF 1.0 |
gboolean | lasso_security_mech_id_is_null_authentication () |
gboolean | lasso_security_mech_id_is_x509_authentication () |
gboolean | lasso_security_mech_id_is_saml_authentication () |
gboolean | lasso_security_mech_id_is_bearer_authentication () |
lasso_error_t | lasso_login_set_encryptedResourceId () |
lasso_error_t | lasso_login_set_resourceId () |
LassoDiscoServiceInstance * | lasso_server_get_service () |
lasso_error_t | lasso_server_add_service () |
lasso_error_t | lasso_server_add_service_from_dump () |
lasso_error_t | lasso_identity_add_resource_offering () |
gboolean | lasso_identity_remove_resource_offering () |
GList * | lasso_identity_get_offerings () |
LassoDiscoResourceOffering * | lasso_identity_get_resource_offering () |
LassoSoapBindingProvider * | lasso_soap_binding_get_provider () |
LassoSoapBindingCorrelation * | lasso_soap_binding_get_correlation () |
void | lasso_register_dst_service () |
char * | lasso_get_prefix_for_dst_service_href () |
gboolean
lasso_security_mech_id_is_null_authentication
(const gchar *security_mech_id
);
gboolean
lasso_security_mech_id_is_x509_authentication
(const gchar *security_mech_id
);
gboolean
lasso_security_mech_id_is_saml_authentication
(const gchar *security_mech_id
);
gboolean
lasso_security_mech_id_is_bearer_authentication
(const gchar *security_mech_id
);
lasso_error_t lasso_login_set_encryptedResourceId (LassoLogin *login
,LassoDiscoEncryptedResourceID *encryptedResourceId
);
Set the LassoDiscoEncryptedResourceID to place the next produced assertions as an ID-WSF 1.0 bootstrap.
login |
a LassoLogin object |
|
encryptedResourceId |
the LassoDiscoEncryptedResourceID to setup in the login object |
lasso_error_t lasso_login_set_resourceId (LassoLogin *login
,const char *content
);
Set the resourceId to place in the next produced assertion for ID-WSF bootstrap.
LassoDiscoServiceInstance * lasso_server_get_service (LassoServer *server
,const gchar *serviceType
);
Look up a disco service instance corresponding to this service type.
the LassoDiscoServiceInstance, NULL if it was not found. The LassoDiscoServiceInstance is owned by Lasso and should not be freed.
[transfer none][allow-none]
lasso_error_t lasso_server_add_service (LassoServer *server
,LassoNode *service
);
Add a service to the registry of service of this LassoServer object.
lasso_error_t lasso_server_add_service_from_dump (LassoServer *server
,const gchar *dump
);
An utility function that parse a LassoNode dump an try to add it as a service using lasso_server_add_service.
0 if succesfull, LASSO_PARAM_ERROR_BAD_TYPE_OF_NULL_OBJECT if said dump is not a LassoNode or is not of the righ type, LASSO_PARAM_ERROR_INVALID_VALUE if dump is NULL.
lasso_error_t lasso_identity_add_resource_offering (LassoIdentity *identity
,LassoDiscoResourceOffering *offering
);
Add a new offering to the identity object to be retrieved later by
lasso_identity_get_offerings()
or lasso_identity_get_resource_offering()
.
It also allocate an entryId identifier for the offering, look into
offering->entryID to get it after this call.
gboolean lasso_identity_remove_resource_offering (LassoIdentity *identity
,const char *entryID
);
Remove resource offering about identity with entryID
GList * lasso_identity_get_offerings (LassoIdentity *identity
,const char *service_type
);
Returns a list of LassoDiscoResourceOffering associated to this service type.
a newly allocated list of LassoDiscoResourceOffering.
[transfer full][element-type LassoDiscoResourceOffering]
LassoDiscoResourceOffering * lasso_identity_get_resource_offering (LassoIdentity *identity
,const char *entryID
);
LassoSoapBindingProvider *
lasso_soap_binding_get_provider (LassoSoapEnvelope *envelope
);
Look up the sb:Provider header in the SOAP message envelope.
LassoSoapBindingCorrelation *
lasso_soap_binding_get_correlation (LassoSoapEnvelope *evelope
);
Look up the sb:Correlation header in the SOAP message envelope.
void lasso_register_dst_service (const char *prefix
,const char *href
);
Registers prefix and href of a custom data service template service.