Tabnine Logo
SecureStoreUtils.isKMSCapable
Code IndexAdd Tabnine to your IDE (free)

How to use
isKMSCapable
method
in
co.cask.cdap.security.store.SecureStoreUtils

Best Java code snippets using co.cask.cdap.security.store.SecureStoreUtils.isKMSCapable (Showing top 5 results out of 315)

origin: cdapio/cdap

 /**
  * Adds extra dependency classes based on the given configuration.
  */
 private Set<Class<?>> addExtraDependencies(CConfiguration cConf, Set<Class<?>> dependencies) {
  // Only support HBase and KMS when running on premise
  if (clusterMode == ClusterMode.ON_PREMISE) {
   dependencies.add(HBaseTableUtilFactory.getHBaseTableUtilClass(cConf));
   if (SecureStoreUtils.isKMSBacked(cConf) && SecureStoreUtils.isKMSCapable()) {
    dependencies.add(SecureStoreUtils.getKMSSecureStore());
   }
  }

  return dependencies;
 }
}
origin: co.cask.cdap/cdap-app-fabric

 /**
  * Adds extra dependency classes based on the given configuration.
  */
 private Set<Class<?>> addExtraDependencies(CConfiguration cConf, Set<Class<?>> dependencies) {
  // Only support HBase and KMS when running on premise
  if (clusterMode == ClusterMode.ON_PREMISE) {
   dependencies.add(HBaseTableUtilFactory.getHBaseTableUtilClass(cConf));
   if (SecureStoreUtils.isKMSBacked(cConf) && SecureStoreUtils.isKMSCapable()) {
    dependencies.add(SecureStoreUtils.getKMSSecureStore());
   }
  }

  return dependencies;
 }
}
origin: cdapio/cdap

 @Override
 @SuppressWarnings("unchecked")
 public SecureStoreService get() {
  if (SecureStoreUtils.isFileBacked(cConf)) {
   if (Strings.isNullOrEmpty(sConf.get(Constants.Security.Store.FILE_PASSWORD))) {
    throw new IllegalArgumentException("File secure store password is not set. Please set the " +
                       "\"security.store.file.password\" property in cdap-security.xml.");
   }
   return injector.getInstance(FileSecureStoreService.class);
  }
  if (SecureStoreUtils.isKMSBacked(cConf)) {
   if (!SecureStoreUtils.isKMSCapable()) {
    throw new IllegalArgumentException("Could not find classes such as " +
                       "org.apache.hadoop.crypto.key.kms.KMSClientProvider. KMS based secure " +
                       "store is only supported in Apache Hadoop 2.6.0 and above.");
   }
   return injector.getInstance(SecureStoreUtils.getKMSSecureStore());
  }
  if (SecureStoreUtils.isNone(cConf)) {
   return injector.getInstance(DummySecureStoreService.class);
  }
  return injector.getInstance(SecretManagerSecureStoreService.class);
 }
}
origin: cdapio/cdap

if (SecureStoreUtils.isKMSBacked(cConf) && SecureStoreUtils.isKMSCapable()) {
 classes.add(SecureStoreUtils.getKMSSecureStore());
origin: co.cask.cdap/cdap-app-fabric

if (SecureStoreUtils.isKMSBacked(cConf) && SecureStoreUtils.isKMSCapable()) {
 classes.add(SecureStoreUtils.getKMSSecureStore());
co.cask.cdap.security.storeSecureStoreUtilsisKMSCapable

Popular methods of SecureStoreUtils

  • getKMSSecureStore
  • isKMSBacked
  • isFileBacked
  • isNone
    Checks if the store provider is none. Returns true if the provider value is set to none.

Popular in Java

  • Making http requests using okhttp
  • compareTo (BigDecimal)
  • notifyDataSetChanged (ArrayAdapter)
  • setScale (BigDecimal)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Notification (javax.management)
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now