public class KerberosUsernamePasswordAuthenticator extends Object
Modifier and Type | Field and Description |
---|---|
protected CommonKerberosConfig |
config |
Constructor and Description |
---|
KerberosUsernamePasswordAuthenticator(CommonKerberosConfig config) |
Modifier and Type | Method and Description |
---|---|
Subject |
authenticateSubject(String username,
String password)
Returns true if user was successfully authenticated against Kerberos
|
protected void |
checkKerberosServerAvailable(LoginException le) |
protected CallbackHandler |
createJaasCallbackHandler(String principal,
String password) |
protected Configuration |
createJaasConfiguration() |
protected String |
getKerberosPrincipal(String username) |
boolean |
isUserAvailable(String username)
Returns true if user with given username exists in kerberos database
|
void |
logoutSubject() |
boolean |
validUser(String username,
String password)
Returns true if user was successfully authenticated against Kerberos
|
protected final CommonKerberosConfig config
public KerberosUsernamePasswordAuthenticator(CommonKerberosConfig config)
public boolean isUserAvailable(String username)
username
- username without Kerberos realm attached or with correct realm attachedpublic boolean validUser(String username, String password)
username
- username without Kerberos realm attached or with correct realm attachedpassword
- kerberos passwordprotected void checkKerberosServerAvailable(LoginException le)
public Subject authenticateSubject(String username, String password) throws LoginException
username
- username without Kerberos realm attachedpassword
- kerberos passwordLoginException
public void logoutSubject()
protected String getKerberosPrincipal(String username) throws LoginException
LoginException
protected CallbackHandler createJaasCallbackHandler(String principal, String password)
protected Configuration createJaasConfiguration()
Copyright © 2021 JBoss by Red Hat. All rights reserved.