/external/chromium-trace/catapult/third_party/gsutil/third_party/oauth2client/oauth2client/ |
keyring_storage.py | 17 A Storage for Credentials that uses the keyring module. 26 from oauth2client.client import Credentials 47 credentials = s.get() 55 service_name: string, The name of the service under which the credentials 57 user_name: string, The name of the user to store credentials for. 81 oauth2client.client.Credentials 83 credentials = None 88 credentials = Credentials.new_from_json(content) 89 credentials.set_store(self [all...] |
file.py | 18 credentials. 26 from oauth2client.client import Credentials 31 """Credentials files must not be symbolic links.""" 64 oauth2client.client.Credentials 69 credentials = None 76 return credentials 79 credentials = Credentials.new_from_json(content) 80 credentials.set_store(self) 84 return credentials [all...] |
/external/libchrome/sandbox/linux/services/ |
namespace_utils_unittest.cc | 15 #include "sandbox/linux/services/credentials.h" 24 const bool can_create_user_ns = Credentials::CanCreateProcessInNewUserNS(); 36 if (!Credentials::CanCreateProcessInNewUserNS()) {
|
/external/okhttp/samples/guide/src/main/java/com/squareup/okhttp/recipes/ |
Authenticate.java | 19 import com.squareup.okhttp.Credentials; 34 String credential = Credentials.basic("jesse", "password1");
|
/frameworks/base/keystore/java/android/security/ |
Credentials.java | 48 public class Credentials { 49 private static final String LOGTAG = "Credentials"; 51 public static final String INSTALL_ACTION = "android.credentials.INSTALL"; 53 public static final String INSTALL_AS_USER_ACTION = "android.credentials.INSTALL_AS_USER"; 55 public static final String UNLOCK_ACTION = "com.android.credentials.UNLOCK"; 171 private static Credentials singleton; 173 public static Credentials getInstance() { 175 singleton = new Credentials(); 262 return keystore.delete(Credentials.USER_CERTIFICATE + alias, uid) 263 & keystore.delete(Credentials.CA_CERTIFICATE + alias, uid) [all...] |
/external/chromium-trace/catapult/third_party/gsutil/third_party/oauth2client/tests/ |
test_django_orm.py | 39 from oauth2client.client import Credentials 56 self.credentials = Credentials() 57 self.pickle = base64.b64encode(pickle.dumps(self.credentials)) 63 self.assertTrue(isinstance(self.field.to_python(self.pickle), Credentials)) 66 prep_value = self.field.get_db_prep_value(self.credentials,
|
test_gce.py | 29 from oauth2client.client import Credentials 65 c2 = Credentials.new_from_json(json) 70 credentials = AppAssertionCredentials([]) 71 self.assertTrue(credentials.create_scoped_required()) 74 credentials = AppAssertionCredentials(['dummy_scope']) 75 self.assertFalse(credentials.create_scoped_required()) 78 credentials = AppAssertionCredentials([]) 79 new_credentials = credentials.create_scoped(['dummy_scope']) 80 self.assertNotEqual(credentials, new_credentials) 90 credentials = AppAssertionCredentials(['dummy_scope'] [all...] |
/packages/apps/Settings/src/com/android/settings/wifi/ |
AdvancedWifiSettings.java | 26 import android.security.Credentials; 85 Intent intent = new Intent(Credentials.INSTALL_AS_USER_ACTION); 88 intent.putExtra(Credentials.EXTRA_INSTALL_AS_UID, android.os.Process.WIFI_UID);
|
/packages/apps/Settings/src/com/android/settings/ |
CredentialStorage.java | 34 import android.security.Credentials; 97 public static final String ACTION_UNLOCK = "com.android.credentials.UNLOCK"; 98 public static final String ACTION_INSTALL = "com.android.credentials.INSTALL"; 99 public static final String ACTION_RESET = "com.android.credentials.RESET"; 111 * When non-null, the bundle containing credentials to install. 142 // credentials store. 227 * Install credentials if available, otherwise do nothing. 237 final int uid = bundle.getInt(Credentials.EXTRA_INSTALL_AS_UID, KeyStore.UID_SELF); 245 Log.e(TAG, "Failed to install credentials as uid " + uid + ": cross-user installs" 257 if (bundle.containsKey(Credentials.EXTRA_USER_PRIVATE_KEY_NAME)) [all...] |
UserCredentialsSettings.java | 32 import android.security.Credentials; 175 Log.w(TAG, "Removing credentials", e); 195 * Opens a background connection to KeyStore to list user credentials. 196 * The credentials are stored in a {@link CredentialAdapter} attached to the main 203 SortedMap<String, Credential> credentials = new TreeMap<>(); local 207 // Do not show work profile keys in user credentials 212 Credential c = credentials.get(alias); 214 credentials.put(alias, (c = new Credential(alias))); 219 return credentials; 223 protected void onPostExecute(SortedMap<String, Credential> credentials) { [all...] |
/external/apache-http/src/org/apache/http/impl/client/ |
DefaultUserTokenHandler.java | 39 import org.apache.http.auth.Credentials; 86 Credentials creds = authState.getCredentials();
|
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/integration/sts/ |
test_session_token.py | 31 from boto.sts.credentials import Credentials 49 token_copy = Credentials.load('token.json')
|
/frameworks/opt/net/wifi/tests/wifitests/src/android/net/wifi/ |
WifiEnterpriseConfigTest.java | 26 import android.security.Credentials; 42 public static final String CA_CERT_PREFIX = KEYSTORE_URI + Credentials.CA_CERTIFICATE; 92 WifiEnterpriseConfig.encodeCaCertificateAlias(Credentials.CA_CERTIFICATE + alias0), 93 WifiEnterpriseConfig.encodeCaCertificateAlias(Credentials.CA_CERTIFICATE + alias1))); 102 WifiEnterpriseConfig.encodeCaCertificateAlias(Credentials.CA_CERTIFICATE + alias0), 103 WifiEnterpriseConfig.encodeCaCertificateAlias(Credentials.CA_CERTIFICATE + alias1)));
|
/packages/apps/Settings/tests/app/src/com/android/settings/vpn2/ |
CertInstallerHelper.java | 20 import android.security.Credentials; 180 String key = Credentials.USER_PRIVATE_KEY + profile.ipsecUserCert; 191 String certName = Credentials.USER_CERTIFICATE + profile.ipsecUserCert; 192 byte[] certData = Credentials.convertToPem(mUserCert); 202 String caListName = Credentials.CA_CERTIFICATE + profile.ipsecCaCert; 204 byte[] caListData = Credentials.convertToPem(caCerts);
|
/packages/apps/KeyChain/src/com/android/keychain/ |
KeyChainService.java | 34 import android.security.Credentials; 102 final String keystoreAlias = Credentials.USER_PRIVATE_KEY + alias; 120 return mKeyStore.get(Credentials.USER_CERTIFICATE + alias); 125 return mKeyStore.get(Credentials.CA_CERTIFICATE + alias); 172 Log.e(TAG, "Keystore is " + mKeyStore.state().toString() + ". Credentials cannot" 179 if (!mKeyStore.importKey(Credentials.USER_PRIVATE_KEY + alias, privateKey, -1, 184 if (!mKeyStore.put(Credentials.USER_CERTIFICATE + alias, userCertificate, -1, 187 if (!mKeyStore.delete(Credentials.USER_PRIVATE_KEY + alias)) { 193 if (!mKeyStore.put(Credentials.CA_CERTIFICATE + alias, userCertificateChain, -1, 209 if (!Credentials.deleteAllTypesForAlias(mKeyStore, alias)) [all...] |
/packages/apps/CertInstaller/src/com/android/certinstaller/ |
CertInstallerMain.java | 26 import android.security.Credentials; 42 * to the public {@link Credentials#INSTALL_ACTION} intent. 83 if (Credentials.INSTALL_ACTION.equals(action) 84 || Credentials.INSTALL_AS_USER_ACTION.equals(action)) { 96 bundle.remove(Credentials.EXTRA_INSTALL_AS_UID); 99 // If bundle is empty of any actual credentials, ask user to open. 100 // Otherwise, pass extras to CertInstaller to install those credentials. 106 || bundle.containsKey(Credentials.EXTRA_INSTALL_AS_UID)))) {
|
/frameworks/base/keystore/tests/src/android/security/keystore/ |
AndroidKeyStoreTest.java | 23 import android.security.Credentials; [all...] |
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/ |
AuthenticatorAdapter.java | 20 import com.squareup.okhttp.Credentials; 50 String credential = Credentials.basic(auth.getUserName(), new String(auth.getPassword())); 74 String credential = Credentials.basic(auth.getUserName(), new String(auth.getPassword()));
|
/frameworks/base/keystore/java/android/security/keystore/ |
AndroidKeyStoreKeyFactorySpi.java | 19 import android.security.Credentials; 68 if (keyAliasInKeystore.startsWith(Credentials.USER_PRIVATE_KEY)) { 69 entryAlias = keyAliasInKeystore.substring(Credentials.USER_PRIVATE_KEY.length());
|
AndroidKeyStoreKeyGeneratorSpi.java | 19 import android.security.Credentials; 300 String keyAliasInKeystore = Credentials.USER_SECRET_KEY + spec.getKeystoreAlias(); 304 Credentials.deleteAllTypesForAlias(mKeyStore, spec.getKeystoreAlias(), spec.getUid()); 329 Credentials.deleteAllTypesForAlias(
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
WifiCertManager.java | 24 import android.security.Credentials; 84 if (mAffiliatedUserOnlyCerts.add(Credentials.USER_PRIVATE_KEY + key)) { 142 return KeyStore.getInstance().list(Credentials.USER_PRIVATE_KEY, UserHandle.myUserId());
|
/external/apache-http/src/org/apache/http/impl/auth/ |
NTLMScheme.java | 37 import org.apache.http.auth.Credentials; 113 final Credentials credentials, 117 ntcredentials = (NTCredentials) credentials; 120 "Credentials cannot be used for NTLM authentication: " 121 + credentials.getClass().getName());
|
/frameworks/base/core/tests/coretests/src/android/net/ |
LocalSocketTest.java | 19 import android.net.Credentials; 51 // Test getting credentials 52 Credentials c = ls1.getPeerCredentials();
|
/external/apache-http/src/org/apache/http/auth/ |
UsernamePasswordCredentials.java | 38 * Username and password {@link Credentials} 53 public class UsernamePasswordCredentials implements Credentials {
|
/packages/apps/Settings/src/com/android/settings/vpn2/ |
ConfigDialogFragment.java | 31 import android.security.Credentials; 80 Credentials.getInstance().unlock(getActivity()); 110 KeyStore.getInstance().put(Credentials.VPN + profile.key, profile.encode(), 132 keyStore.delete(Credentials.VPN + profile.key, KeyStore.UID_SELF);
|