summaryrefslogtreecommitdiffstats
path: root/keystore/java/android/security/KeyStoreKeySpec.java
diff options
context:
space:
mode:
authorAlex Klyubin <klyubin@google.com>2015-05-12 17:32:29 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-05-12 17:32:30 +0000
commit03064e25b284d7ee99563658c5966ee590f925f6 (patch)
treed27c8e7bdcbd43ca9bc75edf4eec1060e78d13f5 /keystore/java/android/security/KeyStoreKeySpec.java
parent54415439ca8d286c4efaf975a54fe0cc7872c86b (diff)
parente3049dc953acd5d477c159be8e8b0548bae60cab (diff)
downloadframeworks_base-03064e25b284d7ee99563658c5966ee590f925f6.zip
frameworks_base-03064e25b284d7ee99563658c5966ee590f925f6.tar.gz
frameworks_base-03064e25b284d7ee99563658c5966ee590f925f6.tar.bz2
Merge "Link to magic constants used by AndroidKeyStore API." into mnc-dev
Diffstat (limited to 'keystore/java/android/security/KeyStoreKeySpec.java')
-rw-r--r--keystore/java/android/security/KeyStoreKeySpec.java24
1 files changed, 19 insertions, 5 deletions
diff --git a/keystore/java/android/security/KeyStoreKeySpec.java b/keystore/java/android/security/KeyStoreKeySpec.java
index 81a19bb..acd6404 100644
--- a/keystore/java/android/security/KeyStoreKeySpec.java
+++ b/keystore/java/android/security/KeyStoreKeySpec.java
@@ -179,14 +179,19 @@ public class KeyStoreKeySpec implements KeySpec {
}
/**
- * Gets the set of purposes for which the key can be used.
+ * Gets the set of purposes (e.g., {@code ENCRYPT}, {@code DECRYPT}, {@code SIGN}) for which the
+ * key can be used.
+ *
+ * @see KeyStoreKeyProperties.Purpose
*/
public @KeyStoreKeyProperties.PurposeEnum int getPurposes() {
return mPurposes;
}
/**
- * Gets the set of block modes with which the key can be used.
+ * Gets the set of block modes (e.g., {@code CBC}, {@code CTR}) with which the key can be used.
+ *
+ * @see KeyStoreKeyProperties.BlockMode
*/
@NonNull
public @KeyStoreKeyProperties.BlockModeEnum String[] getBlockModes() {
@@ -194,7 +199,10 @@ public class KeyStoreKeySpec implements KeySpec {
}
/**
- * Gets the set of padding modes with which the key can be used when encrypting/decrypting.
+ * Gets the set of padding schemes (e.g., {@code PKCS7Padding}, {@code NoPadding}) with which
+ * the key can be used when encrypting/decrypting.
+ *
+ * @see KeyStoreKeyProperties.EncryptionPadding
*/
@NonNull
public @KeyStoreKeyProperties.EncryptionPaddingEnum String[] getEncryptionPaddings() {
@@ -202,7 +210,10 @@ public class KeyStoreKeySpec implements KeySpec {
}
/**
- * Gets the set of padding modes with which the key can be used when signing/verifying.
+ * Gets the set of padding schemes (e.g., {@code PSS}) with which the key can be used when
+ * signing/verifying.
+ *
+ * @see KeyStoreKeyProperties.SignaturePadding
*/
@NonNull
public @KeyStoreKeyProperties.SignaturePaddingEnum String[] getSignaturePaddings() {
@@ -210,7 +221,10 @@ public class KeyStoreKeySpec implements KeySpec {
}
/**
- * Gets the set of digest algorithms with which the key can be used.
+ * Gets the set of digest algorithms (e.g., {@code SHA-256}, {@code SHA-384}) with which the key
+ * can be used.
+ *
+ * @see KeyStoreKeyProperties.Digest
*/
@NonNull
public @KeyStoreKeyProperties.DigestEnum String[] getDigests() {