@Named @RequestScoped public class Authenticator extends Object implements Serializable
Subject| Constructor and Description |
|---|
Authenticator()
The constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
authenticationIsNeeded() |
void |
login(Credential credential)
Login the user by his credentials
|
void |
logout()
Logout the current subject
|
public void login(Credential credential)
credential - the user credentialspublic void logout()
public boolean authenticationIsNeeded()
Copyright © 2018 Arthur Gregorio. All rights reserved.