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.
Synchronously creates an OutputStream for writing protected content.
This method is synchronous and it may require server client communication.
When publishing content your app is required to call CustomProtectedOutputStream.close after it is finished writing the content to the CustomProtectedOutputStream. If the flush() is not called we cannot guarantee that all the encrypted data is stored to the backing stream.
Signature
public static CustomProtectedOutputStream create(
OutputStream backingOutputStream,
UserPolicy userPolicy,
Context applicationContext)
throws ProtectionException
Parameters
| Name | Datatype | Notes |
|---|---|---|
| backingOutputStream |
OutputStream |
|
| userPolicy |
UserPolicy |
Policy needed to create the ProtectedFileOutputStream |
| applicationContext |
Context |
Returns
Throws
ProtectionException. In the case of a consent / authentication cancellation a UserCancellationException is thrown.
Defined in
CustomProtectedOutputStream.java
Supported Platforms
| Minimum supported OS version |
Android 4.0.3 (API level 15) |