public class Auth extends XenAPIObject
Constructor and Description |
---|
Auth() |
Modifier and Type | Method and Description |
---|---|
static java.util.Set<java.lang.String> |
getGroupMembership(Connection c,
java.lang.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 java.lang.String |
getSubjectIdentifier(Connection c,
java.lang.String subjectName)
This call queries the external directory service to obtain the subject_identifier as a string from the human-readable subject_name
|
static java.util.Map<java.lang.String,java.lang.String> |
getSubjectInformationFromIdentifier(Connection c,
java.lang.String subjectIdentifier)
This call queries the external directory service to obtain the user information (e.g.
|
java.lang.String |
toWireString() |
public java.lang.String toWireString()
toWireString
in class XenAPIObject
public static java.lang.String getSubjectIdentifier(Connection c, java.lang.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 java.util.Map<java.lang.String,java.lang.String> getSubjectInformationFromIdentifier(Connection c, java.lang.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 java.util.Set<java.lang.String> getGroupMembership(Connection c, java.lang.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