@Override
    public Future<SslProvider> map(final String domain, final Promise<SslProvider> promise) {
        try {
            for (String key : sslProviderMap.keySet()) {
                if (matchDomain(domain, key)) {
                    return promise.setSuccess(sslProviderMap.get(key));
                }
            }
            return promise.setFailure(new ShenyuException(
                    String.format("Can not find ssl certificate of domain %s", domain)));
        } catch (Throwable cause) {
            return promise.setFailure(cause);
        }
    }
Get SslProvider by domain.

@param domain domain
@param promise the promise of SslProvider
@return SslProvider Future
shenyu-common/src/main/java/org/apache/shenyu/common/config/ssl/ShenyuSniAsyncMapping.java