org.jclouds.cloudstack.features
Interface SessionClient


public interface SessionClient

Provides synchronous access to CloudStack Sessions

Author:
Andrei Savu
See Also:

Method Summary
 LoginResponse loginUserInDomainWithHashOfPassword(String userName, String domain, String hashedPassword)
          Logs a user into Cloudstack.
 void logoutUser(String sessionKey)
          Logs out the user by invalidating the session key
 

Method Detail

loginUserInDomainWithHashOfPassword

LoginResponse loginUserInDomainWithHashOfPassword(String userName,
                                                  String domain,
                                                  String hashedPassword)
Logs a user into Cloudstack. A successful login attempt will generate a JSESSIONID cookie value that can be passed in subsequent Query command calls until the "logout" command has been issued or the session has expired.

Parameters:
userName - user account name
domain - domain name, if empty defaults to ROOT
hashedPassword - hashed password (by default MD5)
Returns:
login response with session key or null

logoutUser

void logoutUser(String sessionKey)
Logs out the user by invalidating the session key

Parameters:
sessionKey - user session key


Copyright © 2009-2012 jclouds. All Rights Reserved.