ProtectedFileInputStream.create asynchronous method
Asynchronously implements a wrapper of the input stream allowing reading of an RMS protected input stream.
Signature
public static IAsyncControl create(InputStream inputStream,
String userId,
AuthenticationRequestCallback authenticationContext,
ConsentCallback consentCallback,
int policyAcquisitionFlags,
CreationCallback<ProtectedFileInputStream> callback)
throws InvalidParameterException
Parameters
Name | Datatype | Notes |
---|---|---|
inputStream |
InputStream |
input stream with the protected content |
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. |
authenticationContext |
AuthenticationRequestCallback |
|
consentCallback |
ConsentCallback |
|
policyAcquisitionFlags |
int |
See PolicyAcquisitionFlagss for more information. |
callback |
CreationCallback<ProtectedFileInputStream> |
The created item |
Returns
An IAsyncControl if an asynchronous operation is in progress else null is returned
Throws
Throws exception if no callback is available that onFailure can be called.
Defined in
ProtectedFileInputStream.java
Supported Platforms
Minimum supported OS version |
Android 4.0.3 (API level 15) |