public class Auth extends XenAPIObject
Constructor and Description |
---|
Auth() |
Modifier and Type | Method and Description |
---|---|
static Set<String> |
getGroupMembership(Connection c,
String subjectIdentifier)
This calls queries the external directory service to obtain the transitively-closed set of groups that the the subject_identifier is member of.
|
static String |
getSubjectIdentifier(Connection c,
String subjectName)
This call queries the external directory service to obtain the subject_identifier as a string from the human-readable subject_name
|
static Map<String,String> |
getSubjectInformationFromIdentifier(Connection c,
String subjectIdentifier)
This call queries the external directory service to obtain the user information (e.g.
|
String |
toWireString() |
public String toWireString()
toWireString
in class XenAPIObject
public static String getSubjectIdentifier(Connection c, String subjectName) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
subjectName
- The human-readable subject_name, such as a username or a groupnameTypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public static Map<String,String> getSubjectInformationFromIdentifier(Connection c, String subjectIdentifier) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
subjectIdentifier
- A string containing the subject_identifier, unique in the external directory serviceTypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public static Set<String> getGroupMembership(Connection c, String subjectIdentifier) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
subjectIdentifier
- A string containing the subject_identifier, unique in the external directory serviceTypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException