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.
LoginException
LoginContext loginAs(String username) throws LoginException
The method requires the caller to have the SystemLoginPermission
permission.
username
- the username that originated the system loginLoginException
LoginContext login(String username, Object credentials) throws LoginException
LoginException
LoginContext login(CallbackHandler cbHandler) throws LoginException
cbHandler
- the callback handler to use to retrieve the login infoLoginException
SecurityDomain getSecurityDomain(String name)
void addSecurityDomain(SecurityDomain domain)
boolean isSystemId(Principal principal)
void removeSecurityDomain(String name)
SecurityDomain[] getSecurityDomains()
void removeSecurityDomains()
Copyright © 2015 Nuxeo SA. All rights reserved.