diff options
author | Alex Klyubin <klyubin@google.com> | 2015-05-19 18:07:21 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-05-19 18:07:22 +0000 |
commit | 8ec2bed833a6210d2e5b02e8cefb5c7e7da73610 (patch) | |
tree | 38cb12a68a7ec0ac8fbaade382afd7dd4dcb00c9 /keystore/java | |
parent | 0b878e496f0a5ec74d39a865ff160baa38d399b2 (diff) | |
parent | e21f0231765492718f1284442136c2ae45e6dd93 (diff) | |
download | frameworks_base-8ec2bed833a6210d2e5b02e8cefb5c7e7da73610.zip frameworks_base-8ec2bed833a6210d2e5b02e8cefb5c7e7da73610.tar.gz frameworks_base-8ec2bed833a6210d2e5b02e8cefb5c7e7da73610.tar.bz2 |
Merge "Use consistent name for KeyPairGeneratorSpi." into mnc-dev
Diffstat (limited to 'keystore/java')
-rw-r--r-- | keystore/java/android/security/keystore/AndroidKeyStoreKeyPairGeneratorSpi.java (renamed from keystore/java/android/security/keystore/AndroidKeyPairGeneratorSpi.java) | 15 | ||||
-rw-r--r-- | keystore/java/android/security/keystore/AndroidKeyStoreProvider.java | 4 |
2 files changed, 10 insertions, 9 deletions
diff --git a/keystore/java/android/security/keystore/AndroidKeyPairGeneratorSpi.java b/keystore/java/android/security/keystore/AndroidKeyStoreKeyPairGeneratorSpi.java index 2c393fd..4b45fd7 100644 --- a/keystore/java/android/security/keystore/AndroidKeyPairGeneratorSpi.java +++ b/keystore/java/android/security/keystore/AndroidKeyStoreKeyPairGeneratorSpi.java @@ -52,19 +52,19 @@ import java.util.Locale; * <p> * This class can not be directly instantiated and must instead be used via the * {@link KeyPairGenerator#getInstance(String) - * KeyPairGenerator.getInstance("AndroidKeyPairGenerator")} API. + * KeyPairGenerator.getInstance("AndroidKeyStore")} API. * - * {@hide} + * @hide */ -public abstract class AndroidKeyPairGeneratorSpi extends KeyPairGeneratorSpi { +public abstract class AndroidKeyStoreKeyPairGeneratorSpi extends KeyPairGeneratorSpi { - public static class RSA extends AndroidKeyPairGeneratorSpi { + public static class RSA extends AndroidKeyStoreKeyPairGeneratorSpi { public RSA() { super(KeyProperties.KEY_ALGORITHM_RSA); } } - public static class EC extends AndroidKeyPairGeneratorSpi { + public static class EC extends AndroidKeyStoreKeyPairGeneratorSpi { public EC() { super(KeyProperties.KEY_ALGORITHM_EC); } @@ -94,7 +94,7 @@ public abstract class AndroidKeyPairGeneratorSpi extends KeyPairGeneratorSpi { private int mKeyType; private int mKeySize; - protected AndroidKeyPairGeneratorSpi(@KeyProperties.KeyAlgorithmEnum String algorithm) { + protected AndroidKeyStoreKeyPairGeneratorSpi(@KeyProperties.KeyAlgorithmEnum String algorithm) { mAlgorithm = algorithm; } @@ -283,7 +283,8 @@ public abstract class AndroidKeyPairGeneratorSpi extends KeyPairGeneratorSpi { @Override public void initialize(int keysize, SecureRandom random) { - throw new IllegalArgumentException("cannot specify keysize with AndroidKeyPairGenerator"); + throw new IllegalArgumentException( + "cannot specify keysize with AndroidKeyStore KeyPairGenerator"); } @Override diff --git a/keystore/java/android/security/keystore/AndroidKeyStoreProvider.java b/keystore/java/android/security/keystore/AndroidKeyStoreProvider.java index 71fdb69..649a515 100644 --- a/keystore/java/android/security/keystore/AndroidKeyStoreProvider.java +++ b/keystore/java/android/security/keystore/AndroidKeyStoreProvider.java @@ -49,8 +49,8 @@ public class AndroidKeyStoreProvider extends Provider { put("KeyStore.AndroidKeyStore", PACKAGE_NAME + ".AndroidKeyStoreSpi"); // java.security.KeyPairGenerator - put("KeyPairGenerator.EC", PACKAGE_NAME + ".AndroidKeyPairGeneratorSpi$EC"); - put("KeyPairGenerator.RSA", PACKAGE_NAME + ".AndroidKeyPairGeneratorSpi$RSA"); + put("KeyPairGenerator.EC", PACKAGE_NAME + ".AndroidKeyStoreKeyPairGeneratorSpi$EC"); + put("KeyPairGenerator.RSA", PACKAGE_NAME + ".AndroidKeyStoreKeyPairGeneratorSpi$RSA"); // javax.crypto.KeyGenerator put("KeyGenerator.AES", PACKAGE_NAME + ".AndroidKeyStoreKeyGeneratorSpi$AES"); |