Searched refs:identityHint (Results 1 - 9 of 9) sorted by relevance

/external/conscrypt/src/main/java/org/conscrypt/
H A DPSKKeyManager.java130 * @param identityHint identity hint provided by the server or {@code null} if none provided.
135 String chooseClientKeyIdentity(String identityHint, Socket socket); argument
141 * @param identityHint identity hint provided by the server or {@code null} if none provided.
146 String chooseClientKeyIdentity(String identityHint, SSLEngine engine); argument
151 * @param identityHint identity hint provided by the server to help select the key or
158 SecretKey getKey(String identityHint, String identity, Socket socket); argument
163 * @param identityHint identity hint provided by the server to help select the key or
170 SecretKey getKey(String identityHint, String identity, SSLEngine engine); argument
H A DDuckTypedPSKKeyManager.java93 public String chooseClientKeyIdentity(String identityHint, Socket socket) { argument
97 .invoke(mDelegate, identityHint, socket);
104 public String chooseClientKeyIdentity(String identityHint, SSLEngine engine) { argument
108 .invoke(mDelegate, identityHint, engine);
115 public SecretKey getKey(String identityHint, String identity, Socket socket) { argument
119 .invoke(mDelegate, identityHint, identity, socket);
126 public SecretKey getKey(String identityHint, String identity, SSLEngine engine) { argument
130 .invoke(mDelegate, identityHint, identity, engine);
H A DSSLParametersImpl.java512 String identityHint = pskCallbacks.chooseServerPSKIdentityHint(pskKeyManager);
513 NativeCrypto.SSL_use_psk_identity_hint(sslNativePointer, identityHint);
641 String identityHint, byte[] identityBytesOut, byte[] key, PSKCallbacks pskCallbacks) {
647 String identity = pskCallbacks.chooseClientPSKIdentity(pskKeyManager, identityHint);
671 SecretKey secretKey = pskCallbacks.getPSKKey(pskKeyManager, identityHint, identity);
687 String identityHint, String identity, byte[] key, PSKCallbacks pskCallbacks) {
692 SecretKey secretKey = pskCallbacks.getPSKKey(pskKeyManager, identityHint, identity);
762 String chooseClientPSKIdentity(PSKKeyManager keyManager, String identityHint); argument
763 SecretKey getPSKKey(PSKKeyManager keyManager, String identityHint, String identity); argument
640 clientPSKKeyRequested( String identityHint, byte[] identityBytesOut, byte[] key, PSKCallbacks pskCallbacks) argument
686 serverPSKKeyRequested( String identityHint, String identity, byte[] key, PSKCallbacks pskCallbacks) argument
H A DOpenSSLEngineImpl.java614 public int clientPSKKeyRequested(String identityHint, byte[] identity, byte[] key) { argument
615 return sslParameters.clientPSKKeyRequested(identityHint, identity, key, this);
619 public int serverPSKKeyRequested(String identityHint, String identity, byte[] key) { argument
620 return sslParameters.serverPSKKeyRequested(identityHint, identity, key, this);
752 public String chooseClientPSKIdentity(PSKKeyManager keyManager, String identityHint) { argument
753 return keyManager.chooseClientKeyIdentity(identityHint, this);
757 public SecretKey getPSKKey(PSKKeyManager keyManager, String identityHint, String identity) { argument
758 return keyManager.getKey(identityHint, identity, this);
H A DOpenSSLSocketImpl.java454 public int clientPSKKeyRequested(String identityHint, byte[] identity, byte[] key) { argument
455 return sslParameters.clientPSKKeyRequested(identityHint, identity, key, this);
460 public int serverPSKKeyRequested(String identityHint, String identity, byte[] key) { argument
461 return sslParameters.serverPSKKeyRequested(identityHint, identity, key, this);
1271 public String chooseClientPSKIdentity(PSKKeyManager keyManager, String identityHint) { argument
1272 return keyManager.chooseClientKeyIdentity(identityHint, this);
1276 public SecretKey getPSKKey(PSKKeyManager keyManager, String identityHint, String identity) { argument
1277 return keyManager.getKey(identityHint, identity, this);
H A DNativeCrypto.java837 public static native void SSL_use_psk_identity_hint(long ssl, String identityHint) argument
1198 * @param identityHint PSK identity hint provided by the server or {@code null} if no hint
1207 public int clientPSKKeyRequested(String identityHint, byte[] identity, byte[] key); argument
1213 * @param identityHint PSK identity hint provided by this server to the client or
1221 public int serverPSKKeyRequested(String identityHint, String identity, byte[] key); argument
/external/conscrypt/src/test/java/org/conscrypt/
H A DDuckTypedPSKKeyManagerTest.java101 String identityHint = "hint";
104 mockInvocationHandler.returnValue = identityHint;
105 assertSame(identityHint, pskKeyManager.chooseServerKeyIdentityHint(mSSLSocket));
113 mockInvocationHandler.returnValue = identityHint;
114 assertSame(identityHint, pskKeyManager.chooseServerKeyIdentityHint(mSSLEngine));
123 assertSame(identity, pskKeyManager.chooseClientKeyIdentity(identityHint, mSSLSocket));
128 assertSame(identityHint, mockInvocationHandler.lastInvokedMethodArgs[0]);
132 assertSame(identity, pskKeyManager.chooseClientKeyIdentity(identityHint, mSSLEngine));
137 assertSame(identityHint, mockInvocationHandler.lastInvokedMethodArgs[0]);
142 assertSame(key, pskKeyManager.getKey(identityHint, identit
185 chooseClientKeyIdentity(String identityHint, Socket socket) argument
189 chooseClientKeyIdentity(String identityHint, SSLEngine engine) argument
193 getKey(String identityHint, String identity, Socket socket) argument
216 chooseClientKeyIdentity(String identityHint, Socket socket) argument
220 chooseClientKeyIdentity(String identityHint, SSLEngine engine) argument
224 getKey(String identityHint, String identity, Socket socket) argument
228 getKey(String identityHint, String identity, SSLEngine engine) argument
249 chooseClientKeyIdentity(String identityHint, Socket socket) argument
253 chooseClientKeyIdentity(String identityHint, SSLEngine engine) argument
258 getKey(String identityHint, String identity, Socket socket) argument
263 getKey(String identityHint, String identity, SSLEngine engine) argument
284 chooseClientKeyIdentity(String identityHint, Socket socket) argument
288 chooseClientKeyIdentity(String identityHint, SSLEngine engine) argument
292 getKey(String identityHint, String identity, Socket socket) argument
297 getKey(String identityHint, String identity, SSLEngine engine) argument
[all...]
H A DNativeCryptoTest.java775 public int clientPSKKeyRequested(String identityHint, byte[] identity, byte[] key) { argument
779 + " identityHint=" + identityHint
784 clientPSKKeyRequestedIdentityHint = identityHint;
806 public int serverPSKKeyRequested(String identityHint, String identity, byte[] key) { argument
810 + " identityHint=" + identityHint
815 serverPSKKeyRequestedIdentityHint = identityHint;
/external/conscrypt/src/main/native/
H A Dorg_conscrypt_NativeCrypto.cpp7934 const char* identityHint = SSL_get_psk_identity_hint(ssl); local
7935 // identityHint = NULL;
7939 (identityHint != NULL) ? env->NewStringUTF(identityHint) : NULL);
8629 JNI_TRACE("ssl=%p NativeCrypto_SSL_use_psk_identity_hint identityHint=%p",
8639 ScopedUtfChars identityHint(env, identityHintJava);
8640 if (identityHint.c_str() == NULL) {
8641 throwSSLExceptionStr(env, "Failed to obtain identityHint bytes");
8644 ret = SSL_use_psk_identity_hint(ssl, identityHint.c_str());

Completed in 157 milliseconds