Home
last modified time | relevance | path

Searched refs:installKeyPair (Results 1 – 10 of 10) sorted by relevance

/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DKeyManagementTest.java144 .installKeyPair(DPC_COMPONENT_NAME, PRIVATE_KEY, CERTIFICATE, in installKeyPair_validRsaKeyPair_success()
157 () -> sDeviceState.dpc().devicePolicyManager().installKeyPair( in installKeyPair_nullPrivateKey_throwException()
166 () -> sDeviceState.dpc().devicePolicyManager().installKeyPair( in installKeyPair_nullCertificate_throwException()
175 () -> sDeviceState.dpc().devicePolicyManager().installKeyPair( in installKeyPair_nullAdminComponent_throwException()
186 sDeviceState.dpc().devicePolicyManager().installKeyPair(DPC_COMPONENT_NAME, PRIVATE_KEY, in installKeyPair_withAutomatedAccess_aliasIsGranted()
204 sDeviceState.dpc().devicePolicyManager().installKeyPair(DPC_COMPONENT_NAME, PRIVATE_KEY, in installKeyPair_withoutAutomatedAccess_aliasIsNotGranted()
223 .installKeyPair(DPC_COMPONENT_NAME, PRIVATE_KEY, CERTIFICATE, RSA_ALIAS); in removeKeyPair_validRsaKeyPair_success()
246 .installKeyPair(DPC_COMPONENT_NAME, PRIVATE_KEY, CERTIFICATE, RSA_ALIAS); in hasKeyPair_installedAlias_true()
262 .installKeyPair(DPC_COMPONENT_NAME, PRIVATE_KEY, CERTIFICATE, RSA_ALIAS); in hasKeyPair_removedAlias_false()
279 .installKeyPair(DPC_COMPONENT_NAME, PRIVATE_KEY, CERTIFICATE, RSA_ALIAS); in choosePrivateKeyAlias_aliasIsSelectedByAdmin_returnAlias()
[all …]
DCredentialManagementAppTest.java118 () -> sDevicePolicyManager.installKeyPair(/* admin = */ null, PRIVATE_KEY, in installKeyPair_withoutManageCredentialAppOp_throwsException()
155 () -> sDevicePolicyManager.installKeyPair(/* admin = */ null, PRIVATE_KEY, in installKeyPair_isUserSelectableFlagSet_throwsException()
165 () -> sDevicePolicyManager.installKeyPair(/* admin = */ null, PRIVATE_KEY, in installKeyPair_aliasIsNotInAuthenticationPolicy_throwsException()
176 assertThat(sDevicePolicyManager.installKeyPair(/* admin = */ null, PRIVATE_KEY, in installKeyPair_isCredentialManagementApp_success()
203 sDevicePolicyManager.installKeyPair(/* admin = */ null, PRIVATE_KEY, CERTIFICATES, in hasKeyPair_isCredentialManagementApp_success()
220 sDevicePolicyManager.installKeyPair(/* admin = */ null, PRIVATE_KEY, CERTIFICATES, in removeKeyPair_isCredentialManagementApp_success()
285 sDevicePolicyManager.installKeyPair(null, PRIVATE_KEY, new Certificate[]{CERTIFICATE}, in choosePrivateKeyAlias_isCredentialManagementApp_aliasSelected()
/cts/hostsidetests/devicepolicy/app/CertInstaller/src/com/android/cts/certinstaller/
DDirectDelegatedCertInstallerTest.java133 assertThat(mDpm.installKeyPair(null, mTestPrivateKey, new Certificate[]{mTestCertificate}, in testInstallKeyPair()
213 mDpm.installKeyPair(null, mTestPrivateKey, new Certificate[]{mTestCertificate}, TEST_ALIAS, in testHasKeyPair_Installed()
220 mDpm.installKeyPair(null, mTestPrivateKey, new Certificate[]{mTestCertificate}, TEST_ALIAS, in testHasKeyPair_Removed()
229 mDpm.installKeyPair(null, mTestPrivateKey, new Certificate[]{mTestCertificate}, TEST_ALIAS, in testGetKeyPairGrants_Empty()
237 mDpm.installKeyPair(null, mTestPrivateKey, new Certificate[]{mTestCertificate}, TEST_ALIAS, in testGetKeyPairGrants_NonEmpty()
245 mDpm.installKeyPair(null, mTestPrivateKey, new Certificate[]{mTestCertificate}, in testIsWifiGrant_default()
252 mDpm.installKeyPair(null, mTestPrivateKey, new Certificate[]{mTestCertificate}, in testIsWifiGrant_allowed()
260 mDpm.installKeyPair(null, mTestPrivateKey, new Certificate[]{mTestCertificate}, in testIsWifiGrant_denied()
DCertSelectionDelegateTest.java107 assertThat(mDpm.installKeyPair(null, privKey, cert, alias)).isTrue(); in testCanSelectKeychainKeypairs()
DCertInstallerReceiver.java141 sendResult(context, dpm.installKeyPair(null, privatekey, certificate, alias), in onReceive()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DDelegatedCertInstallerTest.java176 installKeyPair(TestCertificates.TEST_KEY, TestCertificates.TEST_CERT, alias); in testInstallKeyPair()
186 installKeyPair(TestCertificates.TEST_KEY, TestCertificates.TEST_CERT, alias); in testInstallKeyPair()
314 private void installKeyPair(String key, String cert, String alias) { in installKeyPair() method in DelegatedCertInstallerTest
DWifiTest.java145 assertTrue(mDevicePolicyManager.installKeyPair(ADMIN, getTestKey(), in prepareTestKeyPair()
DKeyManagementTest.java141 mDevicePolicyManager.installKeyPair( in testCanInstallWithAutomaticAccess()
177 assertThat(mDevicePolicyManager.installKeyPair(getWho(), privKey, certChain, alias, true)) in testCanInstallCertChain()
728 mDevicePolicyManager.installKeyPair(getWho(), mFakePrivKey, new Certificate[]{mFakeCert}, in testGetKeyPairGrants_SharedUid()
739 mDevicePolicyManager.installKeyPair(getWho(), mFakePrivKey, new Certificate[]{mFakeCert}, in testGetKeyPairGrants_DifferentUids()
/cts/hostsidetests/devicepolicy/app/DelegateApp/src/com/android/cts/delegate/
DCertInstallDelegateTest.java87 mDpm.installKeyPair(null, privateKey, certificate, alias)); in testCanAccessApis()
/cts/common/device-side/bedstead/dpmwrapper/src/main/java/com/android/bedstead/dpmwrapper/
DDevicePolicyManagerWrapper.java275 doAnswer(answer).when(spy).installKeyPair(any(), any(), any(), any()); in getWrapper()