congrats Icon
New! Announcing our next generation AI code completions
Read here
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

  • Reading from database using SQL prepared statement
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • onCreateOptionsMenu (Activity)
  • scheduleAtFixedRate (Timer)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • Path (java.nio.file)
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top 12 Jupyter Notebook Extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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