Codota Logo
KerberosConnection.isIbmJava
Code IndexAdd Codota to your IDE (free)

How to use
isIbmJava
method
in
org.apache.calcite.avatica.remote.KerberosConnection

Best Java code snippets using org.apache.calcite.avatica.remote.KerberosConnection.isIbmJava (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew LinkedList()
  • Codota IconCollections.emptyList()
  • Codota Iconnew ArrayList()
  • Smart code suggestions by Codota
}
origin: apache/calcite-avatica

 @Override public AppConfigurationEntry[] getAppConfigurationEntry(String name) {
  Map<String, String> options = new HashMap<String, String>();
  options.put("principal", principal);
  options.put("refreshKrb5Config", "true");
  if (KerberosConnection.isIbmJava()) {
   options.put("useKeytab", keytab);
   options.put("credsType", "both");
  } else {
   options.put("keyTab", keytab);
   options.put("useKeyTab", "true");
   options.put("isInitiator", "false");
   options.put("doNotPrompt", "true");
   options.put("storeKey", "true");
  }

  LOG.debug("JAAS Configuration for server keytab-based Kerberos login: {}", options);

  return new AppConfigurationEntry[] {new AppConfigurationEntry(
    KerberosConnection.getKrb5LoginModuleName(),
    AppConfigurationEntry.LoginModuleControlFlag.REQUIRED, options)};
 }
}
origin: apache/calcite-avatica

 @Override public AppConfigurationEntry[] getAppConfigurationEntry(String name) {
  Map<String, String> options = new HashMap<String, String>();
  options.put("principal", principal);
  options.put("refreshKrb5Config", "true");
  if (KerberosConnection.isIbmJava()) {
   options.put("useKeytab", keytab);
   options.put("credsType", "both");
  } else {
   options.put("keyTab", keytab);
   options.put("useKeyTab", "true");
   options.put("isInitiator", "true");
   options.put("doNotPrompt", "true");
   options.put("storeKey", "true");
  }

  LOG.debug("JAAS Configuration for client keytab-based Kerberos login: {}", options);

  return new AppConfigurationEntry[] {new AppConfigurationEntry(
    KerberosConnection.getKrb5LoginModuleName(),
    AppConfigurationEntry.LoginModuleControlFlag.REQUIRED, options)};
 }
}
origin: org.apache.calcite.avatica/avatica-core

 @Override public AppConfigurationEntry[] getAppConfigurationEntry(String name) {
  Map<String, String> options = new HashMap<String, String>();
  options.put("principal", principal);
  options.put("refreshKrb5Config", "true");
  if (KerberosConnection.isIbmJava()) {
   options.put("useKeytab", keytab);
   options.put("credsType", "both");
  } else {
   options.put("keyTab", keytab);
   options.put("useKeyTab", "true");
   options.put("isInitiator", "true");
   options.put("doNotPrompt", "true");
   options.put("storeKey", "true");
  }

  LOG.debug("JAAS Configuration for client keytab-based Kerberos login: {}", options);

  return new AppConfigurationEntry[] {new AppConfigurationEntry(
    KerberosConnection.getKrb5LoginModuleName(),
    AppConfigurationEntry.LoginModuleControlFlag.REQUIRED, options)};
 }
}
origin: org.apache.calcite.avatica/avatica-server

 @Override public AppConfigurationEntry[] getAppConfigurationEntry(String name) {
  Map<String, String> options = new HashMap<String, String>();
  options.put("principal", principal);
  options.put("refreshKrb5Config", "true");
  if (KerberosConnection.isIbmJava()) {
   options.put("useKeytab", keytab);
   options.put("credsType", "both");
  } else {
   options.put("keyTab", keytab);
   options.put("useKeyTab", "true");
   options.put("isInitiator", "false");
   options.put("doNotPrompt", "true");
   options.put("storeKey", "true");
  }

  LOG.debug("JAAS Configuration for server keytab-based Kerberos login: {}", options);

  return new AppConfigurationEntry[] {new AppConfigurationEntry(
    KerberosConnection.getKrb5LoginModuleName(),
    AppConfigurationEntry.LoginModuleControlFlag.REQUIRED, options)};
 }
}
org.apache.calcite.avatica.remoteKerberosConnectionisIbmJava

Javadoc

Returns whether or not the current environment is IBM Java. Otherwise, assumed to be Oracle Java/OpenJDK.

Popular methods of KerberosConnection

  • <init>
    Constructs an instance.
  • createLoginContext
  • createRenewalThread
    Launches a thread to periodically check the current ticket's lifetime and perform a relogin as neces
  • getKrb5LoginModuleName
    Returns the KRB5 LoginModule implementation. This is JVM-vendor dependent.
  • login
    Performs a kerberos login, possibly logging out first.
  • getSubject
  • isTGSPrincipal
    Computes if the given principal is the ticket-granting system's principal ("krbtgt").
  • performKerberosLogin
    Performs a Kerberos login given the principal and keytab.
  • stopRenewalThread
    Stops the Kerberos renewal thread if it is still running. If the thread was already started or never

Popular in Java

  • Start an intent from android
  • notifyDataSetChanged (ArrayAdapter)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • String (java.lang)
  • KeyStore (java.security)
    This class represents an in-memory collection of keys and certificates. It manages two types of entr
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now