org.wicketstuff.security.hive.authentication
Class DefaultSubject
java.lang.Object
org.wicketstuff.security.hive.authentication.BaseSubject
org.wicketstuff.security.hive.authentication.DefaultSubject
- All Implemented Interfaces:
- Serializable, org.wicketstuff.security.hive.authentication.Subject, WicketSubject
public class DefaultSubject
- extends org.wicketstuff.security.hive.authentication.BaseSubject
- implements WicketSubject
Default implementation of a Subject.Targeted for wicket applications. By default it authenticates
all classes, components and models. This makes it an ideal candidate for single login
applications.
- Author:
- marrink
- See Also:
WicketSubject,
Serialized Form
|
Method Summary |
boolean |
isClassAuthenticated(Class<?> class1)
Performs the authentication check on a class. |
boolean |
isComponentAuthenticated(org.apache.wicket.Component component)
Performs the authentication check on a component. |
boolean |
isModelAuthenticated(org.apache.wicket.model.IModel<?> model,
org.apache.wicket.Component component)
Performs the authentication check on a model. |
| Methods inherited from class org.wicketstuff.security.hive.authentication.BaseSubject |
addPrincipal, getPrincipals, isReadOnly, setReadOnly |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.wicketstuff.security.hive.authentication.Subject |
getPrincipals, isReadOnly, setReadOnly |
DefaultSubject
public DefaultSubject()
isClassAuthenticated
public boolean isClassAuthenticated(Class<?> class1)
- Description copied from interface:
WicketSubject
- Performs the authentication check on a class.
- Specified by:
isClassAuthenticated in interface WicketSubject
- Returns:
- true if the class is authenticated, false otherwise.
- See Also:
WicketSubject.isClassAuthenticated(java.lang.Class)
isComponentAuthenticated
public boolean isComponentAuthenticated(org.apache.wicket.Component component)
- Description copied from interface:
WicketSubject
- Performs the authentication check on a component.
- Specified by:
isComponentAuthenticated in interface WicketSubject
- Returns:
- true if the component is authenticated, false otherwise
- See Also:
WicketSubject.isComponentAuthenticated(org.apache.wicket.Component)
isModelAuthenticated
public boolean isModelAuthenticated(org.apache.wicket.model.IModel<?> model,
org.apache.wicket.Component component)
- Description copied from interface:
WicketSubject
- Performs the authentication check on a model.
- Specified by:
isModelAuthenticated in interface WicketSubject
- Returns:
- true if the model is authenticated, false otherwise
- See Also:
WicketSubject.isModelAuthenticated(org.apache.wicket.model.IModel,
org.apache.wicket.Component)
Copyright © 2006–2018 Apache Software Foundation. All rights reserved.