Searched refs:ProtectionParameter (Results 1 - 12 of 12) sorted by relevance

/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
H A DMyLoadStoreParams.java33 KeyStore.ProtectionParameter protPar;
35 public MyLoadStoreParams(KeyStore.ProtectionParameter p) {
39 public KeyStore.ProtectionParameter getProtectionParameter() {
H A DTestKeyStoreSpi.java16 import java.security.KeyStore.ProtectionParameter;
169 ProtectionParameter pParam = param.getProtectionParameter();
247 ProtectionParameter pParam = param.getProtectionParameter();
H A DKeyStoreTestSupport.java166 * Additional class to create ProtectionParameter object
168 public static class ProtPar implements KeyStore.ProtectionParameter {
/libcore/luni/src/main/java/java/security/
H A DKeyStore.java618 * {@code ProtectionParameter}.
623 * the {@code ProtectionParameter} used to protect the requested
626 * {@code ProtectionParameter}.
636 public final Entry getEntry(String alias, ProtectionParameter param)
650 * specified {@code ProtectionParameter}.
659 * the {@code ProtectionParameter} to protect the entry.
667 ProtectionParameter param) throws KeyStoreException {
729 * Returns the {@code ProtectionParameter} to be used when a {@code
735 * @return the {@code ProtectionParameter} to be used when a {@code
746 public abstract ProtectionParameter getProtectionParamete
1169 public static interface ProtectionParameter { interface in class:KeyStore
[all...]
H A DKeyStoreSpi.java304 KeyStore.ProtectionParameter pp = param.getProtectionParameter();
329 * {@code ProtectionParameter}.
334 * the {@code ProtectionParameter}, used to protect the requested
337 * {@code ProtectionParameter}.
346 KeyStore.ProtectionParameter protParam) throws KeyStoreException,
367 throw new UnrecoverableEntryException("ProtectionParameter object is not "
387 * specified {@code ProtectionParameter}.
396 * the {@code ProtectionParameter} to protect the entry.
401 KeyStore.ProtectionParameter protParam) throws KeyStoreException {
499 static char[] getPasswordFromCallBack(KeyStore.ProtectionParameter protPara
[all...]
/libcore/luni/src/test/java/tests/api/javax/net/ssl/
H A DKeyStoreBuilderParametersTest.java40 KeyStore.ProtectionParameter pp = new ProtectionParameterImpl();
97 private static class ProtectionParameterImpl implements KeyStore.ProtectionParameter {
H A DKeyManagerFactory1Test.java504 KeyStore.ProtectionParameter pp = new ProtectionParameterImpl();
530 class ProtectionParameterImpl implements KeyStore.ProtectionParameter {
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
H A DKeyStore4Test.java24 import java.security.KeyStore.ProtectionParameter;
358 public ProtectionParameter getProtectionParameter() {
387 public ProtectionParameter getProtectionParameter() {
406 public ProtectionParameter getProtectionParameter() {
422 public ProtectionParameter getProtectionParameter() {
514 public ProtectionParameter getProtectionParameter() {
530 public ProtectionParameter getProtectionParameter() {
547 public ProtectionParameter getProtectionParameter() {
548 return new KeyStore.ProtectionParameter() {};
576 Entry entry = keyStore.getEntry("certalias", new KeyStore.ProtectionParameter() {});
[all...]
H A DKeyStoreBuilderTest.java87 * test for method newInstance(KeyStore, KeyStore.ProtectionParameter)
113 fail("NullPointerException must be thrown when ProtectionParameter is null");
120 KeyStore.ProtectionParameter[] pp = { protPass, protPass1,
167 KeyStore.ProtectionParameter pPar = ksB
192 * file, ProtectionParameter protectionParameter)</code> <code>getKeyStore()</code>
196 * IllegalArgumentException if ProtectionParameter is not PasswordProtection
202 * ProtectionParameter which is used in newInstance(...)
232 fail("NullPointerException must be thrown when ProtectionParameter is null");
238 fail("IllegalArgumentException must be thrown when ProtectionParameter is not correct");
265 // Exception Tests with custom ProtectionParameter
[all...]
H A DKeyStoreSpiTest.java26 import java.security.KeyStore.ProtectionParameter;
232 class BadKeyStoreProtectionParameter implements ProtectionParameter {}
/libcore/luni/src/test/java/tests/targets/security/
H A DKeyStoreTest.java28 import java.security.KeyStore.ProtectionParameter;
/libcore/luni/src/test/java/libcore/java/security/
H A DKeyStoreTest.java34 import java.security.KeyStore.ProtectionParameter;
85 private static final ProtectionParameter PARAM_STORE = new PasswordProtection(PASSWORD_STORE);
86 private static final ProtectionParameter PARAM_KEY = new PasswordProtection(PASSWORD_KEY);
87 private static final ProtectionParameter PARAM_BAD = new PasswordProtection(PASSWORD_BAD);
1819 public ProtectionParameter getProtectionParameter() {
1950 public static class FakeProtectionParameter implements ProtectionParameter {
1968 fail("Should not accept unknown ProtectionParameter: " + keyStore.getProvider());

Completed in 891 milliseconds