com.vmware.vim25.mo
Class SessionManager
java.lang.Object
com.vmware.vim25.mo.ManagedObject
com.vmware.vim25.mo.SessionManager
public class SessionManager
- extends ManagedObject
The managed object class corresponding to the one defined in VI SDK API reference.
- Author:
- Steve JIN (sjin@vmware.com)
| Methods inherited from class com.vmware.vim25.mo.ManagedObject |
convertMors, getCurrentProperty, getDatastores, getFilter, getHosts, getManagedObject, getManagedObjects, getManagedObjects, getMOR, getNetworks, getPropertiesByPaths, getPropertyByPath, getResourcePools, getScheduledTasks, getServerConnection, getTasks, getViews, getVimService, getVms, retrieveObjectProperties, setMOR, setServerConnection, toString, waitForValues |
SessionManager
public SessionManager(ServerConnection serverConnection,
ManagedObjectReference mor)
getCurrentSession
public UserSession getCurrentSession()
getDefaultLocale
public String getDefaultLocale()
getMessage
public String getMessage()
getMessageLocaleList
public String[] getMessageLocaleList()
getSessionList
public UserSession[] getSessionList()
getSupportedLocaleList
public String[] getSupportedLocaleList()
acquireLocalTicket
public SessionManagerLocalTicket acquireLocalTicket(String userName)
throws InvalidLogin,
RuntimeFault,
RemoteException
- Throws:
InvalidLogin
RuntimeFault
RemoteException
acquireGenericServiceTicket
public SessionManagerGenericServiceTicket acquireGenericServiceTicket(SessionManagerServiceRequestSpec spec)
throws RuntimeFault,
RemoteException
- Throws:
RuntimeFault
RemoteException- Since:
- SDK5.0
cloneSession
public UserSession cloneSession(String cloneTicket)
throws InvalidLogin,
RuntimeFault,
RemoteException
- Throws:
InvalidLogin
RuntimeFault
RemoteException- Since:
- SDK4.0
You don't need to use this method. Instead, look at the other cloneSession method.
cloneSession
public ServiceInstance cloneSession(boolean ignoreCert)
throws InvalidLogin,
RuntimeFault,
RemoteException,
MalformedURLException
- Copyright 2009 NetApp, contribution by Eric Forgette
Modified by Steve Jin (sjin@vmware.com)
This constructor builds a new ServiceInstance based on a ServiceInstance.
The new ServiceInstance is effectively a clone of the first. This clone will
NOT become invalid when the first is logged out.
- Throws:
RemoteException
RuntimeFault
InvalidLogin
MalformedURLException
acquireCloneTicket
public String acquireCloneTicket()
throws RuntimeFault,
RemoteException
- Throws:
RuntimeFault
RemoteException- Since:
- SDK4.0
This method is called in the cloneSession method. If you happen to use this method,
please double check if it's really needed.
loginExtensionBySubjectName
public UserSession loginExtensionBySubjectName(String extensionKey,
String locale)
throws InvalidLogin,
InvalidLocale,
NotFound,
NoClientCertificate,
NoSubjectName,
RuntimeFault,
RemoteException
- Throws:
InvalidLogin
InvalidLocale
NotFound
NoClientCertificate
NoSubjectName
RuntimeFault
RemoteException- Since:
- SDK4.0
impersonateUser
public UserSession impersonateUser(String userName,
String locale)
throws InvalidLogin,
InvalidLocale,
RuntimeFault,
RemoteException
- Throws:
InvalidLogin
InvalidLocale
RuntimeFault
RemoteException
login
public UserSession login(String userName,
String password,
String locale)
throws InvalidLogin,
InvalidLocale,
RuntimeFault,
RemoteException
- Throws:
InvalidLogin
InvalidLocale
RuntimeFault
RemoteException
loginBySSPI
public UserSession loginBySSPI(String base64Token,
String locale)
throws InvalidLogin,
InvalidLocale,
SSPIChallenge,
RuntimeFault,
RemoteException
- Throws:
InvalidLogin
InvalidLocale
SSPIChallenge
RuntimeFault
RemoteException
logout
public void logout()
throws RuntimeFault,
RemoteException
- Throws:
RuntimeFault
RemoteException
sessionIsActive
public boolean sessionIsActive(String sessionID,
String userName)
throws RuntimeFault,
RemoteException
- Throws:
RuntimeFault
RemoteException
setLocale
public void setLocale(String locale)
throws InvalidLocale,
RuntimeFault,
RemoteException
- Throws:
InvalidLocale
RuntimeFault
RemoteException
terminateSession
public void terminateSession(String[] sessionIDs)
throws NotFound,
RuntimeFault,
RemoteException
- Throws:
NotFound
RuntimeFault
RemoteException
updateServiceMessage
public void updateServiceMessage(String message)
throws RuntimeFault,
RemoteException
- Throws:
RuntimeFault
RemoteException
Copyright © 2011-2012. All Rights Reserved.