| Package | Description | 
|---|---|
| org.apache.wiki | 
 The chief package of JSPWiki. 
 | 
| org.apache.wiki.auth | 
 Authentication, Authorization and the third A thing. 
 | 
| org.apache.wiki.auth.authorize | 
 Authorizer implementation. 
 | 
| org.apache.wiki.workflow | 
| Modifier and Type | Method and Description | 
|---|---|
WikiSession | 
WikiContext.getWikiSession()
Returns the WikiSession associated with the context. 
 | 
static WikiSession | 
WikiSession.getWikiSession(WikiEngine engine,
              javax.servlet.http.HttpServletRequest request)
Static factory method that returns the WikiSession object associated with
 the current HTTP request. 
 | 
static WikiSession | 
WikiSession.guestSession(WikiEngine engine)
Static factory method that creates a new "guest" session containing a single
 user Principal  
WikiPrincipal.GUEST,
 plus the role principals Role.ALL and
 Role.ANONYMOUS. | 
| Modifier and Type | Method and Description | 
|---|---|
static Object | 
WikiSession.doPrivileged(WikiSession session,
            PrivilegedAction<?> action)
Wrapper for
  
Subject.doAsPrivileged(Subject, java.security.PrivilegedExceptionAction, java.security.AccessControlContext)
 that executes an action with the privileges posssessed by a
 WikiSession's Subject. | 
| Modifier and Type | Method and Description | 
|---|---|
WikiSession | 
SessionMonitor.find(javax.servlet.http.HttpSession session)
Looks up the wiki session associated with a user's Http session
 and adds it to the session cache. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
AuthorizationManager.checkPermission(WikiSession session,
               Permission permission)
Returns  
true or false, depending on
 whether a Permission is allowed for the Subject associated with
 a supplied WikiSession. | 
protected boolean | 
AuthorizationManager.checkStaticPermission(WikiSession session,
                     Permission permission)
Determines whether a Subject possesses a given "static" Permission as
 defined in the security policy file. 
 | 
protected void | 
SessionMonitor.fireEvent(int type,
         Principal principal,
         WikiSession session)
Fires a WikiSecurityEvent to all registered listeners. 
 | 
protected void | 
UserManager.fireEvent(int type,
         WikiSession session,
         Object profile)
Fires a WikiSecurityEvent of the provided type, Principal and target Object
  to all registered listeners. 
 | 
UserProfile | 
UserManager.getUserProfile(WikiSession session)
Retrieves the  
UserProfilefor the
 user in a wiki session. | 
protected boolean | 
AuthorizationManager.hasRoleOrPrincipal(WikiSession session,
                  Principal principal)
Determines if the Subject associated with a supplied WikiSession contains
 a desired user Principal or built-in Role principal, OR is a member a
 Group or external Role. 
 | 
boolean | 
Authorizer.isUserInRole(WikiSession session,
            Principal role)
Determines whether the Subject associated with a WikiSession is in a
 particular role. 
 | 
boolean | 
AuthorizationManager.isUserInRole(WikiSession session,
            Principal principal)
Determines if the Subject associated with a
 supplied WikiSession contains a desired Role or GroupPrincipal. 
 | 
boolean | 
AuthenticationManager.login(WikiSession session,
     javax.servlet.http.HttpServletRequest request,
     String username,
     String password)
Attempts to perform a WikiSession login for the given username/password
 combination using JSPWiki's custom authentication mode. 
 | 
boolean | 
AuthenticationManager.login(WikiSession session,
     String username,
     String password)
Deprecated. 
 
 | 
void | 
UserManager.setUserProfile(WikiSession session,
              UserProfile profile)
 Saves the  
UserProfilefor the user in
 a wiki session. | 
| Constructor and Description | 
|---|
SecurityVerifier(WikiEngine engine,
                WikiSession session)
Constructs a new SecurityVerifier for a supplied WikiEngine and WikiSession. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
WebContainerAuthorizer.isUserInRole(WikiSession session,
            Principal role)
Determines whether the Subject associated with a WikiSession is in a
 particular role. 
 | 
boolean | 
GroupManager.isUserInRole(WikiSession session,
            Principal role)
 Determines whether the Subject associated with a WikiSession is in a
 particular role. 
 | 
void | 
GroupManager.setGroup(WikiSession session,
        Group group)
 Saves the  
Group created by a user in a wiki session. | 
| Modifier and Type | Method and Description | 
|---|---|
Collection | 
DecisionQueue.getActorDecisions(WikiSession session)
Returns a Collection representing the current Decisions that pertain to a
 users's WikiSession. 
 | 
Collection | 
WorkflowManager.getOwnerWorkflows(WikiSession session)
Returns the current workflows a wiki session owns. 
 | 
Copyright © 2001-2018 The Apache Software Foundation. All rights reserved.