Package com.exasol.auth.kerberos
Class KerberosConfigurationCreator
- java.lang.Object
-
- com.exasol.auth.kerberos.KerberosConfigurationCreator
-
public class KerberosConfigurationCreator extends Object
This class generates the necessary configuration for a successful Kerberos authentication.
-
-
Field Summary
Fields Modifier and Type Field Description static StringKERBEROS_AUTHENTICATION_PREAMBLEKerberos authentication preamblestatic StringKERBEROS_CONFIG_PROPERTYKerberos config propertystatic StringLOGIN_CONFIG_PROPERTYLogin config propertystatic StringUSE_SUBJECT_CREDENTIALS_ONLY_PROPERTYuseSubjectCredsOnly property
-
Constructor Summary
Constructors Constructor Description KerberosConfigurationCreator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanisKerberosAuthentication(String password)Check whether the given password contains Kerberos credentials.voidwriteKerberosConfigurationFiles(String user, String password)Create Kerberos configuration and system properties.
-
-
-
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
-
LOGIN_CONFIG_PROPERTY
public static final String LOGIN_CONFIG_PROPERTY
Login 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
-
-
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:
trueif the password is a Kerberos credential string,falseotherwise
-
-