Codota Logo
KerberosConnection.<init>
Code IndexAdd Codota to your IDE (free)

How to use
org.apache.calcite.avatica.remote.KerberosConnection
constructor

Best Java code snippets using org.apache.calcite.avatica.remote.KerberosConnection.<init> (Showing top 6 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: org.apache.calcite.avatica/avatica-core

KerberosConnection createKerberosUtility(ConnectionConfig config) {
 final String principal = config.kerberosPrincipal();
 if (null != principal) {
  return new KerberosConnection(principal, config.kerberosKeytab());
 }
 return null;
}
origin: apache/calcite-avatica

KerberosConnection createKerberosUtility(ConnectionConfig config) {
 final String principal = config.kerberosPrincipal();
 if (null != principal) {
  return new KerberosConnection(principal, config.kerberosKeytab());
 }
 return null;
}
origin: org.apache.calcite.avatica/avatica-core

@Test(expected = NullPointerException.class) public void testNullArgs() {
 new KerberosConnection(null, null);
}
origin: apache/calcite-avatica

@Test(expected = NullPointerException.class) public void testNullArgs() {
 new KerberosConnection(null, null);
}
origin: org.apache.calcite.avatica/avatica-core

@Test public void testThreadConfiguration() {
 KerberosConnection krbUtil = new KerberosConnection("foo", new File("/bar.keytab"));
 Subject subject = new Subject();
 LoginContext context = Mockito.mock(LoginContext.class);
 Entry<RenewalTask, Thread> entry = krbUtil.createRenewalThread(context, subject, 10);
 assertNotNull("RenewalTask should not be null", entry.getKey());
 Thread t = entry.getValue();
 assertTrue("Thread name should contain 'Avatica', but is '" + t.getName() + "'",
   t.getName().contains("Avatica"));
 assertTrue(t.isDaemon());
 assertNotNull(t.getUncaughtExceptionHandler());
}
origin: apache/calcite-avatica

@Test public void testThreadConfiguration() {
 KerberosConnection krbUtil = new KerberosConnection("foo", new File("/bar.keytab"));
 Subject subject = new Subject();
 LoginContext context = Mockito.mock(LoginContext.class);
 Entry<RenewalTask, Thread> entry = krbUtil.createRenewalThread(context, subject, 10);
 assertNotNull("RenewalTask should not be null", entry.getKey());
 Thread t = entry.getValue();
 assertTrue("Thread name should contain 'Avatica', but is '" + t.getName() + "'",
   t.getName().contains("Avatica"));
 assertTrue(t.isDaemon());
 assertNotNull(t.getUncaughtExceptionHandler());
}
org.apache.calcite.avatica.remoteKerberosConnection<init>

Javadoc

Constructs an instance.

Popular methods of KerberosConnection

  • 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.
  • isIbmJava
    Returns whether or not the current environment is IBM Java. Otherwise, assumed to be Oracle Java/Ope
  • 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

  • Making http requests using okhttp
  • compareTo (BigDecimal)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • onRequestPermissionsResult (Fragment)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • StringTokenizer (java.util)
    The string tokenizer class allows an application to break a string into tokens. The tokenization met
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