diff options
author | Alex Klyubin <klyubin@google.com> | 2015-05-11 12:48:27 -0700 |
---|---|---|
committer | Alex Klyubin <klyubin@google.com> | 2015-05-12 09:29:56 -0700 |
commit | dddd6f73a96a10a07edf486155e3b078380f9146 (patch) | |
tree | 1594acd27b31a436a62f65c808cf7d46bb9fec58 /keystore | |
parent | e1176f10eba5a65ad23877b210e4d8d886653e6e (diff) | |
download | frameworks_base-dddd6f73a96a10a07edf486155e3b078380f9146.zip frameworks_base-dddd6f73a96a10a07edf486155e3b078380f9146.tar.gz frameworks_base-dddd6f73a96a10a07edf486155e3b078380f9146.tar.bz2 |
Hide @IntDef and @StringDef annotations from AnroidKeyStore API.
By convention, these annotation classes should remain hidden API.
Bug: 18088752
Bug: 21039983
Change-Id: Ifb5d2910c7dae4e0fd809876eb641f1aaf7a00a6
Diffstat (limited to 'keystore')
-rw-r--r-- | keystore/java/android/security/EcIesParameterSpec.java | 3 | ||||
-rw-r--r-- | keystore/java/android/security/KeyStoreKeyProperties.java | 21 |
2 files changed, 24 insertions, 0 deletions
diff --git a/keystore/java/android/security/EcIesParameterSpec.java b/keystore/java/android/security/EcIesParameterSpec.java index a3e5aec..7af17ed 100644 --- a/keystore/java/android/security/EcIesParameterSpec.java +++ b/keystore/java/android/security/EcIesParameterSpec.java @@ -49,6 +49,9 @@ import javax.crypto.Mac; */ public class EcIesParameterSpec implements AlgorithmParameterSpec { + /** + * @hide + */ @Retention(RetentionPolicy.SOURCE) @IntDef(value = {PointFormat.UNCOMPRESSED, PointFormat.COMPRESSED}) public @interface PointFormatEnum {} diff --git a/keystore/java/android/security/KeyStoreKeyProperties.java b/keystore/java/android/security/KeyStoreKeyProperties.java index 1cf6a7a..9ae4c9c 100644 --- a/keystore/java/android/security/KeyStoreKeyProperties.java +++ b/keystore/java/android/security/KeyStoreKeyProperties.java @@ -41,6 +41,9 @@ import javax.crypto.SecretKeyFactory; public abstract class KeyStoreKeyProperties { private KeyStoreKeyProperties() {} + /** + * @hide + */ @Retention(RetentionPolicy.SOURCE) @IntDef(flag = true, value = {Purpose.ENCRYPT, Purpose.DECRYPT, Purpose.SIGN, Purpose.VERIFY}) @@ -131,6 +134,9 @@ public abstract class KeyStoreKeyProperties { } } + /** + * @hide + */ @Retention(RetentionPolicy.SOURCE) @StringDef({ Algorithm.RSA, @@ -257,6 +263,9 @@ public abstract class KeyStoreKeyProperties { } } + /** + * @hide + */ @Retention(RetentionPolicy.SOURCE) @StringDef({ BlockMode.ECB, @@ -350,6 +359,9 @@ public abstract class KeyStoreKeyProperties { } } + /** + * @hide + */ @Retention(RetentionPolicy.SOURCE) @StringDef({ EncryptionPadding.NONE, @@ -437,6 +449,9 @@ public abstract class KeyStoreKeyProperties { } } + /** + * @hide + */ @Retention(RetentionPolicy.SOURCE) @StringDef({ SignaturePadding.RSA_PKCS1, @@ -504,6 +519,9 @@ public abstract class KeyStoreKeyProperties { } } + /** + * @hide + */ @Retention(RetentionPolicy.SOURCE) @StringDef({ Digest.NONE, @@ -639,6 +657,9 @@ public abstract class KeyStoreKeyProperties { } } + /** + * @hide + */ @Retention(RetentionPolicy.SOURCE) @IntDef({Origin.GENERATED, Origin.IMPORTED, Origin.UNKNOWN}) public @interface OriginEnum {} |