public class DefaultLoginHandler extends Object implements LoginHandler
Constructor and Description |
---|
DefaultLoginHandler() |
DefaultLoginHandler(String username,
char[] password) |
DefaultLoginHandler(String username,
String password) |
Modifier and Type | Method and Description |
---|---|
LoginContext |
getLoginContext() |
char[] |
getPassword() |
String |
getUsername() |
boolean |
isLogged() |
LoginContext |
login() |
LoginContext |
loginAsSystem(String username) |
void |
logout() |
void |
retryLogin() |
void |
setPassword(char[] password) |
void |
setPassword(String password) |
void |
setUsername(String username) |
public DefaultLoginHandler()
public DefaultLoginHandler(String username, char[] password)
public void setUsername(String username)
public void setPassword(char[] password)
public void setPassword(String password)
public char[] getPassword()
public String getUsername()
public LoginContext getLoginContext()
getLoginContext
in interface LoginHandler
public LoginContext login() throws LoginException
login
in interface LoginHandler
LoginException
public void logout() throws LoginException
logout
in interface LoginHandler
LoginException
public void retryLogin() throws LoginException
retryLogin
in interface LoginHandler
LoginException
public boolean isLogged()
isLogged
in interface LoginHandler
public LoginContext loginAsSystem(String username) throws LoginException
loginAsSystem
in interface LoginHandler
LoginException
Copyright © 2011 Nuxeo SA. All Rights Reserved.