Package org.apache.shiro.ee.faces.tags
Class AuthenticatedTag
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.AuthenticatedTag
- All Implemented Interfaces:
javax.faces.view.facelets.FaceletHandler
- Direct Known Subclasses:
NotAuthenticatedTag
Tag that renders the tag body only if the current user has executed a successful authentication attempt
during their current session.
This is more restrictive than the UserTag, which only
ensures the current user is known to the system, either via a current login or from Remember Me services,
which only makes the assumption that the current user is who they say they are, and does not guarantee it like
this tag does.
The logically opposite tag of this one is the NotAuthenticatedTag
-
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
-
AuthenticatedTag
public AuthenticatedTag(javax.faces.view.facelets.TagConfig config)
-
-
Method Details
-
checkAuthentication
protected boolean checkAuthentication()- Specified by:
checkAuthenticationin classAuthenticationTagHandler
-