Tabnine Logo
ZKSignerSecretProvider$JaasConfiguration.getKrb5LoginModuleName
Code IndexAdd Tabnine to your IDE (free)

How to use
getKrb5LoginModuleName
method
in
org.apache.hadoop.security.authentication.util.ZKSignerSecretProvider$JaasConfiguration

Best Java code snippets using org.apache.hadoop.security.authentication.util.ZKSignerSecretProvider$JaasConfiguration.getKrb5LoginModuleName (Showing top 5 results out of 315)

origin: org.apache.hadoop/hadoop-auth

/**
 * Add an entry to the jaas configuration with the passed in name,
 * principal, and keytab. The other necessary options will be set for you.
 *
 * @param entryName The name of the entry (e.g. "Client")
 * @param principal The principal of the user
 * @param keytab The location of the keytab
 */
public JaasConfiguration(String entryName, String principal, String keytab) {
 this.entryName = entryName;
 Map<String, String> options = new HashMap<String, String>();
 options.put("keyTab", keytab);
 options.put("principal", principal);
 options.put("useKeyTab", "true");
 options.put("storeKey", "true");
 options.put("useTicketCache", "false");
 options.put("refreshKrb5Config", "true");
 String jaasEnvVar = System.getenv("HADOOP_JAAS_DEBUG");
 if (jaasEnvVar != null && "true".equalsIgnoreCase(jaasEnvVar)) {
  options.put("debug", "true");
 }
 entry = new AppConfigurationEntry[]{
       new AppConfigurationEntry(getKrb5LoginModuleName(),
       AppConfigurationEntry.LoginModuleControlFlag.REQUIRED,
       options)};
}
origin: com.github.jiayuhan-it/hadoop-auth

/**
 * Add an entry to the jaas configuration with the passed in name,
 * principal, and keytab. The other necessary options will be set for you.
 *
 * @param entryName The name of the entry (e.g. "Client")
 * @param principal The principal of the user
 * @param keytab The location of the keytab
 */
public JaasConfiguration(String entryName, String principal, String keytab) {
 this.entryName = entryName;
 Map<String, String> options = new HashMap<String, String>();
 options.put("keyTab", keytab);
 options.put("principal", principal);
 options.put("useKeyTab", "true");
 options.put("storeKey", "true");
 options.put("useTicketCache", "false");
 options.put("refreshKrb5Config", "true");
 String jaasEnvVar = System.getenv("HADOOP_JAAS_DEBUG");
 if (jaasEnvVar != null && "true".equalsIgnoreCase(jaasEnvVar)) {
  options.put("debug", "true");
 }
 entry = new AppConfigurationEntry[]{
       new AppConfigurationEntry(getKrb5LoginModuleName(),
       AppConfigurationEntry.LoginModuleControlFlag.REQUIRED,
       options)};
}
origin: hopshadoop/hops

/**
 * Add an entry to the jaas configuration with the passed in name,
 * principal, and keytab. The other necessary options will be set for you.
 *
 * @param entryName The name of the entry (e.g. "Client")
 * @param principal The principal of the user
 * @param keytab The location of the keytab
 */
public JaasConfiguration(String entryName, String principal, String keytab) {
 this.entryName = entryName;
 Map<String, String> options = new HashMap<String, String>();
 options.put("keyTab", keytab);
 options.put("principal", principal);
 options.put("useKeyTab", "true");
 options.put("storeKey", "true");
 options.put("useTicketCache", "false");
 options.put("refreshKrb5Config", "true");
 String jaasEnvVar = System.getenv("HADOOP_JAAS_DEBUG");
 if (jaasEnvVar != null && "true".equalsIgnoreCase(jaasEnvVar)) {
  options.put("debug", "true");
 }
 entry = new AppConfigurationEntry[]{
       new AppConfigurationEntry(getKrb5LoginModuleName(),
       AppConfigurationEntry.LoginModuleControlFlag.REQUIRED,
       options)};
}
origin: io.prestosql.hadoop/hadoop-apache

/**
 * Add an entry to the jaas configuration with the passed in name,
 * principal, and keytab. The other necessary options will be set for you.
 *
 * @param entryName The name of the entry (e.g. "Client")
 * @param principal The principal of the user
 * @param keytab The location of the keytab
 */
public JaasConfiguration(String entryName, String principal, String keytab) {
 this.entryName = entryName;
 Map<String, String> options = new HashMap<String, String>();
 options.put("keyTab", keytab);
 options.put("principal", principal);
 options.put("useKeyTab", "true");
 options.put("storeKey", "true");
 options.put("useTicketCache", "false");
 options.put("refreshKrb5Config", "true");
 String jaasEnvVar = System.getenv("HADOOP_JAAS_DEBUG");
 if (jaasEnvVar != null && "true".equalsIgnoreCase(jaasEnvVar)) {
  options.put("debug", "true");
 }
 entry = new AppConfigurationEntry[]{
       new AppConfigurationEntry(getKrb5LoginModuleName(),
       AppConfigurationEntry.LoginModuleControlFlag.REQUIRED,
       options)};
}
origin: io.hops/hadoop-auth

/**
 * Add an entry to the jaas configuration with the passed in name,
 * principal, and keytab. The other necessary options will be set for you.
 *
 * @param entryName The name of the entry (e.g. "Client")
 * @param principal The principal of the user
 * @param keytab The location of the keytab
 */
public JaasConfiguration(String entryName, String principal, String keytab) {
 this.entryName = entryName;
 Map<String, String> options = new HashMap<String, String>();
 options.put("keyTab", keytab);
 options.put("principal", principal);
 options.put("useKeyTab", "true");
 options.put("storeKey", "true");
 options.put("useTicketCache", "false");
 options.put("refreshKrb5Config", "true");
 String jaasEnvVar = System.getenv("HADOOP_JAAS_DEBUG");
 if (jaasEnvVar != null && "true".equalsIgnoreCase(jaasEnvVar)) {
  options.put("debug", "true");
 }
 entry = new AppConfigurationEntry[]{
       new AppConfigurationEntry(getKrb5LoginModuleName(),
       AppConfigurationEntry.LoginModuleControlFlag.REQUIRED,
       options)};
}
org.apache.hadoop.security.authentication.utilZKSignerSecretProvider$JaasConfigurationgetKrb5LoginModuleName

Popular methods of ZKSignerSecretProvider$JaasConfiguration

  • <init>
    Add an entry to the jaas configuration with the passed in name, principal, and keytab. The other nec
  • getAppConfigurationEntry

Popular in Java

  • Start an intent from android
  • getSharedPreferences (Context)
  • scheduleAtFixedRate (Timer)
  • addToBackStack (FragmentTransaction)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • JFrame (javax.swing)
  • Top plugins for Android Studio
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