Freigeben über


TemplateDescriptor getTemplates asynchronous method

Asynchronously queries the server for the tenant's policy templates.

Signature

public static IAsyncControl getTemplates(String userId,
                              AuthenticationRequestCallback authenticationCallback,
                              CreationCallback<List<TemplateDescriptor>> callback)
                              throws InvalidParameterException

Parameters

Name Datatype Notes
userId
String
This userId (email address) is used to discover the RMS service instance (either ADRMS server or Azure RMS) that the user's organization is using. userId is used for caching user policy as well for offline usage.
authenticationCallback
AuthenticationRequestCallback
callback
CreationCallback<List<TemplateDescriptor>>

Returns

IAsyncControl

Throws

InvalidParameterException

Defined in

TemplateDescriptor.java

Supported Platforms

Minimum supported OS version
Android 4.0.3 (API level 15)

Remarks

This method could launch the Authentication UI if no valid authentication token is present.