Package com.vmware.vim25.mo
Class SessionManager
java.lang.Object
com.vmware.vim25.mo.ManagedObject
com.vmware.vim25.mo.SessionManager
-
Constructor Summary
ConstructorsConstructorDescriptionSessionManager(ServerConnection serverConnection, ManagedObjectReference mor) -
Method Summary
Modifier and TypeMethodDescriptionacquireLocalTicket(String userName) cloneSession(boolean ignoreCert) Copyright 2009 NetApp, contribution by Eric Forgette Modified by Steve Jin (sjin@vmware.com)cloneSession(String cloneTicket) String[]String[]impersonateUser(String userName, String locale) loginBySSPI(String base64Token, String locale) loginByToken(String locale) loginExtensionByCertificate(String extensionKey, String locale) loginExtensionBySubjectName(String extensionKey, String locale) voidlogout()booleansessionIsActive(String sessionID, String userName) voidvoidterminateSession(String[] sessionId) voidupdateServiceMessage(String message) 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, setCachedProperty, setMOR, setServerConnection, toString, waitForValues
-
Constructor Details
-
SessionManager
-
-
Method Details
-
getCurrentSession
-
getDefaultLocale
-
getMessage
-
getMessageLocaleList
-
getSessionList
-
getSupportedLocaleList
-
logout
- Throws:
RuntimeFaultRemoteException
-
setLocale
- Throws:
InvalidLocaleRuntimeFaultRemoteException
-
terminateSession
- Throws:
NotFoundRuntimeFaultRemoteException
-
updateServiceMessage
- Throws:
RuntimeFaultRemoteException
-
acquireLocalTicket
public SessionManagerLocalTicket acquireLocalTicket(String userName) throws InvalidLogin, RuntimeFault, RemoteException - Throws:
InvalidLoginRuntimeFaultRemoteException
-
acquireGenericServiceTicket
public SessionManagerGenericServiceTicket acquireGenericServiceTicket(SessionManagerServiceRequestSpec spec) throws RuntimeFault, RemoteException - Throws:
RuntimeFaultRemoteException- Since:
- SDK5.0
-
cloneSession
public UserSession cloneSession(String cloneTicket) throws InvalidLogin, RuntimeFault, RemoteException - Throws:
InvalidLoginRuntimeFaultRemoteException- 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.
-
acquireCloneTicket
- Throws:
RuntimeFaultRemoteException- 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:
InvalidLoginInvalidLocaleNotFoundNoClientCertificateNoSubjectNameRuntimeFaultRemoteException- Since:
- SDK4.0
-
loginExtensionByCertificate
public UserSession loginExtensionByCertificate(String extensionKey, String locale) throws InvalidLogin, InvalidLocale, NoClientCertificate, RuntimeFault, RemoteException - Throws:
InvalidLoginInvalidLocaleNoClientCertificateRuntimeFaultRemoteException- Since:
- SDK4.0
-
impersonateUser
public UserSession impersonateUser(String userName, String locale) throws InvalidLogin, InvalidLocale, RuntimeFault, RemoteException -
login
public UserSession login(String userName, String password, String locale) throws InvalidLogin, InvalidLocale, RuntimeFault, RemoteException -
loginBySSPI
public UserSession loginBySSPI(String base64Token, String locale) throws InvalidLogin, InvalidLocale, SSPIChallenge, RuntimeFault, RemoteException -
loginByToken
public UserSession loginByToken(String locale) throws InvalidLogin, InvalidLocale, RuntimeFault, RemoteException - Throws:
InvalidLoginInvalidLocaleRuntimeFaultRemoteException- Since:
- SDK5.1
-
sessionIsActive
public boolean sessionIsActive(String sessionID, String userName) throws RuntimeFault, RemoteException - Throws:
RuntimeFaultRemoteException
-