Gets the key to be used in client mode for this connection in Pre-Shared Key (PSK) key
exchange.
@param identityHint PSK identity hint provided by the server or {@code null} if no hint
provided.
@param identity buffer to be populated with PSK identity (NULL-terminated modified UTF-8)
by this method. This identity will be provided to the server.
@param key buffer to be populated with key material by this method.
@return number of bytes this method stored in the {@code key} buffer or {@code 0} if an
error occurred in which case the handshake will be aborted.
Gets the key to be used in client mode for this connection in Pre-Shared Key (PSK) key exchange.
@param identityHint PSK identity hint provided by the server or {@code null} if no hint provided. @param identity buffer to be populated with PSK identity (NULL-terminated modified UTF-8) by this method. This identity will be provided to the server. @param key buffer to be populated with key material by this method.
@return number of bytes this method stored in the {@code key} buffer or {@code 0} if an error occurred in which case the handshake will be aborted.