class OzoneKMSUtil {

  public static KeyProvider getKeyProvider(final ConfigurationSource conf,
      final URI serverProviderUri) throws IOException{
    if (serverProviderUri == null) {
      throw new IOException("KMS serverProviderUri is not configured.");
    }
    return KMSUtil.createKeyProviderFromUri(
        LegacyHadoopConfigurationSource.asHadoopConfiguration(conf),
        serverProviderUri);
  }

  private  OzoneKMSUtil();

}