diff options
author | Alex Klyubin <klyubin@google.com> | 2015-05-18 13:19:38 -0700 |
---|---|---|
committer | Alex Klyubin <klyubin@google.com> | 2015-05-19 11:14:16 -0700 |
commit | 834660d9ce0cdcedf256e4b90b7bd4b4d3832daa (patch) | |
tree | 2759975c5f5183c7d6a01ba95f3033c97877e7aa /luni | |
parent | cd9e12f040372031ad28317913888799f7d78aef (diff) | |
download | libcore-834660d9ce0cdcedf256e4b90b7bd4b4d3832daa.zip libcore-834660d9ce0cdcedf256e4b90b7bd4b4d3832daa.tar.gz libcore-834660d9ce0cdcedf256e4b90b7bd4b4d3832daa.tar.bz2 |
Revert "Expose getSpi from crypto operations as hidden API."
This reverts commit 050e672aaaaa8f8c57788e8d551f43c5fbffe339.
The users of public getSpi have been migrated to getCurrentSpi
introduced in 5d15925a79b8beddfafa8de2ede7fff360a386cb.
(cherry-picked from commit c52bf74f7e53b9f58bbeb29f4d248e7dba7d15ce)
Bug: 18088752
Change-Id: Ied72c8a62a49d9fba8b7bc2d3ef2e30da7daa6e4
Diffstat (limited to 'luni')
-rw-r--r-- | luni/src/main/java/java/security/Signature.java | 14 | ||||
-rw-r--r-- | luni/src/main/java/javax/crypto/Cipher.java | 4 | ||||
-rw-r--r-- | luni/src/main/java/javax/crypto/KeyAgreement.java | 4 | ||||
-rw-r--r-- | luni/src/main/java/javax/crypto/Mac.java | 4 |
4 files changed, 4 insertions, 22 deletions
diff --git a/luni/src/main/java/java/security/Signature.java b/luni/src/main/java/java/security/Signature.java index a45fa59..795ccad 100644 --- a/luni/src/main/java/java/security/Signature.java +++ b/luni/src/main/java/java/security/Signature.java @@ -245,15 +245,6 @@ public abstract class Signature extends SignatureSpi { } /** - * Gets the SPI implementation backing this signature. - * - * @hide - */ - public SignatureSpi getSpi() { - return null; - } - - /** * Returns the {@code SignatureSpi} backing this {@code Signature} or {@code null} if no * {@code SignatureSpi} is backing this {@code Signature}. * @@ -749,11 +740,8 @@ public abstract class Signature extends SignatureSpi { /** * Convenience call when the Key is not available. - * - * @hide */ - @Override - public SignatureSpi getSpi() { + private SignatureSpi getSpi() { return getSpi(null); } diff --git a/luni/src/main/java/javax/crypto/Cipher.java b/luni/src/main/java/javax/crypto/Cipher.java index 225822d..5a66c20 100644 --- a/luni/src/main/java/javax/crypto/Cipher.java +++ b/luni/src/main/java/javax/crypto/Cipher.java @@ -366,10 +366,8 @@ public class Cipher { /** * Convenience call when the Key is not available. - * - * @hide */ - public CipherSpi getSpi() { + private CipherSpi getSpi() { return getSpi(null); } diff --git a/luni/src/main/java/javax/crypto/KeyAgreement.java b/luni/src/main/java/javax/crypto/KeyAgreement.java index c804273..1ba660d 100644 --- a/luni/src/main/java/javax/crypto/KeyAgreement.java +++ b/luni/src/main/java/javax/crypto/KeyAgreement.java @@ -252,10 +252,8 @@ public class KeyAgreement { /** * Convenience call when the Key is not available. - * - * @hide */ - public KeyAgreementSpi getSpi() { + private KeyAgreementSpi getSpi() { return getSpi(null); } diff --git a/luni/src/main/java/javax/crypto/Mac.java b/luni/src/main/java/javax/crypto/Mac.java index 5774eb2..7da84e6 100644 --- a/luni/src/main/java/javax/crypto/Mac.java +++ b/luni/src/main/java/javax/crypto/Mac.java @@ -266,10 +266,8 @@ public class Mac implements Cloneable { /** * Convenience call when the Key is not available. - * - * @hide */ - public MacSpi getSpi() { + private MacSpi getSpi() { return getSpi(null); } |