Package com.jsql.util
Class AuthenticationUtil
java.lang.Object
com.jsql.util.AuthenticationUtil
Manage authentication protocols Basic, Digest, NTLM and Kerberos.
Java class Authenticator processes Basic, Digest and NTLM, library spnego
processes kerberos.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
initializeSimpleAuthorization
(boolean isAuthentication, String usernameAuthentication, String passwordAuthentication) boolean
boolean
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.void
Apply kerberos authentication to the JVM.void
Initialize the utility class with preferences from the JVM and apply environment settings.withPasswordAuthentication
(String passwordAuthentication) withUsernameAuthentication
(String usernameAuthentication)
-
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 activatedusernameAuthentication
- login for standard authenticationpasswordAuthentication
- pass for standard authenticationisKerberos
- true if krb authentication is activatedkerberosKrb5Conf
- path to the file krb5kerberosLoginConf
- path to the file login
-
initializeSimpleAuthorization
-
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
-
getPathKerberosKrb5
-
isKerberos
public boolean isKerberos() -
getUsernameAuthentication
-
getPasswordAuthentication
-
withAuthenticationEnabled
-
withUsernameAuthentication
-
withPasswordAuthentication
-