Class KerberosUsernamePasswordAuthenticator
java.lang.Object
org.keycloak.federation.kerberos.impl.KerberosServerSubjectAuthenticator
org.keycloak.federation.kerberos.impl.KerberosUsernamePasswordAuthenticator
- Author:
- Marek Posolda
-
Field Summary
Fields inherited from class org.keycloak.federation.kerberos.impl.KerberosServerSubjectAuthenticator
config -
Constructor Summary
ConstructorsConstructorDescriptionKerberosUsernamePasswordAuthenticator(CommonKerberosConfig config, boolean disableKerberosAuthenticationRoundTrip) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionauthenticateSubject(String username, String password) Returns true if user was successfully authenticated against Kerberosprotected voidprotected voidprotected CallbackHandlercreateJaasCallbackHandler(String principal, String password) protected ConfigurationgetKerberosPrincipal(String username) booleanisUserAvailable(String username) Returns true if user with given username exists in kerberos databasevoidprotected booleanvalidateKerberosServiceTicketRoundTrip(Subject clientSubject, Subject serverSubject) booleanReturns true if user was successfully authenticated against KerberosMethods inherited from class org.keycloak.federation.kerberos.impl.KerberosServerSubjectAuthenticator
authenticateServerSubject, createServerJaasConfiguration, logoutServerSubject
-
Constructor Details
-
KerberosUsernamePasswordAuthenticator
-
KerberosUsernamePasswordAuthenticator
@Deprecated(since="26.8.1", forRemoval=true) public KerberosUsernamePasswordAuthenticator(CommonKerberosConfig config, boolean disableKerberosAuthenticationRoundTrip) Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
isUserAvailable
Returns true if user with given username exists in kerberos database- Parameters:
username- username without Kerberos realm attached or with correct realm attached- Returns:
- true if user available
-
validUser
Returns true if user was successfully authenticated against Kerberos- Parameters:
username- username without Kerberos realm attached or with correct realm attachedpassword- kerberos password- Returns:
- true if user was successfully authenticated
-
validateKerberosServiceTicketRoundTrip
-
checkKerberosServerAvailable
-
checkKerberosUsername
-
authenticateSubject
Returns true if user was successfully authenticated against Kerberos- Parameters:
username- username without Kerberos realm attachedpassword- kerberos password- Returns:
- true if user was successfully authenticated
- Throws:
LoginException
-
logoutSubject
public void logoutSubject() -
getKerberosPrincipal
- Throws:
LoginException
-
createJaasCallbackHandler
-
createJaasConfiguration
-