Gets the key to be used in server mode for this connection in Pre-Shared Key (PSK) key
exchange.
@param identityHint PSK identity hint provided by this server to the client or
{@code null} if no hint was provided.
@param identity PSK identity provided by the client.
@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 server mode for this connection in Pre-Shared Key (PSK) key exchange.
@param identityHint PSK identity hint provided by this server to the client or {@code null} if no hint was provided. @param identity PSK identity provided by the client. @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.