com.vmware.vim25.mo
Class GuestAuthManager

java.lang.Object
  extended by com.vmware.vim25.mo.ManagedObject
      extended by com.vmware.vim25.mo.GuestAuthManager

public class GuestAuthManager
extends ManagedObject

provides APIs to manipulate the guest operating authentication

Since:
SDK5.0
Author:
Steve Jin (http://www.doublecloud.org)

Constructor Summary
GuestAuthManager(ServerConnection sc, ManagedObjectReference mor, VirtualMachine vm)
           
 
Method Summary
 GuestAuthentication acquireCredentialsInGuest(GuestAuthentication requestedAuth, long sessionID)
           
 VirtualMachine getVM()
           
 void releaseCredentialsInGuest(GuestAuthentication auth)
           
 void ValidateCredentialsInGuest(GuestAuthentication auth)
          It should have returned a boolean, but...
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GuestAuthManager

public GuestAuthManager(ServerConnection sc,
                        ManagedObjectReference mor,
                        VirtualMachine vm)
Method Detail

getVM

public VirtualMachine getVM()

acquireCredentialsInGuest

public GuestAuthentication acquireCredentialsInGuest(GuestAuthentication requestedAuth,
                                                     long sessionID)
                                              throws GuestOperationsFault,
                                                     TaskInProgress,
                                                     InvalidState,
                                                     RuntimeFault,
                                                     RemoteException
Throws:
GuestOperationsFault
TaskInProgress
InvalidState
RuntimeFault
RemoteException

releaseCredentialsInGuest

public void releaseCredentialsInGuest(GuestAuthentication auth)
                               throws GuestOperationsFault,
                                      TaskInProgress,
                                      InvalidState,
                                      RuntimeFault,
                                      RemoteException
Throws:
GuestOperationsFault
TaskInProgress
InvalidState
RuntimeFault
RemoteException

ValidateCredentialsInGuest

public void ValidateCredentialsInGuest(GuestAuthentication auth)
                                throws GuestOperationsFault,
                                       InvalidState,
                                       TaskInProgress,
                                       RuntimeFault,
                                       RemoteException
It should have returned a boolean, but... Watch out GuestPermissionDenied (subtype of GuestOperationsFault) for invalid authentication.

Throws:
GuestOperationsFault
InvalidState
TaskInProgress
RuntimeFault
RemoteException


Copyright © 2011-2012. All Rights Reserved.