public class KerberosUsernamePasswordAuthenticator extends Object
| 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
|
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 passwordLoginExceptionpublic void logoutSubject()
protected String getKerberosPrincipal(String username) throws LoginException
LoginExceptionprotected CallbackHandler createJaasCallbackHandler(String principal, String password)
protected Configuration createJaasConfiguration()
Copyright © 2016 JBoss by Red Hat. All rights reserved.