The Decode method decodes a single sign-on token and returns a subset of its attributes. In addition, you have the option of updating the token's last-accessed timestamp by passing a non-zero value to this method. To retrieve the updated token in string format, call SSOToken‑>GetString and write the token string to the SMSESSION cookie.
Syntax
The Decode method has the following format:
Netegrity::SSOToken‑>Decode([update])
Parameters
The Decode method accepts the following parameter:
update (int)
(Optional) Specifies whether an updated token is requested:
Specifies that an updated token is requested.
Specifies that an updated token is not requested.
Return Value
The Decode method returns one of the following values:
Specifies the IP address of the machine where the user initiated a request for a protected resource.
Specifies the name of the agent that is decoding the token.
Specifies the maximum idle time for a session.
Specifies the time when the Policy Server was last accessed within the session.
Specifies the maximum time that a session can be active.
Specifies the session ID returned from the login call.
Specifies the session specification returned from the login call.
Specifies when the session started after a successful login.
Specifies the user's distinguished name.
Specifies the user's name.
Specifies that the method failed.
Remarks
To create a single sign-on object, call AgentUser‑>CreateSSOToken.
Copyright © 2010 CA. All rights reserved. | Email CA about this topic |