public interface LoginService
| Modifier and Type | Method and Description | 
|---|---|
void | 
addSecurityDomain(SecurityDomain domain)  | 
SecurityDomain | 
getSecurityDomain(String name)  | 
SecurityDomain[] | 
getSecurityDomains()  | 
boolean | 
isSystemId(Principal principal)  | 
LoginContext | 
login()
System login, using a private principal that has all privileges. 
 | 
LoginContext | 
login(CallbackHandler cbHandler)
Client login using a custom callback handler to retrieve login info. 
 | 
LoginContext | 
login(String username,
     Object credentials)
Client login using the given username and password. 
 | 
LoginContext | 
loginAs(String username)
System login, using a private principal that has all privileges. 
 | 
void | 
removeSecurityDomain(String name)  | 
void | 
removeSecurityDomains()  | 
LoginContext login() throws LoginException
 The method requires the caller to have the SystemLoginPermission permission.
LoginExceptionLoginContext loginAs(String username) throws LoginException
 The method requires the caller to have the SystemLoginPermission permission.
username - the username that originated the system loginLoginExceptionLoginContext login(String username, Object credentials) throws LoginException
LoginExceptionLoginContext login(CallbackHandler cbHandler) throws LoginException
cbHandler - the callback handler to use to retrieve the login infoLoginExceptionSecurityDomain getSecurityDomain(String name)
void addSecurityDomain(SecurityDomain domain)
boolean isSystemId(Principal principal)
void removeSecurityDomain(String name)
SecurityDomain[] getSecurityDomains()
void removeSecurityDomains()
Copyright © 2019 Nuxeo. All rights reserved.