Previous Topic: Sm_AgentApi_Init()

Next Topic: Sm_AgentApi_Login()

Sm_AgentApi_IsProtected()

Checks if the defined resource is protected by SiteMinder.

Syntax

int SM_EXTERN Sm_AgentApi_IsProtected (
   const void                             pHandle,
   const char*                            lpszClientIpAddr,
   const Sm_AgentApi_ResourceContext_t*   pResourceContext,
   Sm_AgentApi_Realm_t*                   pRealm
);

Parameter

I/O

Description

pHandle

I

Agent API session handle returned in parameter ppHandle of Sm_AgentApi_Init().

lpszClientIpAddr

I

The IP address of the client asking for the resource. This is an optional parameter.

pResourceContext

I

A resource definition structure.

pRealm

O

A realm definition structure. The resource is protected by the returned realm.

Return Values

Example

See the function SmAgentExample::Sm_IsProtected() in the example application smagentexample.cpp.


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