|
Errai 3.0.1-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.errai.security.server.PicketLinkAuthenticationService
@ApplicationScoped public class PicketLinkAuthenticationService
PicketLink version of the AuthenticationService and default implementation.
Constructor Summary | |
---|---|
PicketLinkAuthenticationService()
|
Method Summary | |
---|---|
User |
getUser()
Get the currently authenticated user. |
boolean |
isLoggedIn()
|
User |
login(String username,
String password)
Login with the given username and password, throwing an exception if the login fails. |
void |
logout()
Log out the currently authenticated user. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PicketLinkAuthenticationService()
Method Detail |
---|
public User login(String username, String password)
AuthenticationService
login
in interface AuthenticationService
username
- The username to log in with.password
- The password to authenticate with.
User
.public boolean isLoggedIn()
isLoggedIn
in interface AuthenticationService
public void logout()
AuthenticationService
logout
in interface AuthenticationService
public User getUser()
AuthenticationService
getUser
in interface AuthenticationService
null
. If no
user is logged in, returns User.ANONYMOUS
.
|
Errai 3.0.1-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |