Package com.jsql.util

Class AuthenticationUtil

java.lang.Object
com.jsql.util.AuthenticationUtil

public class AuthenticationUtil extends Object
Manage authentication protocols Basic, Digest, NTLM and Kerberos. Java class Authenticator processes Basic, Digest and NTLM, library spnego processes kerberos.
  • Constructor Details

    • AuthenticationUtil

      public AuthenticationUtil()
  • Method Details

    • set

      public boolean set(boolean isAuthentication, String usernameAuthentication, String passwordAuthentication, boolean isKerberos, String kerberosKrb5Conf, String kerberosLoginConf)
      Get new authentication settings from the view, update the utility class, persist settings to the JVM and apply changes to the system.
      Parameters:
      isAuthentication - true if non-kerberos authentication is activated
      usernameAuthentication - login for standard authentication
      passwordAuthentication - pass for standard authentication
      isKerberos - true if krb authentication is activated
      kerberosKrb5Conf - path to the file krb5
      kerberosLoginConf - path to the file login
    • initializeSimpleAuthorization

      public void initializeSimpleAuthorization(boolean isAuthentication, String usernameAuthentication, String passwordAuthentication)
    • setKerberosCifs

      public void setKerberosCifs()
      Initialize the utility class with preferences from the JVM and apply environment settings.
    • setAuthentication

      public void setAuthentication()
      Apply kerberos authentication to the JVM.
    • isAuthentEnabled

      public boolean isAuthentEnabled()
    • getPathKerberosLogin

      public String getPathKerberosLogin()
    • getPathKerberosKrb5

      public String getPathKerberosKrb5()
    • isKerberos

      public boolean isKerberos()
    • getUsernameAuthentication

      public String getUsernameAuthentication()
    • getPasswordAuthentication

      public String getPasswordAuthentication()
    • withAuthenticationEnabled

      public AuthenticationUtil withAuthenticationEnabled()
    • withUsernameAuthentication

      public AuthenticationUtil withUsernameAuthentication(String usernameAuthentication)
    • withPasswordAuthentication

      public AuthenticationUtil withPasswordAuthentication(String passwordAuthentication)