Class KerberosUsernamePasswordAuthenticator
java.lang.Object
org.keycloak.federation.kerberos.impl.KerberosUsernamePasswordAuthenticator
- Author:
- Marek Posolda
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionauthenticateSubject
(String username, String password) Returns true if user was successfully authenticated against Kerberosprotected void
protected void
protected CallbackHandler
createJaasCallbackHandler
(String principal, String password) protected Configuration
getKerberosPrincipal
(String username) boolean
isUserAvailable
(String username) Returns true if user with given username exists in kerberos databasevoid
boolean
Returns 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
-