org.wicketstuff.security.hive.authentication
Interface WicketSubject

All Superinterfaces:
Serializable, org.wicketstuff.security.hive.authentication.Subject
All Known Implementing Classes:
DefaultSubject

public interface WicketSubject
extends org.wicketstuff.security.hive.authentication.Subject

In addition to Subjects, WicketSubjects play an important part in multi-login scenario's as they define what they authenticate. For example one subject might authenticate all subclasses of BasicSecurePage where another might authenticate all subclasses of AdvancedSecurePage. Effectively requiring a user to login twice if both type of pages are to be visited. If a Wicket application encounters a regular Subject, that subject authenticates everything.

Author:
marrink

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 interface org.wicketstuff.security.hive.authentication.Subject
getPrincipals, isReadOnly, setReadOnly
 

Method Detail

isClassAuthenticated

boolean isClassAuthenticated(Class<?> class1)
Performs the authentication check on a class.

Parameters:
class1 -
Returns:
true if the class is authenticated, false otherwise.
See Also:
WaspAuthorizationStrategy.isClassAuthenticated(Class)

isComponentAuthenticated

boolean isComponentAuthenticated(org.apache.wicket.Component component)
Performs the authentication check on a component.

Parameters:
component -
Returns:
true if the component is authenticated, false otherwise
See Also:
WaspAuthorizationStrategy.isComponentAuthenticated(Component)

isModelAuthenticated

boolean isModelAuthenticated(org.apache.wicket.model.IModel<?> model,
                             org.apache.wicket.Component component)
Performs the authentication check on a model.

Parameters:
model -
component -
Returns:
true if the model is authenticated, false otherwise
See Also:
WaspAuthorizationStrategy.isModelAuthenticated(IModel, Component)


Copyright © 2006–2018 Apache Software Foundation. All rights reserved.