HomeSort by relevance Sort by last modified time
    Searched refs:Credentials (Results 1 - 25 of 149) sorted by null

1 2 3 4 5 6

  /external/libchrome/sandbox/linux/services/
credentials_unittest.cc 5 #include "sandbox/linux/services/credentials.h"
64 SANDBOX_TEST(Credentials, DropAllCaps) {
65 CHECK(Credentials::DropAllCapabilities());
66 CHECK(!Credentials::HasAnyCapability());
69 SANDBOX_TEST(Credentials, MoveToNewUserNS) {
70 CHECK(Credentials::DropAllCapabilities());
71 bool moved_to_new_ns = Credentials::MoveToNewUserNS();
82 CHECK(Credentials::HasAnyCapability());
83 CHECK(Credentials::DropAllCapabilities());
84 CHECK(!Credentials::HasAnyCapability())
    [all...]
credentials.h 25 // This class should be used to manipulate the current process' credentials.
28 class SANDBOX_EXPORT Credentials {
102 DISALLOW_IMPLICIT_CONSTRUCTORS(Credentials);
credentials.cc 5 #include "sandbox/linux/services/credentials.h"
141 int CapabilityToKernelValue(Credentials::Capability cap) {
143 case Credentials::Capability::SYS_CHROOT:
145 case Credentials::Capability::SYS_ADMIN:
156 bool Credentials::DropAllCapabilities(int proc_fd) {
166 bool Credentials::DropAllCapabilities() {
168 return Credentials::DropAllCapabilities(proc_fd.get());
172 bool Credentials::DropAllCapabilitiesOnCurrentThread() {
177 bool Credentials::SetCapabilitiesOnCurrentThread(
197 bool Credentials::SetCapabilities(int proc_fd
    [all...]
namespace_sandbox_unittest.cc 23 #include "sandbox/linux/services/credentials.h"
51 if (!Credentials::CanCreateProcessInNewUserNS()) {
115 CHECK(sandbox::Credentials::MoveToNewUserNS());
116 CHECK(sandbox::Credentials::DropFileSystemAccess(ProcUtil::OpenProc().get()));
153 if (!Credentials::CanCreateProcessInNewUserNS()) {
157 CHECK(sandbox::Credentials::MoveToNewUserNS());
175 if (!Credentials::CanCreateProcessInNewUserNS()) {
179 CHECK(sandbox::Credentials::MoveToNewUserNS());
186 CHECK(!Credentials::HasAnyCapability());
197 if (!Credentials::CanCreateProcessInNewUserNS())
    [all...]
  /external/apache-http/src/org/apache/http/client/
CredentialsProvider.java 34 import org.apache.http.auth.Credentials;
37 * Abstract credentials provider.
51 * Sets the {@link Credentials credentials} for the given authentication
52 * scope. Any previous credentials for the given scope will be overwritten.
55 * @param credentials the authentication {@link Credentials credentials}
60 void setCredentials(AuthScope authscope, Credentials credentials);
    [all...]
  /external/apache-http/src/org/apache/http/auth/
Credentials.java 2 * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/auth/Credentials.java $
36 * User name and password based authentication credentials.
48 public interface Credentials {
AuthState.java 55 /** Credentials selected for authentication */
56 private Credentials credentials; field in class:AuthState
72 this.credentials = null;
103 * Returns user {@link Credentials} selected for authentication if available
105 * @return user credentials if available, <code>null</code otherwise
107 public Credentials getCredentials() {
108 return this.credentials;
113 * Sets user {@link Credentials} to be used for authentication
115 * @param credentials User credential
    [all...]
AuthScheme.java 51 * <li>Generate authorization string for the given set of credentials,
133 * Produces an authorization string for the given set of {@link Credentials}.
135 * @param credentials The set of credentials to be used for athentication
142 Header authenticate(Credentials credentials, HttpRequest request)
  /prebuilts/tools/common/m2/repository/com/google/auth/google-auth-library-credentials/0.3.0/
google-auth-library-credentials-0.3.0.jar 
  /external/apache-http/src/org/apache/http/impl/client/
BasicCredentialsProvider.java 36 import org.apache.http.auth.Credentials;
60 private final HashMap<AuthScope, Credentials> credMap;
67 this.credMap = new HashMap<AuthScope, Credentials>();
71 * Sets the {@link Credentials credentials} for the given authentication
72 * scope. Any previous credentials for the given scope will be overwritten.
75 * @param credentials the authentication {@link Credentials credentials}
82 final Credentials credentials)
    [all...]
  /frameworks/base/core/java/android/net/
Credentials.java 20 * A class for representing UNIX credentials passed via ancillary data
23 public class Credentials {
31 public Credentials (int pid, int uid, int gid) {
  /cts/tests/tests/net/src/android/net/cts/
CredentialsTest.java 19 import android.net.Credentials;
25 // new the Credentials instance
27 Credentials cred = new Credentials(0, 0, 0);
33 cred = new Credentials(Integer.MAX_VALUE, Integer.MAX_VALUE, Integer.MAX_VALUE);
39 cred = new Credentials(Integer.MIN_VALUE, Integer.MIN_VALUE, Integer.MIN_VALUE);
  /external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/unit/sts/
test_credentials.py 3 from boto.sts.credentials import Credentials
11 self.creds = Credentials()
14 # This would fail miserably if ``Credentials.request_id`` hadn't been
26 creds = Credentials()
  /packages/apps/Settings/src/com/android/settings/vpn2/
VpnUtils.java 20 import android.security.Credentials;
31 final byte[] value = KeyStore.getInstance().get(Credentials.LOCKDOWN_VPN);
36 KeyStore.getInstance().delete(Credentials.LOCKDOWN_VPN);
42 KeyStore.getInstance().put(Credentials.LOCKDOWN_VPN, lockdownKey.getBytes(),
  /external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
Credentials.java 21 /** Factory for HTTP authorization credentials. */
22 public final class Credentials {
23 private Credentials() {
  /external/chromium-trace/catapult/third_party/gsutil/gslib/addlhelp/
creds.py 15 """Additional help about types of credentials and authentication."""
23 gsutil currently supports several types of credentials/authentication, as
25 for more on anonymous access). Each of these type of credentials is discussed
27 credentials via either the Cloud SDK or standalone installations of gsutil.
30 <B>Configuring/Using Credentials via Cloud SDK Distribution of gsutil</B>
31 When gsutil is installed/used via the Cloud SDK ("gcloud"), credentials are
33 ~/.config/gcloud (any manipulation of credentials should be done via the
34 gcloud auth command). If you need to set up multiple credentials (e.g., one
36 gcloud auth command manages the credentials for you, and you switch between
37 credentials using the gcloud auth command as well (for more details se
    [all...]
  /external/nist-sip/java/gov/nist/javax/sip/header/
Credentials.java 33 * Credentials that are used in authentication and authorization headers.
38 public class Credentials extends SIPObject {
64 public Credentials() {
130 Credentials retval = (Credentials) super.clone();
  /packages/apps/KeyChain/tests/src/com/android/keychain/tests/
KeyChainServiceTest.java 25 import android.security.Credentials;
156 String alias1Pkey = (Credentials.USER_PRIVATE_KEY + alias1);
157 String alias1Cert = (Credentials.USER_CERTIFICATE + alias1);
158 String alias1ICert = (Credentials.CA_CERTIFICATE + alias1Intermediate);
159 String alias1RCert = (Credentials.CA_CERTIFICATE + alias1Root);
167 String alias2Pkey = (Credentials.USER_PRIVATE_KEY + alias2);
168 String alias2Cert = (Credentials.USER_CERTIFICATE + alias2);
169 String alias2ICert = (Credentials.CA_CERTIFICATE + alias2Intermediate);
170 String alias2RCert = (Credentials.CA_CERTIFICATE + alias2Root);
178 Credentials.convertToPem(pke1.getCertificate())))
    [all...]
  /external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/pyami/
copybot.cfg 2 # Your AWS Credentials
4 [Credentials]
9 # If you want to use a separate set of credentials when writing
  /packages/apps/CertInstaller/src/com/android/certinstaller/
CredentialHelper.java 26 import android.security.Credentials;
92 mUid = bundle.getInt(Credentials.EXTRA_INSTALL_AS_UID, -1);
93 bundle.remove(Credentials.EXTRA_INSTALL_AS_UID);
108 outStates.putInt(Credentials.EXTRA_INSTALL_AS_UID, mUid);
110 outStates.putByteArray(Credentials.USER_PRIVATE_KEY,
129 mUid = savedStates.getInt(Credentials.EXTRA_INSTALL_AS_UID, -1);
130 byte[] bytes = savedStates.getByteArray(Credentials.USER_PRIVATE_KEY);
190 return mBundle.containsKey(Credentials.EXTRA_PUBLIC_KEY)
191 && mBundle.containsKey(Credentials.EXTRA_PRIVATE_KEY);
271 Intent intent = new Intent("com.android.credentials.INSTALL")
    [all...]
  /frameworks/base/keystore/java/android/security/keystore/
AndroidKeyStoreSpi.java 20 import android.security.Credentials;
73 * PrivateKeyEntry will have a Credentials.USER_PRIVATE_KEY as the private key,
74 * Credentials.USER_CERTIFICATE as the first certificate in the chain (the one
75 * that corresponds to the private key), and then a Credentials.CA_CERTIFICATE
78 * TrustedCertificateEntry will just have a Credentials.CA_CERTIFICATE entry
93 String privateKeyAlias = Credentials.USER_PRIVATE_KEY + alias;
97 String secretKeyAlias = Credentials.USER_SECRET_KEY + alias;
119 final byte[] caBytes = mKeyStore.get(Credentials.CA_CERTIFICATE + alias, mUid);
145 byte[] encodedCert = mKeyStore.get(Credentials.USER_CERTIFICATE + alias, mUid);
150 encodedCert = mKeyStore.get(Credentials.CA_CERTIFICATE + alias, mUid)
    [all...]
  /external/apache-http/src/org/apache/http/impl/auth/
BasicScheme.java 37 import org.apache.http.auth.Credentials;
124 * Produces basic authorization header for the given set of {@link Credentials}.
126 * @param credentials The set of credentials to be used for athentication
128 * @throws org.apache.http.auth.InvalidCredentialsException if authentication credentials
136 final Credentials credentials,
139 if (credentials == null) {
140 throw new IllegalArgumentException("Credentials may not be null");
147 return authenticate(credentials, charset, isProxy())
    [all...]
  /frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
WifiCertManagerTest.java 24 import android.security.Credentials;
78 String prefix = Credentials.USER_PRIVATE_KEY;
105 Credentials.USER_PRIVATE_KEY, UserHandle.myUserId());
113 String prefix = Credentials.USER_PRIVATE_KEY;
  /external/apache-http/src/org/apache/http/client/protocol/
RequestProxyAuthentication.java 45 import org.apache.http.auth.Credentials;
93 Credentials creds = authState.getCredentials();
95 this.log.debug("User credentials not available");
RequestTargetAuthentication.java 45 import org.apache.http.auth.Credentials;
93 Credentials creds = authState.getCredentials();
95 this.log.debug("User credentials not available");

Completed in 680 milliseconds

1 2 3 4 5 6