/external/conscrypt/src/test/java/org/conscrypt/ |
SSLParametersImplTest.java | 28 String keyType = SSLParametersImpl.getClientKeyType(b); 31 assertEquals(byteString, "RSA", keyType); 34 assertEquals(byteString, "DSA", keyType); 37 assertEquals(byteString, "DH_RSA", keyType); 40 assertEquals(byteString, "DH_DSA", keyType); 43 assertEquals(byteString, "EC", keyType); 46 assertEquals(byteString, "EC_RSA", keyType); 49 assertEquals(byteString, "EC_EC", keyType); 52 assertNull(byteString, keyType);
|
/libcore/support/src/test/java/libcore/javax/net/ssl/ |
ForwardingX509ExtendedKeyManager.java | 38 public String chooseClientAlias(String[] keyType, Principal[] issuers, Socket socket) { 39 return delegate.chooseClientAlias(keyType, issuers, socket); 43 public String chooseServerAlias(String keyType, Principal[] issuers, Socket socket) { 44 return delegate.chooseServerAlias(keyType, issuers, socket); 53 public String[] getClientAliases(String keyType, Principal[] issuers) { 54 return delegate.getClientAliases(keyType, issuers); 58 public String[] getServerAliases(String keyType, Principal[] issuers) { 59 return delegate.getServerAliases(keyType, issuers); 63 public String chooseEngineClientAlias(String[] keyType, Principal[] issuers, SSLEngine engine) { 64 return delegate.chooseEngineClientAlias(keyType, issuers, engine) [all...] |
TestKeyManager.java | 66 for (String keyType : keyTypes) { 67 out.print(keyType); 77 for (String keyType : keyTypes) { 78 assertKeyType(keyType); 82 private void assertKeyType(String keyType) { 83 if (!StandardNames.KEY_TYPES.contains(keyType)) { 84 throw new AssertionError("Unexpected key type " + keyType); 88 public String chooseServerAlias(String keyType, Principal[] issuers, Socket socket) { 90 out.print(" | keyType: "); 91 out.print(keyType); [all...] |
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
EnumHashBiMap.java | 38 private transient Class<K> keyType; 43 * @param keyType the key type 46 create(Class<K> keyType) { 47 return new EnumHashBiMap<K, V>(keyType); 67 private EnumHashBiMap(Class<K> keyType) { 69 new EnumMap<K, V>(keyType)), 71 keyType.getEnumConstants().length)); 72 this.keyType = keyType; 86 public Class<K> keyType() { [all...] |
EnumBiMap.java | 37 private transient Class<K> keyType; 44 * @param keyType the key type 48 create(Class<K> keyType, Class<V> valueType) { 49 return new EnumBiMap<K, V>(keyType, valueType); 69 private EnumBiMap(Class<K> keyType, Class<V> valueType) { 70 super(WellBehavedMap.wrap(new EnumMap<K, V>(keyType)), 72 this.keyType = keyType; 78 return ((EnumBiMap<K, ?>) map).keyType(); 81 return ((EnumHashBiMap<K, ?>) map).keyType(); [all...] |
/libcore/luni/src/main/java/javax/net/ssl/ |
X509KeyManager.java | 34 * @param keyType 45 public String chooseClientAlias(String[] keyType, Principal[] issuers, 52 * @param keyType 63 public String chooseServerAlias(String keyType, Principal[] issuers, 80 * @param keyType 88 public String[] getClientAliases(String keyType, Principal[] issuers); 94 * @param keyType 102 public String[] getServerAliases(String keyType, Principal[] issuers);
|
X509ExtendedKeyManager.java | 39 * @param keyType 50 public String chooseEngineClientAlias(String[] keyType, 59 * @param keyType 70 public String chooseEngineServerAlias(String keyType, Principal[] issuers,
|
/external/smack/src/org/jivesoftware/smack/util/collections/ |
ReferenceMap.java | 86 * @param keyType the type of reference to use for keys; 91 public ReferenceMap(int keyType, int valueType) { 92 super(keyType, valueType, DEFAULT_CAPACITY, DEFAULT_LOAD_FACTOR, false); 99 * @param keyType the type of reference to use for keys; 106 public ReferenceMap(int keyType, int valueType, boolean purgeValues) { 107 super(keyType, valueType, DEFAULT_CAPACITY, DEFAULT_LOAD_FACTOR, purgeValues); 115 * @param keyType the type of reference to use for keys; 122 public ReferenceMap(int keyType, int valueType, int capacity, float loadFactor) { 123 super(keyType, valueType, capacity, loadFactor, false); 131 * @param keyType the type of reference to use for keys [all...] |
/external/guava/guava/src/com/google/common/collect/ |
EnumHashBiMap.java | 43 private transient Class<K> keyType; 48 * @param keyType the key type 51 create(Class<K> keyType) { 52 return new EnumHashBiMap<K, V>(keyType); 72 private EnumHashBiMap(Class<K> keyType) { 74 new EnumMap<K, V>(keyType)), 76 keyType.getEnumConstants().length)); 77 this.keyType = keyType; 91 public Class<K> keyType() { [all...] |
EnumBiMap.java | 41 private transient Class<K> keyType; 48 * @param keyType the key type 52 create(Class<K> keyType, Class<V> valueType) { 53 return new EnumBiMap<K, V>(keyType, valueType); 73 private EnumBiMap(Class<K> keyType, Class<V> valueType) { 74 super(WellBehavedMap.wrap(new EnumMap<K, V>(keyType)), 76 this.keyType = keyType; 82 return ((EnumBiMap<K, ?>) map).keyType(); 85 return ((EnumHashBiMap<K, ?>) map).keyType(); [all...] |
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
KeyManagerFactoryTest.java | 161 for (String keyType : keyTypes) { 162 String[] aliases = km.getClientAliases(keyType, null); 163 if (empty || keyType == null || keyType.isEmpty()) { 164 assertNull(keyType, aliases); 167 assertNotNull(keyType, aliases); 169 test_X509KeyManager_alias(km, alias, keyType, false, empty); 172 for (String keyType : keyTypes) { 173 String[] aliases = km.getServerAliases(keyType, null); 174 if (empty || keyType == null || keyType.isEmpty()) [all...] |
/frameworks/base/keystore/java/android/security/ |
KeyPairGeneratorSpec.java | 117 * @param keyType key algorithm to use (RSA, DSA, EC) 129 public KeyPairGeneratorSpec(Context context, String keyStoreAlias, String keyType, int keySize, 148 final int keyTypeInt = KeyStore.getKeyTypeForAlgorithm(keyType); 157 mKeyType = keyType; 167 private static int getDefaultKeySizeForType(int keyType) { 168 if (keyType == NativeCrypto.EVP_PKEY_DSA) { 170 } else if (keyType == NativeCrypto.EVP_PKEY_EC) { 172 } else if (keyType == NativeCrypto.EVP_PKEY_RSA) { 175 throw new IllegalArgumentException("Invalid key type " + keyType); 178 private static void checkValidKeySize(int keyType, int keySize) [all...] |
AndroidKeyPairGenerator.java | 93 final int keyType = KeyStore.getKeyTypeForAlgorithm(mSpec.getKeyType()); 94 byte[][] args = getArgsForKeyType(keyType, mSpec.getAlgorithmParameterSpec()); 97 if (!mKeyStore.generate(privateKeyAlias, KeyStore.UID_SELF, keyType, 156 private static String getDefaultSignatureAlgorithmForKeyType(String keyType) { 157 if ("RSA".equalsIgnoreCase(keyType)) { 159 } else if ("DSA".equalsIgnoreCase(keyType)) { 161 } else if ("EC".equalsIgnoreCase(keyType)) { 164 throw new IllegalArgumentException("Unsupported key type " + keyType); 168 private static byte[][] getArgsForKeyType(int keyType, AlgorithmParameterSpec spec) { 169 switch (keyType) { [all...] |
KeyStore.java | 71 static int getKeyTypeForAlgorithm(String keyType) throws IllegalArgumentException { 72 if ("RSA".equalsIgnoreCase(keyType)) { 74 } else if ("DSA".equalsIgnoreCase(keyType)) { 76 } else if ("EC".equalsIgnoreCase(keyType)) { 79 throw new IllegalArgumentException("Unsupported key type: " + keyType); 207 public boolean generate(String key, int uid, int keyType, int keySize, int flags, 210 return mBinder.generate(key, uid, keyType, keySize, flags, args) == NO_ERROR; 316 public boolean isHardwareBacked(String keyType) { 318 return mBinder.is_hardware_backed(keyType.toUpperCase(Locale.US)) == NO_ERROR;
|
/external/apache-harmony/x-net/src/test/impl/java.injected/org/apache/harmony/xnet/provider/jsse/ |
KeyManagerImplTest.java | 38 String[] keyType = { "RSA", "DSA" }; 39 String al = km.chooseClientAlias(keyType, null, new Socket()); 42 al = km.chooseEngineClientAlias(keyType, null, new SSLEngineImpl(null)); 65 String[] keyType = { "RSA", "DSA" }; 66 String al = km.chooseClientAlias(keyType, null, new Socket()); 69 al = km.chooseEngineClientAlias(keyType, null, new SSLEngineImpl(null));
|
/external/apache-harmony/x-net/src/test/api/java/org/apache/harmony/xnet/tests/javax/net/ssl/ |
X509ExtendedKeyManagerTest.java | 57 public String chooseClientAlias(String[] keyType, Principal[] issuers, 66 public String chooseServerAlias(String keyType, Principal[] issuers, 82 public String[] getClientAliases(String keyType, Principal[] issuers) { 90 public String[] getServerAliases(String keyType, Principal[] issuers) {
|
/external/webrtc/src/system_wrappers/interface/ |
sort.h | 56 // keyType Enum corresponding to the type of the key array. 61 WebRtc_UWord32 sizeOfElement, Type keyType);
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/ |
ItsSerializer.java | 281 private static MetadataEntry serializeEntry(Type keyType, Object keyObj, CameraMetadata md) 289 } else if (keyType == Float.class) { 296 } else if (keyType == Integer.class || keyType == Long.class || keyType == Byte.class || 297 keyType == Boolean.class || keyType == String.class) { 299 } else if (keyType == Rational.class) { 301 } else if (keyType == Size.class) { 303 } else if (keyType == SizeF.class) [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
X509ExtendedKeyManagerTest.java | 132 public String chooseClientAlias(String[] keyType, Principal[] issuers, 141 public String chooseServerAlias(String keyType, Principal[] issuers, 157 public String[] getClientAliases(String keyType, Principal[] issuers) { 165 public String[] getServerAliases(String keyType, Principal[] issuers) {
|
/external/chromium_org/third_party/WebKit/Source/core/html/ |
HTMLKeygenElement.cpp | 92 const AtomicString& keyType = fastGetAttribute(keytypeAttr); 93 if (!keyType.isNull() && !equalIgnoringCase(keyType, "rsa"))
|
/external/chromium_org/third_party/libaddressinput/src/java/src/com/android/i18n/addressinput/ |
LookupKey.java | 24 * the server. There are two key types: {@code KeyType#DATA} or {@code KeyType#EXAMPLES}. 26 * <p> The {@code KeyType#DATA} key is built based on a universal Address hierarchy, which is:<br> 31 * <p> The {@code KeyType#EXAMPLES} key is built with the following format:<br> 39 * to know how to verify or format an US address, you need to use {@link KeyType#DATA} to get 40 * that info; if you want to get an example address, you use {@link KeyType#EXAMPLES} instead. 42 enum KeyType { 97 private final KeyType mKeyType; 109 this.mKeyType = builder.keyType; 118 * {@link KeyType#EXAMPLES} [all...] |
/external/conscrypt/src/main/java/org/conscrypt/ |
KeyManagerImpl.java | 94 public String chooseServerAlias(String keyType, Principal[] issuers, Socket socket) { 95 final String[] al = chooseAlias(new String[] { keyType }, issuers); 119 public String[] getClientAliases(String keyType, Principal[] issuers) { 120 return chooseAlias(new String[] { keyType }, issuers); 124 public String[] getServerAliases(String keyType, Principal[] issuers) { 125 return chooseAlias(new String[] { keyType }, issuers); 146 public String chooseEngineServerAlias(String keyType, Principal[] issuers, SSLEngine engine) { 147 final String[] al = chooseAlias(new String[] { keyType }, issuers);
|
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/helpers/ |
CameraMetadataGetter.java | 460 private static MetadataEntry serializeEntry(Type keyType, Object keyObj, CameraMetadata md) { 467 } else if (keyType == Float.class) { 474 } else if (keyType == Integer.class || keyType == Long.class || keyType == Byte.class || 475 keyType == Boolean.class || keyType == String.class) { 477 } else if (keyType == Rational.class) { 479 } else if (keyType == Size.class) { 481 } else if (keyType == SizeF.class) [all...] |
/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/ |
X509KeyManagerImpl.java | 18 private String keyType; 89 keyType = name; 94 if (keyType.equals(client)) { 103 } else if (keyType.equals(server)) {
|
/frameworks/av/drm/mediadrm/plugins/clearkey/ |
DrmPlugin.cpp | 48 KeyType keyType, 53 if (keyType != kKeyType_Streaming) {
|