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

1 2 3 4 5

  /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...]
TrustManagerFactoryTest.java 144 for (String keyType : KEY_TYPES) {
153 String keyAlgName = TestKeyStore.keyAlgorithm(keyType);
154 String sigAlgName = TestKeyStore.signatureAlgorithm(keyType);
159 tm.checkClientTrusted(chain, keyType);
164 tm.checkServerTrusted(chain, keyType);
169 tm.checkClientTrusted(chain, keyType);
170 tm.checkServerTrusted(chain, keyType);
  /libcore/crypto/src/main/java/org/conscrypt/
OpenSSLServerSocketImpl.java 203 String keyType = CipherSuite.getByName(enabledCipherSuite).getServerKeyType();
204 if (keyType == null) {
208 if (keyType.equals(CipherSuite.KEY_TYPE_RSA)
209 || keyType.equals(CipherSuite.KEY_TYPE_DH_RSA)) {
210 if (checkForPrivateKey(keyType, RSAPrivateKey.class)) {
215 if (keyType.equals(CipherSuite.KEY_TYPE_DSA)
216 || keyType.equals(CipherSuite.KEY_TYPE_DH_DSA)) {
217 if (checkForPrivateKey(keyType, DSAPrivateKey.class)) {
222 if (keyType.equals(CipherSuite.KEY_TYPE_EC)
223 || keyType.equals(CipherSuite.KEY_TYPE_EC_RSA
    [all...]
KeyManagerImpl.java 92 public String chooseServerAlias(String keyType, Principal[] issuers, Socket socket) {
93 final String[] al = chooseAlias(new String[] { keyType }, issuers);
115 public String[] getClientAliases(String keyType, Principal[] issuers) {
116 return chooseAlias(new String[] { keyType }, issuers);
119 public String[] getServerAliases(String keyType, Principal[] issuers) {
120 return chooseAlias(new String[] { keyType }, issuers);
140 public String chooseEngineServerAlias(String keyType, Principal[] issuers, SSLEngine engine) {
141 final String[] al = chooseAlias(new String[] { keyType }, issuers);
  /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 94 final int keyType = KeyStore.getKeyTypeForAlgorithm(mSpec.getKeyType());
95 byte[][] args = getArgsForKeyType(keyType, mSpec.getAlgorithmParameterSpec());
98 if (!mKeyStore.generate(privateKeyAlias, KeyStore.UID_SELF, keyType,
157 private static String getDefaultSignatureAlgorithmForKeyType(String keyType) {
158 if ("RSA".equalsIgnoreCase(keyType)) {
160 } else if ("DSA".equalsIgnoreCase(keyType)) {
162 } else if ("EC".equalsIgnoreCase(keyType)) {
165 throw new IllegalArgumentException("Unsupported key type " + keyType);
169 private static byte[][] getArgsForKeyType(int keyType, AlgorithmParameterSpec spec) {
170 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 39 String[] keyType = {"RSA", "DSA"};
40 String al = km.chooseClientAlias(keyType, null, new Socket());
43 al = km.chooseEngineClientAlias(keyType, null, new SSLEngineImpl(null));
66 String[] keyType = { "RSA", "DSA" };
67 String al = km.chooseClientAlias(keyType, null, new Socket());
70 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 58 public String chooseClientAlias(String[] keyType, Principal[] issuers,
67 public String chooseServerAlias(String keyType, Principal[] issuers,
83 public String[] getClientAliases(String keyType, Principal[] issuers) {
91 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);
  /libcore/crypto/src/test/java/org/conscrypt/
CipherSuiteTest.java 98 String keyType = cs.getServerKeyType();
99 assertEquals(name, cs.isAnonymous(), keyType == null);
100 assertTrue(name, keyType == null || StandardNames.KEY_TYPES.contains(keyType));
137 String keyType = CipherSuite.getClientKeyType(b);
140 assertEquals(byteString, "RSA", keyType);
143 assertEquals(byteString, "DSA", keyType);
146 assertEquals(byteString, "DH_RSA", keyType);
149 assertEquals(byteString, "DH_DSA", keyType);
152 assertEquals(byteString, "EC", keyType);
    [all...]
  /libcore/luni/src/test/java/tests/api/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) {
  /pdk/apps/CameraITS/service/src/com/android/camera2/its/
ItsSerializer.java 54 private static MetadataEntry serializeEntry(Type keyType, Object keyObj, CameraMetadata md)
61 if (keyType == Integer.class || keyType == Long.class || keyType == Byte.class ||
62 keyType == Float.class || keyType == Boolean.class || keyType == String.class) {
64 } else if (keyType == Rational.class) {
70 } else if (keyType == android.hardware.camera2.Size.class) {
77 } else if (keyType == android.graphics.Rect.class)
    [all...]
  /external/chromium_org/third_party/WebKit/Source/core/html/
HTMLKeygenElement.cpp 84 const AtomicString& keyType = fastGetAttribute(keytypeAttr);
85 if (!keyType.isNull() && !equalIgnoringCase(keyType, "rsa"))
  /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)) {
  /external/chromium_org/net/third_party/nss/ssl/
sslplatf.c 205 PRBool isTLS, KeyType keyType)
227 switch (keyType) {
257 if (keyType == ecKey) {
329 PRBool isTLS, KeyType keyType)
364 switch (keyType) {
374 if (keyType == ecKey) {
461 PRBool isTLS, KeyType keyType)
    [all...]

Completed in 821 milliseconds

1 2 3 4 5