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:
Specifies that the user is authorized.
Specifies that the user is not authorized.
Specifies that the Policy Server could not be reached.
Specifies that the method timed out.
Specifies that initialization was not done.
Copyright © 2010 CA. All rights reserved. | Email CA about this topic |