Class JaasConfiguration

java.lang.Object
javax.security.auth.login.Configuration
org.apache.hadoop.security.authentication.util.JaasConfiguration

public class JaasConfiguration extends Configuration
Creates a programmatic version of a jaas.conf file. This can be used instead of writing a jaas.conf file and setting the system property, "java.security.auth.login.config", to point to that file. It is meant to be used for connecting to ZooKeeper.
  • Constructor Details

    • JaasConfiguration

      public JaasConfiguration(String entryName, String principal, String keytab)
      Add an entry to the jaas configuration with the passed in name, principal, and keytab. The other necessary options will be set for you.
      Parameters:
      entryName - The name of the entry (e.g. "Client")
      principal - The principal of the user
      keytab - The location of the keytab
  • Method Details