|
SiteMinder Java SDK r12.0 SP2 |
|||||||||
PREV CLASS NEXT CLASS | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.netegrity.sdk.apiutil.SmApiSession
Holds the session and connection information.
Constructor Summary | |
SmApiSession(SmApiConnection apiConnection)
Creates a session object with a valid API connection. |
|
SmApiSession(SmApiConnection apiConnection,
java.lang.String sessionSpec)
Create a session object with a valid API connection and a session specification. |
Method Summary | |
SmApiConnection |
getApiConnection()
Gets an API connection. |
int |
getLicenseInfo(java.lang.String licenseFeature)
For internal use only. |
java.lang.String |
getSessionSpec()
Gets the session specification. |
SmApiResult |
login(java.lang.String username,
java.lang.String password,
java.net.InetAddress address,
int challengeReason)
Logs in with username and password. |
SmApiResult |
logout()
Ends the SiteMinder administrator session. |
void |
setApiConnection(SmApiConnection apiConnection)
Sets a valid API connection. |
void |
setSessionSpec(java.lang.String sessionSpec)
Sets an existing session specification. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SmApiSession(SmApiConnection apiConnection)
apiConnection
- Valid API connection.public SmApiSession(SmApiConnection apiConnection, java.lang.String sessionSpec)
apiConnection
- Valid API connection.sessionSpec
- Session specification.Method Detail |
public SmApiConnection getApiConnection()
public void setApiConnection(SmApiConnection apiConnection)
apiConnection
- Valid API connection.
public SmApiResult login(java.lang.String username, java.lang.String password, java.net.InetAddress address, int challengeReason) throws SmApiException
Logs in with username and password.
This login is for SiteMinder administrators. For login of other users (end users as well as DMS organization administrators and DMS super administrators), see login() in classAgentAPI
of the Agent API.
username
- Username of the person logging in.password
- Password of the person logging in.address
- IP address (in the format
"%d.%d.%d.%d"
) of the
machine where the administrator is
logging in.challengeReason
- Assign values to this parameter as follows:
challengeReason
in the next login()
call to
specify the result of the previous
authentication attempt. To retrieve the
result value to assign to
challengeReason
, call
getReason()
SmApiException
public SmApiResult logout() throws SmApiException
Ends the SiteMinder administrator session.
This logout is for SiteMinder administrators. For logout of other users (end users as well as DMS organization administrators and DMS super administrators), see logout() in classAgentAPI
of the Agent API.
SmApiException
public void setSessionSpec(java.lang.String sessionSpec) throws SmApiException
sessionSpec
- Session specification.
SmApiException
public java.lang.String getSessionSpec()
public int getLicenseInfo(java.lang.String licenseFeature) throws SmApiException
licenseFeature
- Name of the license feature.
SmApiException
|
Java SDK r12.0 SP2 Fri 11/06/2009 |
|||||||||
PREV CLASS NEXT CLASS | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |