次の方法で共有


UserPolicy.create(PolicyDescriptor, ...) asynchronous method

Asynchronously creates a new UserPolicy object from a policy descriptor.

Signature

public static IAsyncControl create(PolicyDescriptor policyDescriptor,
                                       String userId,
                                       AuthenticationRequestCallback authenticationContext,
                                       int userPolicyCreationFlags,
                                       CreationCallback<UserPolicy> callback) 
                            throws InvalidParameterException

Parameters

Name Datatype Notes
policyDescriptor
PolicyDescriptor
userId
String
A unique user identifier such as an email address.
This userId 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.
authenticationContext
AuthenticationRequestCallback
userPolicyCreationFlags
int
For more information, see UserPolicyCreationFlags).
callback
CreationCallback<UserPolicy>>
Completion callback

Throws

InvalidParameterException

Returns

IAsyncControl

Defined in

UserPolicy.java

Supported Platforms

Minimum supported OS version
Android 4.0.3 (API level 15)