summaryrefslogtreecommitdiffstats
path: root/keystore/java/android
diff options
context:
space:
mode:
authorAlex Klyubin <klyubin@google.com>2015-05-12 16:56:10 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-05-12 16:56:15 +0000
commit56b96da7e1f1825267662df762609c198a8c41d6 (patch)
tree688386c7b0eb5a35afb523c46f1d2761471c41e0 /keystore/java/android
parent3d8c678136ed34e2573a46123681e6a647e5537d (diff)
parentdddd6f73a96a10a07edf486155e3b078380f9146 (diff)
downloadframeworks_base-56b96da7e1f1825267662df762609c198a8c41d6.zip
frameworks_base-56b96da7e1f1825267662df762609c198a8c41d6.tar.gz
frameworks_base-56b96da7e1f1825267662df762609c198a8c41d6.tar.bz2
Merge "Hide @IntDef and @StringDef annotations from AnroidKeyStore API." into mnc-dev
Diffstat (limited to 'keystore/java/android')
-rw-r--r--keystore/java/android/security/EcIesParameterSpec.java3
-rw-r--r--keystore/java/android/security/KeyStoreKeyProperties.java21
2 files changed, 24 insertions, 0 deletions
diff --git a/keystore/java/android/security/EcIesParameterSpec.java b/keystore/java/android/security/EcIesParameterSpec.java
index af93519..360270e 100644
--- a/keystore/java/android/security/EcIesParameterSpec.java
+++ b/keystore/java/android/security/EcIesParameterSpec.java
@@ -51,6 +51,9 @@ import javax.crypto.Mac;
*/
public class EcIesParameterSpec implements AlgorithmParameterSpec {
+ /**
+ * @hide
+ */
@Retention(RetentionPolicy.SOURCE)
@IntDef({
PointFormat.UNSPECIFIED,
diff --git a/keystore/java/android/security/KeyStoreKeyProperties.java b/keystore/java/android/security/KeyStoreKeyProperties.java
index d1b0e5b..021c6dd 100644
--- a/keystore/java/android/security/KeyStoreKeyProperties.java
+++ b/keystore/java/android/security/KeyStoreKeyProperties.java
@@ -43,6 +43,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})
@@ -134,6 +137,9 @@ public abstract class KeyStoreKeyProperties {
}
}
+ /**
+ * @hide
+ */
@Retention(RetentionPolicy.SOURCE)
@StringDef({
Algorithm.RSA,
@@ -261,6 +267,9 @@ public abstract class KeyStoreKeyProperties {
}
}
+ /**
+ * @hide
+ */
@Retention(RetentionPolicy.SOURCE)
@StringDef({
BlockMode.ECB,
@@ -356,6 +365,9 @@ public abstract class KeyStoreKeyProperties {
}
}
+ /**
+ * @hide
+ */
@Retention(RetentionPolicy.SOURCE)
@StringDef({
EncryptionPadding.NONE,
@@ -445,6 +457,9 @@ public abstract class KeyStoreKeyProperties {
}
}
+ /**
+ * @hide
+ */
@Retention(RetentionPolicy.SOURCE)
@StringDef({
SignaturePadding.RSA_PKCS1,
@@ -514,6 +529,9 @@ public abstract class KeyStoreKeyProperties {
}
}
+ /**
+ * @hide
+ */
@Retention(RetentionPolicy.SOURCE)
@StringDef({
Digest.NONE,
@@ -652,6 +670,9 @@ public abstract class KeyStoreKeyProperties {
}
}
+ /**
+ * @hide
+ */
@Retention(RetentionPolicy.SOURCE)
@IntDef({Origin.GENERATED, Origin.IMPORTED, Origin.UNKNOWN})
public @interface OriginEnum {}