/external/chromium_org/sandbox/linux/services/ |
credentials.h | 21 // This class should be used to manipulate the current process' credentials. 24 class Credentials { 26 Credentials(); 27 ~Credentials(); 74 DISALLOW_COPY_AND_ASSIGN(Credentials);
|
credentials_unittest.cc | 5 #include "sandbox/linux/services/credentials.h" 53 TEST(Credentials, CreateAndDestroy) { 55 Credentials cred1; 58 scoped_ptr<Credentials> cred2(new Credentials); 61 TEST(Credentials, HasOpenDirectory) { 62 Credentials creds; 74 TEST(Credentials, HasOpenDirectoryWithFD) { 75 Credentials creds; 99 SANDBOX_TEST(Credentials, DropAllCaps) [all...] |
credentials.cc | 5 #include "sandbox/linux/services/credentials.h" 153 Credentials::Credentials() { 156 Credentials::~Credentials() { 159 bool Credentials::HasOpenDirectory(int proc_fd) { 210 bool Credentials::DropAllCapabilities() { 218 bool Credentials::HasAnyCapability() const { 226 scoped_ptr<std::string> Credentials::GetCurrentCapString() const { 234 bool Credentials::MoveToNewUserNS() [all...] |
/external/apache-http/src/org/apache/http/client/ |
CredentialsProvider.java | 34 import org.apache.http.auth.Credentials; 37 * Abstract credentials provider. 46 * Sets the {@link Credentials credentials} for the given authentication 47 * scope. Any previous credentials for the given scope will be overwritten. 50 * @param credentials the authentication {@link Credentials credentials} 55 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. 43 public interface Credentials {
|
AuthState.java | 50 /** Credentials selected for authentication */ 51 private Credentials credentials; field in class:AuthState 67 this.credentials = null; 98 * Returns user {@link Credentials} selected for authentication if available 100 * @return user credentials if available, <code>null</code otherwise 102 public Credentials getCredentials() { 103 return this.credentials; 108 * Sets user {@link Credentials} to be used for authentication 110 * @param credentials User credential [all...] |
AuthScheme.java | 51 * <li>Generate authorization string for the given set of credentials, 128 * Produces an authorization string for the given set of {@link Credentials}. 130 * @param credentials The set of credentials to be used for athentication 137 Header authenticate(Credentials credentials, HttpRequest request)
|
/external/apache-http/src/org/apache/http/impl/client/ |
BasicCredentialsProvider.java | 36 import org.apache.http.auth.Credentials; 55 private final HashMap<AuthScope, Credentials> credMap; 62 this.credMap = new HashMap<AuthScope, Credentials>(); 66 * Sets the {@link Credentials credentials} for the given authentication 67 * scope. Any previous credentials for the given scope will be overwritten. 70 * @param credentials the authentication {@link Credentials credentials} 77 final Credentials credentials) [all...] |
DefaultUserTokenHandler.java | 39 import org.apache.http.auth.Credentials; 80 Credentials creds = authState.getCredentials();
|
/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);
|
LocalSocketTest.java | 23 import android.net.Credentials; 44 Credentials credent = clientSocket.getPeerCredentials();
|
/frameworks/base/keystore/java/android/security/ |
AndroidKeyStore.java | 62 * PrivateKeyEntry will have a Credentials.USER_PRIVATE_KEY as the private key, 63 * Credentials.USER_CERTIFICATE as the first certificate in the chain (the one 64 * that corresponds to the private key), and then a Credentials.CA_CERTIFICATE 67 * TrustedCertificateEntry will just have a Credentials.CA_CERTIFICATE entry 86 return engine.getPrivateKeyById(Credentials.USER_PRIVATE_KEY + alias); 107 final byte[] caBytes = mKeyStore.get(Credentials.CA_CERTIFICATE + alias); 133 byte[] certificate = mKeyStore.get(Credentials.USER_CERTIFICATE + alias); 138 certificate = mKeyStore.get(Credentials.CA_CERTIFICATE + alias); 184 Date d = getModificationDate(Credentials.USER_PRIVATE_KEY + alias); 189 d = getModificationDate(Credentials.USER_CERTIFICATE + alias) [all...] |
Credentials.java | 47 public class Credentials { 48 private static final String LOGTAG = "Credentials"; 50 public static final String INSTALL_ACTION = "android.credentials.INSTALL"; 52 public static final String INSTALL_AS_USER_ACTION = "android.credentials.INSTALL_AS_USER"; 54 public static final String UNLOCK_ACTION = "com.android.credentials.UNLOCK"; 164 private static Credentials singleton; 166 public static Credentials getInstance() { 168 singleton = new Credentials(); 222 return keystore.delKey(Credentials.USER_PRIVATE_KEY + alias) 236 return keystore.delete(Credentials.USER_CERTIFICATE + alias [all...] |
AndroidKeyPairGenerator.java | 92 Credentials.deleteAllTypesForAlias(mKeyStore, alias); 97 final String privateKeyAlias = Credentials.USER_PRIVATE_KEY + alias; 136 Credentials.deleteAllTypesForAlias(mKeyStore, alias); 144 Credentials.deleteAllTypesForAlias(mKeyStore, alias); 148 if (!mKeyStore.put(Credentials.USER_CERTIFICATE + alias, certBytes, KeyStore.UID_SELF, 150 Credentials.deleteAllTypesForAlias(mKeyStore, alias);
|
/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...] |
/packages/apps/CertInstaller/src/com/android/certinstaller/ |
CredentialHelper.java | 23 import android.security.Credentials; 87 mUid = bundle.getInt(Credentials.EXTRA_INSTALL_AS_UID, -1); 88 bundle.remove(Credentials.EXTRA_INSTALL_AS_UID); 104 outStates.putByteArray(Credentials.USER_PRIVATE_KEY, 123 byte[] bytes = savedStates.getByteArray(Credentials.USER_PRIVATE_KEY); 183 return mBundle.containsKey(Credentials.EXTRA_PUBLIC_KEY) 184 && mBundle.containsKey(Credentials.EXTRA_PRIVATE_KEY); 260 Intent intent = new Intent("com.android.credentials.INSTALL"); 264 intent.putExtra(Credentials.EXTRA_INSTALL_AS_UID, mUid); 267 intent.putExtra(Credentials.EXTRA_USER_PRIVATE_KEY_NAME [all...] |
CertInstallerMain.java | 24 import android.security.Credentials; 37 * to the public {@link Credentials#INSTALL_ACTION} intent. 63 if (Credentials.INSTALL_ACTION.equals(action) 64 || Credentials.INSTALL_AS_USER_ACTION.equals(action)) { 73 if (bundle != null && !Credentials.INSTALL_AS_USER_ACTION.equals(action)) { 74 bundle.remove(Credentials.EXTRA_INSTALL_AS_UID); 77 // If bundle is empty of any actual credentials, ask user to open. 78 // Otherwise, pass extras to CertInstaller to install those credentials. 84 || bundle.containsKey(Credentials.EXTRA_INSTALL_AS_UID)))) {
|
/external/apache-http/src/org/apache/http/impl/auth/ |
BasicScheme.java | 37 import org.apache.http.auth.Credentials; 119 * Produces basic authorization header for the given set of {@link Credentials}. 121 * @param credentials The set of credentials to be used for athentication 123 * @throws org.apache.http.auth.InvalidCredentialsException if authentication credentials 131 final Credentials credentials, 134 if (credentials == null) { 135 throw new IllegalArgumentException("Credentials may not be null"); 142 return authenticate(credentials, charset, isProxy()) [all...] |
NTLMScheme.java | 37 import org.apache.http.auth.Credentials; 107 final Credentials credentials, 111 ntcredentials = (NTCredentials) credentials; 114 "Credentials cannot be used for NTLM authentication: " 115 + credentials.getClass().getName());
|
/external/apache-http/src/org/apache/http/client/protocol/ |
RequestProxyAuthentication.java | 45 import org.apache.http.auth.Credentials; 88 Credentials creds = authState.getCredentials(); 90 this.log.debug("User credentials not available");
|
RequestTargetAuthentication.java | 45 import org.apache.http.auth.Credentials; 88 Credentials creds = authState.getCredentials(); 90 this.log.debug("User credentials not available");
|
/frameworks/base/wifi/java/android/net/wifi/ |
WifiEnterpriseConfig.java | 21 import android.security.Credentials; 44 * and any associated credentials. 77 private static final String CA_CERT_PREFIX = KEYSTORE_URI + Credentials.CA_CERTIFICATE; 78 private static final String CLIENT_CERT_PREFIX = KEYSTORE_URI + Credentials.USER_CERTIFICATE; 452 setFieldValue(PRIVATE_KEY_ID_KEY, alias, Credentials.USER_PRIVATE_KEY); 530 String privKeyName = Credentials.USER_PRIVATE_KEY + name; 531 String userCertName = Credentials.USER_CERTIFICATE + name; 532 String caCertName = Credentials.CA_CERTIFICATE + name; 594 byte[] certData = Credentials.convertToPem(cert); 610 keyStore.delKey(Credentials.USER_PRIVATE_KEY + client, Process.WIFI_UID) [all...] |
/packages/apps/Settings/src/com/android/settings/ |
CredentialStorage.java | 29 import android.security.Credentials; 91 public static final String ACTION_UNLOCK = "com.android.credentials.UNLOCK"; 92 public static final String ACTION_INSTALL = "com.android.credentials.INSTALL"; 93 public static final String ACTION_RESET = "com.android.credentials.RESET"; 104 * When non-null, the bundle containing credentials to install. 209 * Install credentials if available, otherwise do nothing. 216 final int uid = bundle.getInt(Credentials.EXTRA_INSTALL_AS_UID, -1); 218 if (bundle.containsKey(Credentials.EXTRA_USER_PRIVATE_KEY_NAME)) { 219 String key = bundle.getString(Credentials.EXTRA_USER_PRIVATE_KEY_NAME); 220 byte[] value = bundle.getByteArray(Credentials.EXTRA_USER_PRIVATE_KEY_DATA) [all...] |