summaryrefslogtreecommitdiff
path: root/keystore/java/android/security/KeyStoreKeyProperties.java
diff options
context:
space:
mode:
authorAlex Klyubin <klyubin@google.com>2015-05-11 12:48:27 -0700
committerAlex Klyubin <klyubin@google.com>2015-05-12 09:29:56 -0700
commitdddd6f73a96a10a07edf486155e3b078380f9146 (patch)
tree1594acd27b31a436a62f65c808cf7d46bb9fec58 /keystore/java/android/security/KeyStoreKeyProperties.java
parente1176f10eba5a65ad23877b210e4d8d886653e6e (diff)
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/java/android/security/KeyStoreKeyProperties.java')
-rw-r--r--keystore/java/android/security/KeyStoreKeyProperties.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/keystore/java/android/security/KeyStoreKeyProperties.java b/keystore/java/android/security/KeyStoreKeyProperties.java
index 1cf6a7a6d36e..9ae4c9c7cc77 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 {}