Package org.apache.shiro.ee.faces.tags
Class UserTag
java.lang.Object
javax.faces.view.facelets.TagHandler
org.apache.shiro.ee.faces.tags.SecureTagHandler
org.apache.shiro.ee.faces.tags.AuthenticationTagHandler
org.apache.shiro.ee.faces.tags.GuestTag
org.apache.shiro.ee.faces.tags.UserTag
- All Implemented Interfaces:
javax.faces.view.facelets.FaceletHandler
Tag that renders the tag body if the current user known to the system, either from a successful login attempt
(not necessarily during the current session) or from 'RememberMe' services.
Note: This is less restrictive than the AuthenticatedTag since it only assumes
the user is who they say they are, either via a current session login or via Remember Me services, which
makes no guarantee the user is who they say they are. The AuthenticatedTag however
guarantees that the current user has logged in during their current session, proving they really are
who they say they are.
The logically opposite tag of this one is the GuestTag.
-
Field Summary
Fields inherited from class javax.faces.view.facelets.TagHandler
nextHandler, tag, tagId -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.shiro.ee.faces.tags.AuthenticationTagHandler
apply, showTagBodyMethods inherited from class org.apache.shiro.ee.faces.tags.SecureTagHandler
getSubjectMethods inherited from class javax.faces.view.facelets.TagHandler
getAttribute, getRequiredAttribute, toString
-
Constructor Details
-
UserTag
public UserTag(javax.faces.view.facelets.TagConfig config)
-
-
Method Details
-
checkAuthentication
protected boolean checkAuthentication()- Overrides:
checkAuthenticationin classGuestTag
-