|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wicketstuff.security.hive.authentication.LoginContainer
public final class LoginContainer
Container class for multiple LoginContexts. Allows the concept of multi-level login. Note
this class is not thread safe.
| Constructor Summary | |
|---|---|
LoginContainer()
|
|
| Method Summary | |
|---|---|
org.wicketstuff.security.hive.authentication.Subject |
getSubject()
returns an immutable Subject which Contains all the principals of the subjects in the loginContexts. |
boolean |
isClassAuthenticated(Class<?> clazz)
Queries all available subjects (descending sort order) for the authentication of a class. |
boolean |
isComponentAuthenticated(org.apache.wicket.Component component)
Queries all available subjects (descending sort order) for the authentication of a component. |
boolean |
isModelAuthenticated(org.apache.wicket.model.IModel<?> model,
org.apache.wicket.Component component)
Queries all available subjects (descending sort order) for the authentication of a model. |
void |
login(org.wicketstuff.security.hive.authentication.LoginContext context)
Attempts to login through the context, if successful the subject and all its rights are included in the overall user rights. |
boolean |
logoff(org.wicketstuff.security.hive.authentication.LoginContext context)
Removes the subject and all its rights associated with a certain context from this container. |
int |
size()
Returns the number of Subjects contained here. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LoginContainer()
| Method Detail |
|---|
public void login(org.wicketstuff.security.hive.authentication.LoginContext context)
throws org.wicketstuff.security.authentication.LoginException
context -
org.wicketstuff.security.authentication.LoginException - if the login failsLoginContext.login()public boolean logoff(org.wicketstuff.security.hive.authentication.LoginContext context)
context -
public org.wicketstuff.security.hive.authentication.Subject getSubject()
public int size()
Subjects contained here.
public boolean isModelAuthenticated(org.apache.wicket.model.IModel<?> model,
org.apache.wicket.Component component)
model - the modelcomponent - the component holding the model
WicketSubject.isModelAuthenticated(IModel, Component)public boolean isComponentAuthenticated(org.apache.wicket.Component component)
component - the component
WicketSubject.isComponentAuthenticated(Component)public boolean isClassAuthenticated(Class<?> clazz)
clazz - the (component) class
WicketSubject.isClassAuthenticated(Class)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||