Lines Matching defs:identity

45  * handshake the server can provide a <em>PSK identity hint</em> to the client, and the client can
46 * provide a <em>PSK identity</em> to the server. The contents of these two pieces of information
49 * <p><em>NOTE: Both the PSK identity hint and the PSK identity are transmitted in cleartext.
57 * <li>Server replies, optionally providing a PSK identity hint to client.</li>
59 * <li>Client provides a PSK identity of the chosen key to server.</li>
65 * know the key to learn which PSK identity hints or PSK identities are supported. If this is a
68 * where a key is available -- making it appear to the attacker that all PSK identity hints and PSK
76 * <li>128 bytes for PSK identity and PSK identity hint (in modified UTF-8 representation) (see
100 * Maximum supported length (in bytes) for PSK identity hint (in modified UTF-8 representation).
104 /** Maximum supported length (in bytes) for PSK identity (in modified UTF-8 representation). */
111 * Gets the PSK identity hint to report to the client to help agree on the PSK for the provided
114 * @return PSK identity hint to be provided to the client or {@code null} to provide no hint.
119 * Gets the PSK identity hint to report to the client to help agree on the PSK for the provided
122 * @return PSK identity hint to be provided to the client or {@code null} to provide no hint.
127 * Gets the PSK identity to report to the server to help agree on the PSK for the provided
130 * @param identityHint identity hint provided by the server or {@code null} if none provided.
132 * @return PSK identity to provide to the server. {@code null} is permitted but will be
138 * Gets the PSK identity to report to the server to help agree on the PSK for the provided
141 * @param identityHint identity hint provided by the server or {@code null} if none provided.
143 * @return PSK identity to provide to the server. {@code null} is permitted but will be
151 * @param identityHint identity hint provided by the server to help select the key or
153 * @param identity identity provided by the client to help select the key.
158 SecretKey getKey(String identityHint, String identity, Socket socket);
163 * @param identityHint identity hint provided by the server to help select the key or
165 * @param identity identity provided by the client to help select the key.
170 SecretKey getKey(String identityHint, String identity, SSLEngine engine);