Home
last modified time | relevance | path

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

12

/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.cc50 if (!Credentials::CanCreateProcessInNewUserNS()) { in TestProcWithOptions()
114 CHECK(sandbox::Credentials::MoveToNewUserNS()); in MULTIPROCESS_TEST_MAIN()
115 CHECK(sandbox::Credentials::DropFileSystemAccess(ProcUtil::OpenProc().get())); in MULTIPROCESS_TEST_MAIN()
152 if (!Credentials::CanCreateProcessInNewUserNS()) { in SANDBOX_TEST_ALLOW_NOISE()
156 CHECK(sandbox::Credentials::MoveToNewUserNS()); in SANDBOX_TEST_ALLOW_NOISE()
174 if (!Credentials::CanCreateProcessInNewUserNS()) { in SANDBOX_TEST()
178 CHECK(sandbox::Credentials::MoveToNewUserNS()); in SANDBOX_TEST()
185 CHECK(!Credentials::HasAnyCapability()); in SANDBOX_TEST()
196 if (!Credentials::CanCreateProcessInNewUserNS()) { in SANDBOX_TEST()
200 CHECK(sandbox::Credentials::MoveToNewUserNS()); in SANDBOX_TEST()
[all …]
Dcredentials.h27 class SANDBOX_EXPORT Credentials {
101 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/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()
DCredentials.java48 public interface Credentials { interface
DAuthScheme.java142 Header authenticate(Credentials credentials, HttpRequest request) in authenticate()
DUsernamePasswordCredentials.java53 public class UsernamePasswordCredentials implements Credentials {
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/
DCertInstallerHelper.java20 import android.security.Credentials;
179 String key = Credentials.USER_PRIVATE_KEY + profile.ipsecUserCert; in installCertificate()
190 String certName = Credentials.USER_CERTIFICATE + profile.ipsecUserCert; in installCertificate()
191 byte[] certData = Credentials.convertToPem(mUserCert); in installCertificate()
201 String caListName = Credentials.CA_CERTIFICATE + profile.ipsecCaCert; in installCertificate()
203 byte[] caListData = Credentials.convertToPem(caCerts); in installCertificate()
DVpnFacade.java38 import android.security.Credentials;
61 for (String key : keyStore.list(Credentials.VPN)) { in loadVpnProfiles()
62 final VpnProfile profile = VpnProfile.decode(key, keyStore.get(Credentials.VPN + key)); in loadVpnProfiles()
/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()
DNTLMScheme.java37 import org.apache.http.auth.Credentials;
113 final Credentials credentials, in authenticate()
/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/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/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()
/external/autotest/client/site_tests/firmware_TouchMTB/public/
D.chromeos.gestures.untrusted.write.boto4 # "gs_access_key_id") or remove important markers (like the "[Credentials]" and
14 [Credentials]
/external/autotest/apache/conf/
Dafe-directives19 Header set Access-Control-Allow-Credentials %{AccessControlAllowCredentialsValue}e \

12