@Service public class AuthenticatorServiceImpl extends Object implements AuthenticationService
| Constructor and Description |
|---|
AuthenticatorServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyAttributes(org.jabylon.users.User user,
Subject subject) |
boolean |
authenticate(String username,
String password)
authenticates the given credentials
|
org.jabylon.users.User |
authenticateUser(String username,
String password)
tries to authenticate the given credentials
if the credentials are correct, the matching user object is returned.
|
protected void |
deactivate() |
protected Subject |
doAuthenticate(String username,
String password) |
org.jabylon.users.User |
getAnonymousUser()
retrieves the anonymous user.
|
org.jabylon.cdo.connector.RepositoryConnector |
getRepositoryConnector() |
void |
setRepositoryConnector(org.jabylon.cdo.connector.RepositoryConnector repositoryConnector) |
void |
unbindRepositoryConnector(org.jabylon.cdo.connector.RepositoryConnector repositoryConnector) |
public boolean authenticate(String username, String password)
AuthenticationServiceauthenticate in interface AuthenticationServicetrue if the credentials are valid. false otherwisepublic org.jabylon.users.User authenticateUser(String username, String password)
AuthenticationService
if the credentials are correct, the matching user object is returned.
Otherwise this method returns null
authenticateUser in interface AuthenticationServicenullprotected void applyAttributes(org.jabylon.users.User user,
Subject subject)
public org.jabylon.cdo.connector.RepositoryConnector getRepositoryConnector()
public void setRepositoryConnector(org.jabylon.cdo.connector.RepositoryConnector repositoryConnector)
public void unbindRepositoryConnector(org.jabylon.cdo.connector.RepositoryConnector repositoryConnector)
@Deactivate protected void deactivate()
public org.jabylon.users.User getAnonymousUser()
AuthenticationServicegetAnonymousUser in interface AuthenticationServiceCopyright © 2013–2014 Jabylon. All rights reserved.