Home
last modified time | relevance | path

Searched refs:KeyPairGeneratorSpec (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/keystore/tests/src/android/security/
DKeyPairGeneratorSpecTest.java42 KeyPairGeneratorSpec spec = in testConstructor_Success()
43 new KeyPairGeneratorSpec(getContext(), TEST_ALIAS_1, "RSA", 1024, null, TEST_DN_1, in testConstructor_Success()
62 KeyPairGeneratorSpec spec = new KeyPairGeneratorSpec.Builder(getContext()) in testBuilder_Success()
92 … new KeyPairGeneratorSpec(null, TEST_ALIAS_1, "RSA", 1024, null, TEST_DN_1, SERIAL_1, NOW, in testConstructor_NullContext_Failure()
101 … new KeyPairGeneratorSpec(getContext(), null, "RSA", 1024, null, TEST_DN_1, SERIAL_1, NOW, in testConstructor_NullKeystoreAlias_Failure()
110 … new KeyPairGeneratorSpec(getContext(), TEST_ALIAS_1, "RSA", 1024, null, null, SERIAL_1, NOW, in testConstructor_NullSubjectDN_Failure()
119 … new KeyPairGeneratorSpec(getContext(), TEST_ALIAS_1, "RSA", 1024, null, TEST_DN_1, null, NOW, in testConstructor_NullSerial_Failure()
128 … new KeyPairGeneratorSpec(getContext(), TEST_ALIAS_1, "RSA", 1024, null, TEST_DN_1, SERIAL_1, in testConstructor_NullStartDate_Failure()
137 … new KeyPairGeneratorSpec(getContext(), TEST_ALIAS_1, "RSA", 1024, null, TEST_DN_1, SERIAL_1, in testConstructor_NullEndDate_Failure()
146 … new KeyPairGeneratorSpec(getContext(), TEST_ALIAS_1, "RSA", 1024, null, TEST_DN_1, SERIAL_1, in testConstructor_EndBeforeStart_Failure()
/frameworks/base/keystore/tests/src/android/security/keystore/
DAndroidKeyPairGeneratorTest.java20 import android.security.KeyPairGeneratorSpec;
96 mGenerator.initialize(new KeyPairGeneratorSpec.Builder(getContext()) in testKeyPairGenerator_Initialize_Params_Encrypted_Success()
132 new KeyPairGeneratorSpec.Builder(getContext()) in testKeyPairGenerator_Initialize_ParamsAndSecureRandom_Encrypted_Failure()
148 mGenerator.initialize(new KeyPairGeneratorSpec.Builder(getContext()) in testKeyPairGenerator_GenerateKeyPair_Encrypted_Success()
185 mGenerator.initialize(new KeyPairGeneratorSpec.Builder(getContext()) in testKeyPairGenerator_Legacy_GenerateKeyPair_EC_Unencrypted_Success()
202 mGenerator.initialize(new KeyPairGeneratorSpec.Builder(getContext()) in testKeyPairGenerator_GenerateKeyPair_EC_P521_Unencrypted_Success()
220 mGenerator.initialize(new KeyPairGeneratorSpec.Builder(getContext()) in testKeyPairGenerator_GenerateKeyPair_RSA_Unencrypted_Success()
238 mGenerator.initialize(new KeyPairGeneratorSpec.Builder(getContext()) in testKeyPairGenerator_GenerateKeyPair_RSA_WithParams_Unencrypted_Success()
258 mGenerator.initialize(new KeyPairGeneratorSpec.Builder(getContext()) in testKeyPairGenerator_GenerateKeyPair_Replaced_Success()
273 mGenerator.initialize(new KeyPairGeneratorSpec.Builder(getContext()) in testKeyPairGenerator_GenerateKeyPair_Replaced_Success()
[all …]
/frameworks/base/keystore/java/android/security/
DKeyPairGeneratorSpec.java61 public final class KeyPairGeneratorSpec implements AlgorithmParameterSpec { class
115 public KeyPairGeneratorSpec(Context context, String keyStoreAlias, String keyType, int keySize, in KeyPairGeneratorSpec() method in KeyPairGeneratorSpec
447 public KeyPairGeneratorSpec build() { in build()
448 return new KeyPairGeneratorSpec(mContext, in build()
/frameworks/base/keystore/java/android/security/keystore/
DAndroidKeyStoreKeyPairGeneratorSpi.java21 import android.security.KeyPairGeneratorSpec;
171 KeyGenParameterSpec.class.getName() + " or " + KeyPairGeneratorSpec.class.getName() in initialize()
185 + " or " + KeyPairGeneratorSpec.class.getName()); in initialize()
193 } else if (params instanceof KeyPairGeneratorSpec) { in initialize()
195 KeyPairGeneratorSpec legacySpec = (KeyPairGeneratorSpec) params; in initialize()
282 + ", " + KeyPairGeneratorSpec.class.getName()); in initialize()
/frameworks/base/docs/html/training/articles/
Dkeystore.jd159 with {@link android.security.KeyPairGeneratorSpec}:</p>
450 initialized {@link android.security.KeyPairGeneratorSpec} whose key type is set to "EC"
451 using {@link android.security.KeyPairGeneratorSpec.Builder#setKeyType(String)}. EC curve
/frameworks/base/docs/html/about/versions/
Dandroid-4.3.jd1086 {@link java.security.KeyPairGenerator} with {@link android.security.KeyPairGeneratorSpec}. First
1090 {@link android.security.KeyPairGeneratorSpec}, which you can get using
1091 {@link android.security.KeyPairGeneratorSpec.Builder KeyPairGeneratorSpec.Builder}.
/frameworks/base/api/
Dcurrent.txt28278 …public final deprecated class KeyPairGeneratorSpec implements java.security.spec.AlgorithmParamete…
28291 public static final deprecated class KeyPairGeneratorSpec.Builder {
28292 ctor public KeyPairGeneratorSpec.Builder(android.content.Context);
28293 method public android.security.KeyPairGeneratorSpec build();
28294 …method public android.security.KeyPairGeneratorSpec.Builder setAlgorithmParameterSpec(java.securit…
28295 method public android.security.KeyPairGeneratorSpec.Builder setAlias(java.lang.String);
28296 method public android.security.KeyPairGeneratorSpec.Builder setEncryptionRequired();
28297 method public android.security.KeyPairGeneratorSpec.Builder setEndDate(java.util.Date);
28298 method public android.security.KeyPairGeneratorSpec.Builder setKeySize(int);
28299 …method public android.security.KeyPairGeneratorSpec.Builder setKeyType(java.lang.String) throws ja…
[all …]
Dsystem-current.txt30337 …public final deprecated class KeyPairGeneratorSpec implements java.security.spec.AlgorithmParamete…
30350 public static final deprecated class KeyPairGeneratorSpec.Builder {
30351 ctor public KeyPairGeneratorSpec.Builder(android.content.Context);
30352 method public android.security.KeyPairGeneratorSpec build();
30353 …method public android.security.KeyPairGeneratorSpec.Builder setAlgorithmParameterSpec(java.securit…
30354 method public android.security.KeyPairGeneratorSpec.Builder setAlias(java.lang.String);
30355 method public android.security.KeyPairGeneratorSpec.Builder setEncryptionRequired();
30356 method public android.security.KeyPairGeneratorSpec.Builder setEndDate(java.util.Date);
30357 method public android.security.KeyPairGeneratorSpec.Builder setKeySize(int);
30358 …method public android.security.KeyPairGeneratorSpec.Builder setKeyType(java.lang.String) throws ja…
[all …]