Defines a SiteMinder Policy object.
Syntax
typedef struct Sm_PolicyApi_Policy_s
{
int iStructId;
char pszOid[BFSIZE];
char pszName[BFSIZE]; /* Required */
char pszDesc[BFSIZE];
char pszActiveExpr[BFSIZE];
bool bIsEnabled; /* Required */
char pszDomainOid[BFSIZE]; /* Required */
long nStartTime;
long nEndTime;
unsigned char pszTimeGrid[TIMESIZE];
Sm_PolicyApi_IPAddress_t *pIPAddress;
struct Sm_PolicyApi_Policy_s* next;
char pszVariableExpr[BFSIZE]
Sm_PolicyApi_Oid_t* pVariableList;
} Sm_PolicyApi_Policy_t;
|
Field |
Description |
|---|---|
|
iStructId |
Policy data structure ID, defined in Sm_PolicyApi_Structs_t. |
|
pszOid |
The object identifier of the Policy object. |
|
pszName |
Name of the Policy. |
|
pszDesc |
Brief description of the Policy. |
|
pszActiveExpr |
Active expression associated with the policy. The expression is a string of variable definitions in the following format. The non-alphanumeric characters are required characters. For example: In the format example:
|
|
bIsEnabled |
Flag to enable or disable the policy. |
|
pszDomainOid |
The object identifier of the domain. Required for domain-specific policy; ignored for global policy. |
|
nStartTime |
The time when the time restriction becomes effective. This value is stored in standard time_t format. Set nStartTime to 0 to start the time restriction immediately. |
|
nEndTime |
The time when the time restriction expires. This value is stored in standard time_t format. Set nEndTime to 0 to end the time restriction immediately. |
|
pszTimeGrid |
An array containing time restrictions for an entire week. |
|
pIPAddress |
IP address that user must use in order to gain access to the resources governed by the Policy. |
|
next |
Pointer to the next Policy structure. |
|
pszVariableExpr |
Unique object identifier that corresponds to a variable type. |
|
pVariableList |
Linked list of variable OIDs used by this expression. |
| Copyright © 2010 CA. All rights reserved. | Email CA about this topic |