Previous Topic: Impersonate Method—Allows One User to Impersonate Another

Next Topic: Login Method—Performs Session Login and Validation

IsAuthorized Method—Determines Whether User Is Authorized

The IsAuthorized method determines whether the user is authorized to perform the specified action on the specified resource. This method calls AgentUser‑>Login, if AgentUser‑>Login has not been called. After calling this method, call AgentUser‑>GetResponse.

Syntax

The IsAuthorized method has the following format:

Netegrity::AgentUser‑>IsAuthorized(resource[, clientIP][, transID])

Parameters

The IsAuthorized method accepts the following parameters:

resource (AgentResource object)

Specifies the resource to check.

clientIP (string)

(Optional) Specifies the client's IP address.

transID (string)

(Optional) Specifies the user-defined transaction ID that the agent uses to associate application activity with security activity.

Return Value

The IsAuthorized method returns one of the following values:


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