Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Asynchronously acquires a UserPolicy object based on a serialized content policy.
Signature
public static IAsyncControl acquire(byte[] serializedContentPolicy,
String userId,
AuthenticationRequestCallback authenticationCallback,
ConsentCallback consentCallback,
int policyAcquisitionFlags,
CreationCallback<UserPolicy> callback)
throws InvalidParameterException
Parameters
| Name | Datatype | Notes |
|---|---|---|
| serializedContentPolicy |
byte[] |
A serialized content policy |
| userId |
String |
Optional. A userId is used for caching a user policy for offline usage. For multiple user scenarios, caller must supply a userId. If userId is null, then the user policy is cached without userId and is retrievable with null userId as well. A null userId also retrieves any matching offline user policy cached without userId or any userId. |
| authenticationCallback |
AuthenticationRequestCallback |
|
| consentCallback |
ConsentCallback |
|
| policyAcquisitionFlags |
int |
For more information, see PolicyAcquisitionFlags |
| callback |
CreationCallback<UserPolicy>> |
Completion callback |
Throws
Returns
Defined in
UserPolicy.java
Supported Platforms
| Minimum supported OS version |
Android 4.0.3 (API level 15) |