From 23d2e403345bd079de090707ef33604961c611df Mon Sep 17 00:00:00 2001 From: Sergio Giro Date: Tue, 30 Aug 2016 16:53:53 +0100 Subject: java.security.SecureRandom: add getInstanceStrong() method Port SecureRandom to jdk8u60. The method getInstanceStrong returns a strong random number generator. In Android this is assumed to be the one from OpenSSLProvider. This commit also contains cosmetic JavaDoc changes like - Use of @code in place of tags and use of a package-info.java in place of a package.html file. - Added comments. - Uses of java.security.util.Debug (commented-out as that debugging mechanism is not available in Android). - Added braces in control flow blocks. Test: make droid docs, vogar SecureRandomTest Bug: 29631070 Change-Id: I9080fbd5e9292d7cb3eaa234f7c5849411336fac --- api/current.txt | 1 + api/system-current.txt | 1 + api/test-current.txt | 1 + 3 files changed, 3 insertions(+) diff --git a/api/current.txt b/api/current.txt index 195b6403530e..3357a51f559c 100644 --- a/api/current.txt +++ b/api/current.txt @@ -55216,6 +55216,7 @@ package java.security { method public static java.security.SecureRandom getInstance(java.lang.String) throws java.security.NoSuchAlgorithmException; method public static java.security.SecureRandom getInstance(java.lang.String, java.lang.String) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException; method public static java.security.SecureRandom getInstance(java.lang.String, java.security.Provider) throws java.security.NoSuchAlgorithmException; + method public static java.security.SecureRandom getInstanceStrong() throws java.security.NoSuchAlgorithmException; method public final java.security.Provider getProvider(); method public static byte[] getSeed(int); method protected final int next(int); diff --git a/api/system-current.txt b/api/system-current.txt index 54f987aaada0..8f7b84f0ed1d 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -58572,6 +58572,7 @@ package java.security { method public static java.security.SecureRandom getInstance(java.lang.String) throws java.security.NoSuchAlgorithmException; method public static java.security.SecureRandom getInstance(java.lang.String, java.lang.String) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException; method public static java.security.SecureRandom getInstance(java.lang.String, java.security.Provider) throws java.security.NoSuchAlgorithmException; + method public static java.security.SecureRandom getInstanceStrong() throws java.security.NoSuchAlgorithmException; method public final java.security.Provider getProvider(); method public static byte[] getSeed(int); method protected final int next(int); diff --git a/api/test-current.txt b/api/test-current.txt index d06e5cfacaa4..00e05053aa3c 100644 --- a/api/test-current.txt +++ b/api/test-current.txt @@ -55296,6 +55296,7 @@ package java.security { method public static java.security.SecureRandom getInstance(java.lang.String) throws java.security.NoSuchAlgorithmException; method public static java.security.SecureRandom getInstance(java.lang.String, java.lang.String) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException; method public static java.security.SecureRandom getInstance(java.lang.String, java.security.Provider) throws java.security.NoSuchAlgorithmException; + method public static java.security.SecureRandom getInstanceStrong() throws java.security.NoSuchAlgorithmException; method public final java.security.Provider getProvider(); method public static byte[] getSeed(int); method protected final int next(int); -- cgit v1.2.3-59-g8ed1b