org.apache.cassandra.auth

Class Auth

  • java.lang.Object
    • org.apache.cassandra.auth.Auth


  • public class Authextends java.lang.Object
    • Nested Class Summary

      Nested Classes 
      Modifier and TypeClass and Description
      static class Auth.MigrationListener
      IMigrationListener implementation that cleans up permissions on dropped resources.
    • Constructor Summary

      Constructors 
      Constructor and Description
      Auth() 
    • Method Summary

      Methods 
      Modifier and TypeMethod and Description
      static voiddeleteUser(java.lang.String username)
      Deletes the user from AUTH_KS.USERS_CF.
      static voidinsertUser(java.lang.String username, boolean isSuper)
      Inserts the user into AUTH_KS.USERS_CF (or overwrites their superuser status as a result of an ALTER USER query).
      static booleanisExistingUser(java.lang.String username)
      Checks if the username is stored in AUTH_KS.USERS_CF.
      static booleanisSuperuser(java.lang.String username)
      Checks if the user is a known superuser.
      static voidsetup()
      Sets up Authenticator and Authorizer.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • DEFAULT_SUPERUSER_NAME

        public static final java.lang.String DEFAULT_SUPERUSER_NAME
        See Also:
        Constant Field Values
      • SUPERUSER_SETUP_DELAY

        public static final long SUPERUSER_SETUP_DELAY
    • Constructor Detail

      • Auth

        public Auth()
    • Method Detail

      • isExistingUser

        public static boolean isExistingUser(java.lang.String username)
        Checks if the username is stored in AUTH_KS.USERS_CF.
        Parameters:
        username - Username to query.
        Returns:
        whether or not Cassandra knows about the user.
      • isSuperuser

        public static boolean isSuperuser(java.lang.String username)
        Checks if the user is a known superuser.
        Parameters:
        username - Username to query.
        Returns:
        true is the user is a superuser, false if they aren't or don't exist at all.
      • insertUser

        public static void insertUser(java.lang.String username,              boolean isSuper)                       throws RequestExecutionException
        Inserts the user into AUTH_KS.USERS_CF (or overwrites their superuser status as a result of an ALTER USER query).
        Parameters:
        username - Username to insert.
        isSuper - User's new status.
        Throws:
        RequestExecutionException
      • setup

        public static void setup()
        Sets up Authenticator and Authorizer.

Copyright © 2013 The Apache Software Foundation



NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14