Home
last modified time | relevance | path

Searched refs:Credentials (Results 1 – 25 of 60) sorted by relevance

123

/external/libchrome/sandbox/linux/services/
Dcredentials_unittest.cc64 SANDBOX_TEST(Credentials, DropAllCaps) { in SANDBOX_TEST() argument
65 CHECK(Credentials::DropAllCapabilities()); in SANDBOX_TEST()
66 CHECK(!Credentials::HasAnyCapability()); in SANDBOX_TEST()
69 SANDBOX_TEST(Credentials, MoveToNewUserNS) { in SANDBOX_TEST() argument
70 CHECK(Credentials::DropAllCapabilities()); in SANDBOX_TEST()
71 bool moved_to_new_ns = Credentials::MoveToNewUserNS(); in SANDBOX_TEST()
82 CHECK(Credentials::HasAnyCapability()); in SANDBOX_TEST()
83 CHECK(Credentials::DropAllCapabilities()); in SANDBOX_TEST()
84 CHECK(!Credentials::HasAnyCapability()); in SANDBOX_TEST()
87 SANDBOX_TEST(Credentials, CanCreateProcessInNewUserNS) { in SANDBOX_TEST() argument
[all …]
Dcredentials.cc141 int CapabilityToKernelValue(Credentials::Capability cap) { in CapabilityToKernelValue()
143 case Credentials::Capability::SYS_CHROOT: in CapabilityToKernelValue()
145 case Credentials::Capability::SYS_ADMIN: in CapabilityToKernelValue()
156 bool Credentials::DropAllCapabilities(int proc_fd) { in DropAllCapabilities()
166 bool Credentials::DropAllCapabilities() { in DropAllCapabilities()
168 return Credentials::DropAllCapabilities(proc_fd.get()); in DropAllCapabilities()
172 bool Credentials::DropAllCapabilitiesOnCurrentThread() { in DropAllCapabilitiesOnCurrentThread()
177 bool Credentials::SetCapabilitiesOnCurrentThread( in SetCapabilitiesOnCurrentThread()
197 bool Credentials::SetCapabilities(int proc_fd, in SetCapabilities()
210 bool Credentials::HasAnyCapability() { in HasAnyCapability()
[all …]
Dnamespace_sandbox_unittest.cc51 if (!Credentials::CanCreateProcessInNewUserNS()) { in TestProcWithOptions()
115 CHECK(sandbox::Credentials::MoveToNewUserNS()); in MULTIPROCESS_TEST_MAIN()
116 CHECK(sandbox::Credentials::DropFileSystemAccess(ProcUtil::OpenProc().get())); in MULTIPROCESS_TEST_MAIN()
153 if (!Credentials::CanCreateProcessInNewUserNS()) { in SANDBOX_TEST_ALLOW_NOISE()
157 CHECK(sandbox::Credentials::MoveToNewUserNS()); in SANDBOX_TEST_ALLOW_NOISE()
175 if (!Credentials::CanCreateProcessInNewUserNS()) { in SANDBOX_TEST()
179 CHECK(sandbox::Credentials::MoveToNewUserNS()); in SANDBOX_TEST()
186 CHECK(!Credentials::HasAnyCapability()); in SANDBOX_TEST()
197 if (!Credentials::CanCreateProcessInNewUserNS()) { in SANDBOX_TEST()
201 CHECK(sandbox::Credentials::MoveToNewUserNS()); in SANDBOX_TEST()
[all …]
Dcredentials.h28 class SANDBOX_EXPORT Credentials {
102 DISALLOW_IMPLICIT_CONSTRUCTORS(Credentials);
Dnamespace_utils_unittest.cc24 const bool can_create_user_ns = Credentials::CanCreateProcessInNewUserNS(); in SANDBOX_TEST()
36 if (!Credentials::CanCreateProcessInNewUserNS()) { in SANDBOX_TEST()
/external/apache-http/src/org/apache/http/impl/client/
DBasicCredentialsProvider.java36 import org.apache.http.auth.Credentials;
60 private final HashMap<AuthScope, Credentials> credMap;
67 this.credMap = new HashMap<AuthScope, Credentials>(); in BasicCredentialsProvider()
82 final Credentials credentials) { in setCredentials()
97 private static Credentials matchCredentials( in matchCredentials()
98 final HashMap<AuthScope, Credentials> map, in matchCredentials()
101 Credentials creds = map.get(authscope); in matchCredentials()
129 public synchronized Credentials getCredentials(final AuthScope authscope) { in getCredentials()
DDefaultUserTokenHandler.java39 import org.apache.http.auth.Credentials;
86 Credentials creds = authState.getCredentials(); in getAuthPrincipal()
/external/nist-sip/java/gov/nist/javax/sip/header/
DCredentials.java38 public class Credentials extends SIPObject { class
64 public Credentials() { in Credentials() method in Credentials
130 Credentials retval = (Credentials) super.clone(); in clone()
/external/apache-http/src/org/apache/http/client/
DCredentialsProvider.java34 import org.apache.http.auth.Credentials;
60 void setCredentials(AuthScope authscope, Credentials credentials); in setCredentials()
70 Credentials getCredentials(AuthScope authscope); in getCredentials()
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/unit/sts/
Dtest_credentials.py3 from boto.sts.credentials import Credentials
11 self.creds = Credentials()
26 creds = Credentials()
/external/apache-http/src/org/apache/http/auth/
DAuthState.java56 private Credentials credentials;
107 public Credentials getCredentials() { in getCredentials()
117 public void setCredentials(final Credentials credentials) { in setCredentials()
/external/chromium-trace/catapult/third_party/gsutil/third_party/oauth2client/tests/
Dtest_django_orm.py39 from oauth2client.client import Credentials
56 self.credentials = Credentials()
63 self.assertTrue(isinstance(self.field.to_python(self.pickle), Credentials))
Dtest_gce.py29 from oauth2client.client import Credentials
65 c2 = Credentials.new_from_json(json)
/external/apache-http/src/org/apache/http/impl/auth/
DBasicScheme.java37 import org.apache.http.auth.Credentials;
136 final Credentials credentials, in authenticate()
160 final Credentials credentials, in authenticate()
DDigestScheme.java41 import org.apache.http.auth.Credentials;
225 final Credentials credentials, in authenticate()
265 private String createDigest(final Credentials credentials) throws AuthenticationException { in createDigest()
387 final Credentials credentials, in createDigestHeader()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DCredentials.java22 public final class Credentials { class
23 private Credentials() { in Credentials() method in Credentials
/external/chromium-trace/catapult/third_party/gsutil/third_party/oauth2client/oauth2client/
Dkeyring_storage.py26 from oauth2client.client import Credentials
88 credentials = Credentials.new_from_json(content)
Dfile.py26 from oauth2client.client import Credentials
79 credentials = Credentials.new_from_json(content)
Dappengine.py46 from oauth2client.client import Credentials
277 data_type = Credentials
298 credentials = Credentials.new_from_json(value)
306 if value is not None and not isinstance(value, Credentials):
339 if value is not None and not isinstance(value, Credentials):
371 credentials = Credentials.new_from_json(value)
463 credentials = Credentials.new_from_json(json)
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/
DAuthenticatorAdapter.java20 import com.squareup.okhttp.Credentials;
50 String credential = Credentials.basic(auth.getUserName(), new String(auth.getPassword())); in authenticate()
74 String credential = Credentials.basic(auth.getUserName(), new String(auth.getPassword())); in authenticateProxy()
/external/okhttp/samples/guide/src/main/java/com/squareup/okhttp/recipes/
DAuthenticate.java19 import com.squareup.okhttp.Credentials;
34 String credential = Credentials.basic("jesse", "password1"); in run()
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/sts/
Dcredentials.py30 class Credentials(object): class
162 self.credentials = Credentials()
192 self.credentials = Credentials()
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/integration/sts/
Dtest_session_token.py31 from boto.sts.credentials import Credentials
49 token_copy = Credentials.load('token.json')
/external/apache-http/src/org/apache/http/client/protocol/
DRequestTargetAuthentication.java45 import org.apache.http.auth.Credentials;
93 Credentials creds = authState.getCredentials(); in process()
DRequestProxyAuthentication.java45 import org.apache.http.auth.Credentials;
93 Credentials creds = authState.getCredentials(); in process()

123