org.jclouds.cloudstack.features
Interface SessionApi


public interface SessionApi

Provides synchronous access to Cloudstack Sessions

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

@Named(value="login")
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

@Named(value="logout")
void logoutUser(String sessionKey)
Logs out the user by invalidating the session key

Parameters:
sessionKey - user session key


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.