Home
last modified time | relevance | path

Searched refs:credentials (Results 1 – 25 of 217) sorted by relevance

123456789

/external/dbus/dbus/
Ddbus-credentials.c116 _dbus_credentials_ref (DBusCredentials *credentials) in _dbus_credentials_ref() argument
118 _dbus_assert (credentials->refcount > 0); in _dbus_credentials_ref()
119 credentials->refcount += 1; in _dbus_credentials_ref()
128 _dbus_credentials_unref (DBusCredentials *credentials) in _dbus_credentials_unref() argument
130 _dbus_assert (credentials->refcount > 0); in _dbus_credentials_unref()
132 credentials->refcount -= 1; in _dbus_credentials_unref()
133 if (credentials->refcount == 0) in _dbus_credentials_unref()
135 dbus_free (credentials->windows_sid); in _dbus_credentials_unref()
136 dbus_free (credentials->adt_audit_data); in _dbus_credentials_unref()
137 dbus_free (credentials); in _dbus_credentials_unref()
[all …]
Ddbus-credentials.h42 void _dbus_credentials_ref (DBusCredentials *credentials);
43 void _dbus_credentials_unref (DBusCredentials *credentials);
44 dbus_bool_t _dbus_credentials_add_unix_pid (DBusCredentials *credentials,
46 dbus_bool_t _dbus_credentials_add_unix_uid (DBusCredentials *credentials,
48 dbus_bool_t _dbus_credentials_add_windows_sid (DBusCredentials *credentials,
50 dbus_bool_t _dbus_credentials_add_adt_audit_data (DBusCredentials *credentials,
53 dbus_bool_t _dbus_credentials_include (DBusCredentials *credentials,
55 dbus_pid_t _dbus_credentials_get_unix_pid (DBusCredentials *credentials);
56 dbus_uid_t _dbus_credentials_get_unix_uid (DBusCredentials *credentials);
57 const char* _dbus_credentials_get_windows_sid (DBusCredentials *credentials);
[all …]
Ddbus-credentials-util.c46 DBusCredentials *credentials; in make_credentials() local
48 credentials = _dbus_credentials_new (); in make_credentials()
52 if (!_dbus_credentials_add_unix_uid (credentials, unix_uid)) in make_credentials()
54 _dbus_credentials_unref (credentials); in make_credentials()
61 if (!_dbus_credentials_add_unix_pid (credentials, unix_pid)) in make_credentials()
63 _dbus_credentials_unref (credentials); in make_credentials()
70 if (!_dbus_credentials_add_windows_sid (credentials, windows_sid)) in make_credentials()
72 _dbus_credentials_unref (credentials); in make_credentials()
77 return credentials; in make_credentials()
/external/chromium-trace/catapult/third_party/gsutil/third_party/oauth2client/tests/
Dtest_file.py77 credentials = OAuth2Credentials(
81 return credentials
85 credentials = s.get()
86 self.assertEquals(None, credentials)
103 credentials = self.create_test_credentials()
106 pickle.dump(credentials, f)
116 s.put(credentials)
126 credentials = self.create_test_credentials(expiration=expiration)
129 s.put(credentials)
130 credentials = s.get()
[all …]
Dtest_oauth2client.py127 credentials = Credentials()
128 json = credentials.to_json()
190 def validate_service_account_credentials(self, credentials): argument
191 self.assertTrue(isinstance(credentials, _ServiceAccountCredentials))
192 self.assertEqual('123', credentials._service_account_id)
193 self.assertEqual('dummy@google.com', credentials._service_account_email)
194 self.assertEqual('ABCDEF', credentials._private_key_id)
195 self.assertEqual('', credentials._scopes)
197 def validate_google_credentials(self, credentials): argument
198 self.assertTrue(isinstance(credentials, GoogleCredentials))
[all …]
Dtest_appengine.py162 credentials = AppAssertionCredentials(scope)
164 self.assertRaises(AccessTokenRefreshError, credentials.refresh, http)
177 credentials = AppAssertionCredentials(scope)
179 credentials.refresh(http)
180 self.assertEqual('a_token_123', credentials.access_token)
182 json = credentials.to_json()
183 credentials = Credentials.new_from_json(json)
186 credentials.scope)
189 credentials = AppAssertionCredentials(scope)
191 credentials.refresh(http)
[all …]
Dtest_service_account.py48 self.credentials = _ServiceAccountCredentials(self.service_account_id,
55 private_key_id, signature = self.credentials.sign_blob('Google')
77 self.credentials.service_account_email)
80 self.assertTrue(self.credentials.create_scoped_required())
83 self.credentials = _ServiceAccountCredentials(self.service_account_id,
88 self.assertFalse(self.credentials.create_scoped_required())
91 new_credentials = self.credentials.create_scoped(self.scopes)
92 self.assertNotEqual(self.credentials, new_credentials)
105 token = self.credentials.get_access_token(http=http)
108 self.assertFalse(self.credentials.access_token_expired)
[all …]
Dtest_gce.py70 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'])
91 token = credentials.get_access_token(http=http)
104 credentials = AppAssertionCredentials([])
[all …]
Dtest_jwt.py212 credentials = SignedJwtAssertionCredentials(
221 http = credentials.authorize(http)
227 credentials = SignedJwtAssertionCredentials(
232 json = credentials.to_json()
234 self.assertEqual(credentials.private_key, restored.private_key)
235 self.assertEqual(credentials.private_key_password,
237 self.assertEqual(credentials.kwargs, restored.kwargs)
239 def _credentials_refresh(self, credentials): argument
246 http = credentials.authorize(http)
252 credentials = SignedJwtAssertionCredentials(
[all …]
Dtest_keyring.py41 credentials = s.get()
42 self.assertEquals(None, credentials)
50 credentials = s.get()
51 self.assertEquals(None, credentials)
62 credentials = OAuth2Credentials(
79 s.put(credentials)
82 'my_unit_test', 'me', credentials.to_json())
86 return_value=credentials.to_json(),
/external/jetty/src/java/org/eclipse/jetty/util/security/
DCredential.java60 public abstract boolean check(Object credentials); in check() argument
97 public boolean check(Object credentials) in check() argument
99 if (credentials instanceof char[]) in check()
100 credentials=new String((char[])credentials); in check()
101 if (!(credentials instanceof String) && !(credentials instanceof Password)) in check()
102 LOG.warn("Can't check " + credentials.getClass() + " against CRYPT"); in check()
104 String passwd = credentials.toString(); in check()
145 public boolean check(Object credentials) in check() argument
151 if (credentials instanceof char[]) in check()
152 credentials=new String((char[])credentials); in check()
[all …]
DPassword.java95 public boolean check(Object credentials) in check() argument
97 if (this == credentials) return true; in check()
99 if (credentials instanceof Password) return credentials.equals(_pw); in check()
101 if (credentials instanceof String) return credentials.equals(_pw); in check()
103 … if (credentials instanceof char[]) return Arrays.equals(_pw.toCharArray(), (char[]) credentials); in check()
105 if (credentials instanceof Credential) return ((Credential) credentials).check(_pw); in check()
/external/chromium-trace/catapult/dashboard/dashboard/
Dbuildbucket_service.py33 def __new__(cls, credentials): argument
34 if credentials and credentials != cls._singleton_credentials:
35 cls._singleton_credentials = credentials
36 cls._MakeSingleton(credentials)
49 credentials = override_credentials
51 credentials = utils.ServiceAccountCredentials()
55 if credentials:
56 credentials.authorize(cls._singleton)
59 def PutJob(job, bucket=_BUCKET_NAME, credentials=None): argument
68 response_content = request.execute(http=_AuthenticatedHttp(credentials))
[all …]
/external/chromium-trace/catapult/third_party/gsutil/third_party/oauth2client/oauth2client/
Dappengine.py298 credentials = Credentials.new_from_json(value)
300 credentials = None
301 return credentials
371 credentials = Credentials.new_from_json(value)
373 credentials = None
374 return credentials
459 credentials = None
463 credentials = Credentials.new_from_json(json)
464 if credentials is None:
467 credentials = getattr(entity, self._property_name)
[all …]
Dfile.py69 credentials = None
76 return credentials
79 credentials = Credentials.new_from_json(content)
80 credentials.set_store(self)
84 return credentials
99 def locked_put(self, credentials): argument
112 f.write(credentials.to_json())
Dkeyring_storage.py83 credentials = None
88 credentials = Credentials.new_from_json(content)
89 credentials.set_store(self)
93 return credentials
95 def locked_put(self, credentials): argument
102 credentials.to_json())
/external/jetty/src/java/org/eclipse/jetty/security/authentication/
DBasicAuthenticator.java67 String credentials = request.getHeader(HttpHeaders.AUTHORIZATION); in validateRequest() local
74 if (credentials != null) in validateRequest()
76 int space=credentials.indexOf(' '); in validateRequest()
79 String method=credentials.substring(0,space); in validateRequest()
82 credentials = credentials.substring(space+1); in validateRequest()
83 credentials = B64Code.decode(credentials,StringUtil.__ISO_8859_1); in validateRequest()
84 int i = credentials.indexOf(':'); in validateRequest()
87 String username = credentials.substring(0,i); in validateRequest()
88 String password = credentials.substring(i+1); in validateRequest()
/external/chromium-trace/catapult/third_party/gsutil/third_party/apitools/apitools/base/py/
Dcredentials_lib.py99 credentials = method(client_info, **kwds)
100 if credentials is not None:
101 return credentials
104 credentials = CredentialsFromFile(credentials_filename, client_info,
106 if credentials is not None:
107 return credentials
350 credentials = GceAssertionCredentials(scopes=[data['scope']],
353 credentials.access_token = data['access_token']
355 credentials.token_expiry = datetime.datetime.strptime(
358 credentials.invalid = data['invalid']
[all …]
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/unit/sts/
Dtest_connection.py76 self.assertEqual(response.credentials.access_key, 'accesskey')
77 self.assertEqual(response.credentials.secret_key, 'secretkey')
78 self.assertEqual(response.credentials.session_token, 'session_token')
97 self.assertEqual(response.credentials.access_key, 'accesskey')
98 self.assertEqual(response.credentials.secret_key, 'secretkey')
99 self.assertEqual(response.credentials.session_token, 'session_token')
167 response.credentials.access_key.strip(),
171 response.credentials.secret_key.strip(),
175 response.credentials.session_token.strip(),
236 self.assertEqual(response.credentials.access_key, 'accesskey')
[all …]
/external/autotest/client/cros/scripts/
Dwifi69 def connect(ssid, security, credentials, save_credentials, timeout=15): argument
86 credentials,
125 def parse_security_from_credentials(credentials): argument
134 security = credentials.pop(
196 credentials = {}
199 credentials[wifi_proxy.WifiProxy.SERVICE_PROPERTY_PASSPHRASE] = \
204 return connect(ssid, security, credentials, save_credentials)
208 credentials = {}
211 credentials.update((parse_service_property(args[i]),))
212 security = parse_security_from_credentials(credentials)
[all …]
/external/apache-http/src/org/apache/http/auth/
DAuthState.java56 private Credentials credentials; field in AuthState
72 this.credentials = null; in invalidate()
108 return this.credentials; in getCredentials()
117 public void setCredentials(final Credentials credentials) { in setCredentials() argument
118 this.credentials = credentials; in setCredentials()
147 buffer.append(this.credentials != null ? "true" : "false"); in toString()
/external/chromium-trace/catapult/third_party/gsutil/third_party/apitools/apitools/scripts/
Doauth2l.py120 def _Format(fmt, credentials): argument
123 return credentials.access_token
125 return 'Authorization: Bearer %s' % credentials.access_token
127 return _PrettyJson(json.loads(credentials.to_json()))
129 return _CompactJson(json.loads(credentials.to_json()))
137 return format_str.format(credentials=credentials,
138 credentials_type=type(credentials))
172 credentials = apitools_base.GetCredentials(
177 if not _ValidateToken(credentials.access_token):
178 credentials.refresh(apitools_base.GetHttp())
[all …]
/external/chromium-trace/catapult/third_party/gsutil/third_party/oauth2client/scripts/
Drun_system_tests.py41 def _check_user_info(credentials, expected_email): argument
42 http = credentials.authorize(httplib2.Http())
57 credentials = service_account._ServiceAccountCredentials(
65 _check_user_info(credentials, client_credentials['client_email'])
72 credentials = client.SignedJwtAssertionCredentials(
78 _check_user_info(credentials, P12_KEY_EMAIL)
85 credentials = client.GoogleCredentials(
95 _check_user_info(credentials, USER_KEY_EMAIL)
/external/apache-http/src/org/apache/http/impl/auth/
DBasicScheme.java136 final Credentials credentials, in authenticate() argument
139 if (credentials == null) { in authenticate()
147 return authenticate(credentials, charset, isProxy()); in authenticate()
160 final Credentials credentials, in authenticate() argument
163 if (credentials == null) { in authenticate()
171 tmp.append(credentials.getUserPrincipal().getName()); in authenticate()
173 tmp.append((credentials.getPassword() == null) ? "null" : credentials.getPassword()); in authenticate()
/external/curl/lib/
Dcurl_sasl_sspi.c127 CredHandle credentials; in Curl_sasl_create_digest_md5_message() local
208 &credentials, &expiry); in Curl_sasl_create_digest_md5_message()
236 status = s_pSecFn->InitializeSecurityContext(&credentials, NULL, spn, in Curl_sasl_create_digest_md5_message()
243 s_pSecFn->CompleteAuthToken(&credentials, &resp_desc); in Curl_sasl_create_digest_md5_message()
245 s_pSecFn->FreeCredentialsHandle(&credentials); in Curl_sasl_create_digest_md5_message()
260 s_pSecFn->FreeCredentialsHandle(&credentials); in Curl_sasl_create_digest_md5_message()
407 CredHandle credentials; in Curl_sasl_create_digest_http_message() local
463 &credentials, &expiry); in Curl_sasl_create_digest_http_message()
493 status = s_pSecFn->InitializeSecurityContext(&credentials, NULL, in Curl_sasl_create_digest_http_message()
501 s_pSecFn->CompleteAuthToken(&credentials, &resp_desc); in Curl_sasl_create_digest_http_message()
[all …]

123456789