Home
last modified time | relevance | path

Searched refs:PasswordProtection (Results 1 – 15 of 15) sorted by relevance

/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DKSPasswordProtectionTest.java51 KeyStore.PasswordProtection ksPWP = new KeyStore.PasswordProtection(pass); in testGetPassword()
68 ksPWP = new KeyStore.PasswordProtection(null); in testGetPassword()
86 KeyStore.PasswordProtection ksPWP; in testGetProtectionAlgorithm()
88 ksPWP = new KeyStore.PasswordProtection( in testGetProtectionAlgorithm()
93 ksPWP = new KeyStore.PasswordProtection( in testGetProtectionAlgorithm()
110 KeyStore.PasswordProtection ksPWP = in testGetProtectionParameters()
111 new KeyStore.PasswordProtection( in testGetProtectionParameters()
114 ksPWP = new KeyStore.PasswordProtection( in testGetProtectionParameters()
DKeyStoreBuilderTest.java47 private KeyStore.PasswordProtection protPass = new KeyStore.PasswordProtection(
118 KeyStore.PasswordProtection protPass1 = new KeyStore.PasswordProtection( in testNewInstanceKeyStoreProtectionParameter()
172 assertTrue(pPar instanceof KeyStore.PasswordProtection); in testNewInstanceKeyStoreProtectionParameter()
175 assertTrue(pPar instanceof KeyStore.PasswordProtection); in testNewInstanceKeyStoreProtectionParameter()
DKeyStore4Test.java359 return new KeyStore.PasswordProtection("PASSWORD".toCharArray()); in testStoreLoadStoreParameter()
407 return new KeyStore.PasswordProtection("".toCharArray()); in testStoreLoadStoreParameter()
423 return new KeyStore.PasswordProtection(null); in testStoreLoadStoreParameter()
515 return new KeyStore.PasswordProtection("PASSWORD".toCharArray()); in testLoadLoadStoreParameter()
589 … Entry entry = keyStore.getEntry("keyalias", new KeyStore.PasswordProtection(new char[] {} )); in testGetEntry()
601 keyStore.getEntry("unknownalias", new KeyStore.PasswordProtection(new char[] {})); in testGetEntry()
DKeyStoreTest.java132 new KeyStore.PasswordProtection(new char[0])); in testLoadStore02()
234 assertNull(new KeyStore.PasswordProtection(null).getPassword()); in testKeyStorePPGetPassword()
236 KeyStore.PasswordProtection pp = new KeyStore.PasswordProtection(password); in testKeyStorePPGetPassword()
DKeyStore2Test.java631 KeyStore.PasswordProtection pp = new KeyStore.PasswordProtection(pssWord); in test_deleteEntry()
670 KeyStore.PasswordProtection pp = new KeyStore.PasswordProtection( in test_getCreationDate()
731 keyTest.getEntry("anAlias", new KeyStore.PasswordProtection(new char[] {})); in test_getEntry()
739 keyTest.getEntry(null, new KeyStore.PasswordProtection(new char[] {})); in test_getEntry()
765 KeyStore.PasswordProtection pp = new KeyStore.PasswordProtection(pssWord); in test_getEntry()
815 KeyStore.PasswordProtection pp = new KeyStore.PasswordProtection(pssWord); in test_setEntry()
/libcore/ojluni/src/main/java/java/security/
DKeyStoreSpi.java398 if (protection instanceof PasswordProtection) { in engineLoad()
399 password = ((PasswordProtection)protection).getPassword(); in engineLoad()
494 if ((protParam == null) || protParam instanceof KeyStore.PasswordProtection) { in engineGetEntry()
507 KeyStore.PasswordProtection pp = in engineGetEntry()
508 (KeyStore.PasswordProtection)protParam; in engineGetEntry()
548 !(protParam instanceof KeyStore.PasswordProtection)) { in engineSetEntry()
551 KeyStore.PasswordProtection pProtect = null; in engineSetEntry()
553 pProtect = (KeyStore.PasswordProtection)protParam; in engineSetEntry()
DKeyStore.java298 public static class PasswordProtection implements class in KeyStore
314 public PasswordProtection(char[] password) { in PasswordProtection() method in KeyStore.PasswordProtection
341 public PasswordProtection(char[] password, String protectionAlgorithm, in PasswordProtection() method in KeyStore.PasswordProtection
1998 if ((protection instanceof PasswordProtection == false) && in newInstance()
2117 if (protection instanceof PasswordProtection) { in getKeyStore()
2119 ((PasswordProtection)protection).getPassword(); in getKeyStore()
2135 keyProtection = new PasswordProtection(password); in getKeyStore()
/libcore/ojluni/src/test/java/security/KeyStore/
DTestKeystoreBasic.java236 KeyStore.PasswordProtection pw = in runTest()
237 new KeyStore.PasswordProtection(PASSWD2, CRYPTO_ALG, null); in runTest()
241 ks.setEntry(alias, entry, new KeyStore.PasswordProtection(PASSWD2)); in runTest()
247 KeyStore.PasswordProtection pw, KeyStore.Entry entry) throws Exception { in checkSetEntry()
258 KeyStore.PasswordProtection pw) throws Exception { in checkGetEntry()
DProbeKeystores.java46 new MyLoadStoreParameter(new PasswordProtection(PASSWORD));
112 new PasswordProtection(PASSWORD)); in init()
161 new PasswordProtection(PASSWORD)); in build()
DKeyStoreBuilder.java57 builder = Builder.newInstance("PKCS12", null, new PasswordProtection(password)); in testBuilder()
64 builder = Builder.newInstance("BouncyCastle", null, new PasswordProtection(password)); in testBuilder()
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
DTestKeyStoreSpi.java32 import java.security.KeyStore.PasswordProtection;
191 if (pParam instanceof PasswordProtection) { in engineLoad()
192 char[] password = ((PasswordProtection) pParam).getPassword(); in engineLoad()
265 if (pParam instanceof PasswordProtection) { in engineStore()
266 char[] password = ((PasswordProtection) pParam).getPassword(); in engineStore()
/libcore/luni/src/test/java/tests/targets/security/
DKeyStoreTest.java26 import java.security.KeyStore.PasswordProtection;
137 new PasswordProtection(passwordCharArray)); in createAndTest()
150 "aPrivateKey", new PasswordProtection(passwordCharArray)); in createAndTest()
/libcore/ojluni/annotations/hiddenapi/java/security/
DKeyStore.java333 public static class PasswordProtection class in KeyStore
336 public PasswordProtection(char[] password) { in PasswordProtection() method in KeyStore.PasswordProtection
340 public PasswordProtection( in PasswordProtection() method in KeyStore.PasswordProtection
/libcore/support/src/test/java/libcore/java/security/
DTestKeyStore.java28 import java.security.KeyStore.PasswordProtection;
832 PasswordProtection password = new PasswordProtection(keyPassword); in privateKey()
/libcore/api/
Dcurrent.txt8235 …public static class KeyStore.PasswordProtection implements javax.security.auth.Destroyable java.se…
8236 ctor public KeyStore.PasswordProtection(char[]);
8237 …ctor public KeyStore.PasswordProtection(char[], String, java.security.spec.AlgorithmParameterSpec);