UserPolicy.create(PolicyDescriptor, ...) synchronous method
Asynchronously creates a new UserPolicy object from a policy descriptor.
Signature
public static UserPolicy create(
PolicyDescriptor policyDescriptor,
String userId,
AuthenticationRequestCallback authenticationContext,
int userPolicyCreationFlags,
final Context applicationContext)
throws ProtectionException
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). |
applicationContext |
Context |
Throws
Returns
Defined in
UserPolicy.java
Supported Platforms
Minimum supported OS version |
Android 4.0.3 (API level 15) |