Class KerberosConfigurationCreator

    • Field Detail

      • USE_SUBJECT_CREDENTIALS_ONLY_PROPERTY

        public static final String USE_SUBJECT_CREDENTIALS_ONLY_PROPERTY
        useSubjectCredsOnly property
        See Also:
        Constant Field Values
      • KERBEROS_CONFIG_PROPERTY

        public static final String KERBEROS_CONFIG_PROPERTY
        Kerberos config property
        See Also:
        Constant Field Values
      • KERBEROS_AUTHENTICATION_PREAMBLE

        public static final String KERBEROS_AUTHENTICATION_PREAMBLE
        Kerberos authentication preamble
        See Also:
        Constant Field Values
    • Constructor Detail

      • KerberosConfigurationCreator

        public KerberosConfigurationCreator()
    • Method Detail

      • isKerberosAuthentication

        public static boolean isKerberosAuthentication​(String password)
        Check whether the given password contains Kerberos credentials.
        Parameters:
        password - password / credential string to be examined
        Returns:
        true if the password is a Kerberos credential string, false otherwise
      • writeKerberosConfigurationFiles

        public void writeKerberosConfigurationFiles​(String user,
                                                    String password)
        Create Kerberos configuration and system properties.
        Parameters:
        user - Kerberos principal
        password - connection password containing kerberos configuration and key tab