Codota Logo
CassandraLoginModule
Code IndexAdd Codota to your IDE (free)

How to use
CassandraLoginModule
in
org.apache.cassandra.auth

Best Java code snippets using org.apache.cassandra.auth.CassandraLoginModule (Showing top 12 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Connection c =
  • Codota IconDataSource dataSource;dataSource.getConnection()
  • Codota IconString url;DriverManager.getConnection(url)
  • Codota IconIdentityDatabaseUtil.getDBConnection()
  • Smart code suggestions by Codota
}
origin: com.strapdata.cassandra/cassandra-all

cleanUpInternalState();
principal = null;
logout();
origin: org.apache.cassandra/cassandra-all

authenticate();
cleanUpInternalState();
throw new FailedLoginException(e.getMessage());
origin: org.apache.cassandra/cassandra-all

/**
 * Logout the user.
 *
 * This method removes the principal that was added by the
 * {@code}commit{@code} method.
 *
 * @return true in all cases since this {@code}LoginModule{@code}
 *         should not be ignored.
 * @throws LoginException if the logout fails.
 */
@Override
public boolean logout() throws LoginException
{
  subject.getPrincipals().remove(principal);
  succeeded = false;
  cleanUpInternalState();
  principal = null;
  return true;
}
origin: jsevellec/cassandra-unit

authenticate();
cleanUpInternalState();
throw new FailedLoginException(e.getMessage());
origin: jsevellec/cassandra-unit

/**
 * Logout the user.
 *
 * This method removes the principal that was added by the
 * {@code}commit{@code} method.
 *
 * @return true in all cases since this {@code}LoginModule{@code}
 *         should not be ignored.
 * @throws LoginException if the logout fails.
 */
@Override
public boolean logout() throws LoginException
{
  subject.getPrincipals().remove(principal);
  succeeded = false;
  cleanUpInternalState();
  principal = null;
  return true;
}
origin: jsevellec/cassandra-unit

cleanUpInternalState();
principal = null;
logout();
origin: com.strapdata.cassandra/cassandra-all

authenticate();
cleanUpInternalState();
throw new FailedLoginException(e.getMessage());
origin: com.strapdata.cassandra/cassandra-all

/**
 * Logout the user.
 *
 * This method removes the principal that was added by the
 * {@code}commit{@code} method.
 *
 * @return true in all cases since this {@code}LoginModule{@code}
 *         should not be ignored.
 * @throws LoginException if the logout fails.
 */
@Override
public boolean logout() throws LoginException
{
  subject.getPrincipals().remove(principal);
  succeeded = false;
  cleanUpInternalState();
  principal = null;
  return true;
}
origin: org.apache.cassandra/cassandra-all

cleanUpInternalState();
principal = null;
logout();
origin: jsevellec/cassandra-unit

  subject.getPrincipals().add(principal);
cleanUpInternalState();
commitSucceeded = true;
return true;
origin: org.apache.cassandra/cassandra-all

  subject.getPrincipals().add(principal);
cleanUpInternalState();
commitSucceeded = true;
return true;
origin: com.strapdata.cassandra/cassandra-all

  subject.getPrincipals().add(principal);
cleanUpInternalState();
commitSucceeded = true;
return true;
org.apache.cassandra.authCassandraLoginModule

Javadoc

LoginModule which authenticates a user towards the Cassandra database using the internal authentication mechanism.

Most used methods

  • authenticate
  • cleanUpInternalState
  • logout
    Logout the user. This method removes the principal that was added by the commit method.

Popular in Java

  • Making http requests using okhttp
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • findViewById (Activity)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • JOptionPane (javax.swing)
  • LogFactory (org.apache.commons.logging)
    A minimal incarnation of Apache Commons Logging's LogFactory API, providing just the common Log look
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Logger (org.slf4j)
    The main user interface to logging. It is expected that logging takes place through concrete impleme
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