Class KerberosUsernamePasswordAuthenticator
java.lang.Object
org.keycloak.federation.kerberos.impl.KerberosUsernamePasswordAuthenticator
- Author:
- Marek Posolda
-
Field Summary
Fields -
Constructor Summary
Constructors -
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 databasevoidbooleanReturns true if user was successfully authenticated against Kerberos
-
Field Details
-
config
-
-
Constructor Details
-
KerberosUsernamePasswordAuthenticator
-
-
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
-
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
-