Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4b06918f authored by Rubin Xu's avatar Rubin Xu
Browse files

Improve doc for DPM.generateKeyPair

Document concurrency and thread interruption behaviour.

Bug: 141539329
Test: make docs
Change-Id: I0d98db99f5ca0675d71da5e799ec8415e1a4c612
parent 5580360b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -5215,6 +5215,10 @@ public class DevicePolicyManager {
     * <p>Because this method might take several seconds to complete, it should only be called from
     * a worker thread. This method returns {@code null} when called from the main thread.
     *
     * <p>This method is not thread-safe, calling it from multiple threads at the same time will
     * result in undefined behavior. If the calling thread is interrupted while the invocation is
     * in-flight, it will eventually terminate and return {@code null}.
     *
     * <p>Note: If the provided {@code alias} is of an existing alias, all former grants that apps
     * have been given to access the key and certificates associated with this alias will be
     * revoked.