Previous Topic: Sm_PolicyApi_UserPasswordState_t

Next Topic: Variable Definition

Sm_PolicyApi_Variable_t

Defines a variable object that can be used in a variable expression for a policy or a response. Variable objects are managed by the Variable Functions.

A variable is a dynamic object that is resolved to a value during an authorization request. The variables appear within an active expression defined for a policy or a response.

Variables are used as follows:

Syntax

typedef struct Sm_PolicyApi_Variable_s
{
   int iStructId;
   char pszOid[BFSIZE];
   char pszName[BFSIZE];
   char pszDesc[BFSIZE];
   char pszVariableTypeOid[BFSIZE];
   char pszDefinition[BFSIZE];
   char pszMetaData[BFSIZE];
   int nReturnType;
   bool bPreFetchFlag;
   char pszDomainOid[BFSIZE];
   Sm_PolicyApi_Oid_t* pNestedVariableList;
   struct Sm_PolicyApi_Variable_s*   next;
} Sm_PolicyApi_Variable_t;

Field

Description

iStructId

Data structure ID, defined in Sm_PolicyApi_Structs_t.

pszOid

The unique object ID of the variable object.

pszName

The user-defined name of the variable object.

pszDesc

Optional text describing the variable object.

pszVariableTypeOid

The unique object ID of the variable type.

pszDefinition

Information needed to obtain the value of the variable at runtime.

pszMetaData

Reserved for use by the optional CA TransactionMinder product.

nReturnType

The data type of the variable value:

  • Sm_PolicyApi_VarReturnTypes_Boolean
  • Sm_PolicyApi_VarReturnTypes_Number
  • Sm_PolicyApi_VarReturnTypes_String
  • Sm_PolicyApi_VarReturnTypes_Date

bPreFetchFlag

Not currently used.

pszDomainOid

The unique object ID of the associated domain.

pNestedVariableList

A linked list of nested variable OIDs that are part of the definition of this variable.

next

Pointer to the next variable object structure.


Copyright © 2010 CA. All rights reserved. Email CA about this topic