Class ClusterUser


  • public class ClusterUser
    extends Object
    Simple wrapper around a principal and its credentials: a password or a keytab.
    • Constructor Detail

      • ClusterUser

        public ClusterUser​(String principal,
                           File keytab)
      • ClusterUser

        public ClusterUser​(String principal,
                           String password)
    • Method Detail

      • getPrincipal

        public String getPrincipal()
        Returns:
        the principal
      • getKeytab

        public File getKeytab()
        Returns:
        the keytab, or null if login is password-based
      • getPassword

        public String getPassword()
        Returns:
        the password, or null if login is keytab-based
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object