|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.runtime.model.DefaultComponent org.nuxeo.runtime.api.login.LoginComponent
public class LoginComponent
Nested Class Summary | |
---|---|
static class |
LoginComponent.SystemID
|
Field Summary | |
---|---|
static java.lang.String |
CLIENT_LOGIN
|
static ComponentName |
NAME
|
static java.lang.String |
SYSTEM_LOGIN
|
static java.lang.String |
SYSTEM_USERNAME
|
Constructor Summary | |
---|---|
LoginComponent()
|
Method Summary | ||
---|---|---|
void |
activate(ComponentContext context)
Activates the component. |
|
void |
addSecurityDomain(SecurityDomain domain)
|
|
void |
deactivate(ComponentContext context)
Deactivates the component. |
|
|
getAdapter(java.lang.Class<T> adapter)
Returns an object which is an instance of the given class associated with this object. |
|
javax.security.auth.login.AppConfigurationEntry[] |
getAppConfigurationEntry(java.lang.String name)
|
|
SecurityDomain |
getSecurityDomain(java.lang.String name)
|
|
SecurityDomain[] |
getSecurityDomains()
|
|
boolean |
isSystemId(java.security.Principal principal)
|
|
static boolean |
isSystemLogin(java.lang.Object principal)
|
|
javax.security.auth.login.LoginContext |
login()
System login, using a private principal that has all privileges. |
|
javax.security.auth.login.LoginContext |
login(javax.security.auth.callback.CallbackHandler cbHandler)
Client login using a custom callback handler to retrieve login info. |
|
javax.security.auth.login.LoginContext |
login(java.lang.String username,
java.lang.Object credentials)
Client login using the given username and password. |
|
javax.security.auth.login.LoginContext |
loginAs(java.lang.String username)
System login, using a private principal that has all privileges. |
|
void |
registerContribution(java.lang.Object contribution,
java.lang.String extensionPoint,
ComponentInstance contributor)
|
|
void |
removeSecurityDomain(java.lang.String name)
|
|
void |
removeSecurityDomains()
|
|
void |
unregisterContribution(java.lang.Object contribution,
java.lang.String extensionPoint,
ComponentInstance contributor)
|
Methods inherited from class org.nuxeo.runtime.model.DefaultComponent |
---|
registerExtension, unregisterExtension |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final ComponentName NAME
public static final java.lang.String SYSTEM_LOGIN
public static final java.lang.String CLIENT_LOGIN
public static final java.lang.String SYSTEM_USERNAME
Constructor Detail |
---|
public LoginComponent()
Method Detail |
---|
public void activate(ComponentContext context) throws java.lang.Exception
Component
This method is called by the runtime when a component is activated.
activate
in interface Component
activate
in class DefaultComponent
context
- the runtime context
java.lang.Exception
- if an error occurs during activationpublic void deactivate(ComponentContext context) throws java.lang.Exception
Component
This method is called by the runtime when a component is deactivated.
deactivate
in interface Component
deactivate
in class DefaultComponent
context
- the runtime context
java.lang.Exception
- if an error occurs during activationpublic void registerContribution(java.lang.Object contribution, java.lang.String extensionPoint, ComponentInstance contributor)
registerContribution
in class DefaultComponent
public void unregisterContribution(java.lang.Object contribution, java.lang.String extensionPoint, ComponentInstance contributor)
unregisterContribution
in class DefaultComponent
public javax.security.auth.login.AppConfigurationEntry[] getAppConfigurationEntry(java.lang.String name)
public <T> T getAdapter(java.lang.Class<T> adapter)
Adaptable
null
if
no such object can be found.
getAdapter
in interface Adaptable
getAdapter
in class DefaultComponent
adapter
- the adapter class to look up
null
if this object does not
have an adapter for the given classpublic SecurityDomain getSecurityDomain(java.lang.String name)
getSecurityDomain
in interface LoginService
public void addSecurityDomain(SecurityDomain domain)
addSecurityDomain
in interface LoginService
public void removeSecurityDomain(java.lang.String name)
removeSecurityDomain
in interface LoginService
public SecurityDomain[] getSecurityDomains()
getSecurityDomains
in interface LoginService
public void removeSecurityDomains()
removeSecurityDomains
in interface LoginService
public javax.security.auth.login.LoginContext login() throws javax.security.auth.login.LoginException
LoginService
The method requires the caller to have the SystemLoginPermission
permission.
login
in interface LoginService
javax.security.auth.login.LoginException
public javax.security.auth.login.LoginContext loginAs(java.lang.String username) throws javax.security.auth.login.LoginException
LoginService
The method requires the caller to have the SystemLoginPermission
permission.
loginAs
in interface LoginService
username
- the username that originated the system login
javax.security.auth.login.LoginException
public javax.security.auth.login.LoginContext login(java.lang.String username, java.lang.Object credentials) throws javax.security.auth.login.LoginException
LoginService
login
in interface LoginService
javax.security.auth.login.LoginException
public javax.security.auth.login.LoginContext login(javax.security.auth.callback.CallbackHandler cbHandler) throws javax.security.auth.login.LoginException
LoginService
login
in interface LoginService
cbHandler
- the callback handler to use to retrieve the login info
javax.security.auth.login.LoginException
public boolean isSystemId(java.security.Principal principal)
isSystemId
in interface LoginService
public static boolean isSystemLogin(java.lang.Object principal)
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |