Adds a new SAML 2.0 Service Provider object or modifies an existing one.
If a Service Provider cannot be created, any associated objects created in the policy store during the attempt will be rolled back.
Type
SAML 2.0 Configuration function, domain scope.
Syntax
int SM_EXTERN Sm_PolicyApi_AddSAMLServiceProvider ( void* pSessionHandle, Sm_PolicyApi_SAMLSP_t* pstructSAMLSP, const bool bUpdate, char** pszErrMsg );
Parameter |
I/O |
Description |
---|---|---|
pSessionHandle |
I |
A pointer to an internal Policy Management API data structure. The structure holds information about the administrator session and the client session. |
pstructSAMLSP |
I |
A pointer to a completed Service Provider structure. |
bUpdate |
I |
Specifies whether an update operation should be performed on an existing object. |
pszErrMsg |
O |
String containing an error message if the Service Provider is not added or updated successfully. The Policy Management API allocates memory for this parameter dynamically. It is the responsibility of the custom application to free it using a call to Sm_PolicyApi_FreeString(). If Sm_PolicyApi_MissingProperty or Sm_PolicyApi_InvalidProp are returned, this field contains the name of the property that is missing or invalid. |
Returns
Copyright © 2014 CA.
All rights reserved.
|
|